[[email protected] harry.coffee]$ ghost check-update
Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js
New major version available: 5.1.0
[[email protected] harry.coffee]$ ghost update
You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run `npm install -g [email protected]` to upgrade.
Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js
+ sudo systemctl is-active ghost_harry-coffee
✔ Checking system Node.js version - found v16.13.1
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking free space
✔ Checking for available migrations
✔ Checking for latest Ghost version
# 5.1.0
* ✨ Allowed page to be used as post in dynamic routing - Hannah Wolfe
* 🎨 Updated Casper to v5.1.1 - Sodbileg Gansukh
* 🎨 Reduced favicon requirements and added image formatting - Simon Backx
* 🐛 Fixed reading time for RTL languages - Hannah Wolfe
* 🐛 Fixed pasting into product card descriptions not stripping header formatting - Kevin Ansfield
* 🐛 Fixed gscan not detecting issues in folders - Hannah Wolfe
---
View the changelogs for full details:
* Ghost - https://github.com/tryghost/ghost/compare/v5.0.2...v5.1.0
* Admin - https://github.com/tryghost/admin/compare/v5.0.2...v5.1.0
🪄 Love open source? We're hiring [Node.js Engineers](https://careers.ghost.org/product-engineer-node-js) to work on Ghost full-time
✔ Fetched release notes
✔ Downloading and updating Ghost to v5.1.0
Knex: run
$ npm install mysql --save
Cannot find module 'mysql'
Require stack:
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/dialects/mysql/index.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/dialects/index.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/knex-builder/internal/config-resolver.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/knex-builder/Knex.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/index.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/knex.js
- /usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/data.js
- /usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/ui.js
- /usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/index.js
- /usr/local/lib/node_modules/ghost-cli/lib/commands/update.js
- /usr/local/lib/node_modules/ghost-cli/lib/bootstrap.js
- /usr/local/lib/node_modules/ghost-cli/bin/ghost
Error: Cannot find module 'mysql'
Require stack:
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/dialects/mysql/index.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/dialects/index.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/knex-builder/internal/config-resolver.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/knex-builder/Knex.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/index.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/knex.js
- /usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/data.js
- /usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/ui.js
- /usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/index.js
- /usr/local/lib/node_modules/ghost-cli/lib/commands/update.js
- /usr/local/lib/node_modules/ghost-cli/lib/bootstrap.js
- /usr/local/lib/node_modules/ghost-cli/bin/ghost
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Client_MySQL._driver (/usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/dialects/mysql/index.js:23:12)
at Client_MySQL.initializeDriver (/usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/client.js:190:26)
at new Client (/usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/client.js:75:12)
at new Client_MySQL (/usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/dialects/mysql/index.js:21:1)
at knex (/usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/knex-builder/Knex.js:16:28)
at getData (/usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/data.js:22:24)
at Task.ui [as task] (/usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/ui.js:35:48)
at /usr/local/lib/node_modules/ghost-cli/node_modules/listr/lib/task.js:167:30
at processTicksAndRejections (node:internal/process/task_queues:96:5)
✖ Updating to a major version
An error occurred.
Message: 'Knex: run
$ npm install mysql --save
Cannot find module 'mysql'
Require stack:
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/dialects/mysql/index.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/dialects/index.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/knex-builder/internal/config-resolver.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/knex-builder/Knex.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/lib/index.js
- /usr/share/nginx/html/harry.coffee/versions/5.1.0/node_modules/knex/knex.js
- /usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/data.js
- /usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/ui.js
- /usr/local/lib/node_modules/ghost-cli/lib/tasks/major-update/index.js
- /usr/local/lib/node_modules/ghost-cli/lib/commands/update.js
- /usr/local/lib/node_modules/ghost-cli/lib/bootstrap.js
- /usr/local/lib/node_modules/ghost-cli/bin/ghost'
Debug Information:
OS: AlmaLinux, v8.5
Node Version: v16.13.1
Ghost Version: 4.48.0
Ghost-CLI Version: 1.19.2
Environment: production
Command: 'ghost update'
Additional log info available in: /home/ghostuser/.ghost/logs/ghost-cli-debug-2022-05-30T02_39_37_913Z.log
Try running ghost doctor to check your system for known issues.
You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
[email protected] /usr/share/nginx/html/harry.coffee
# npm i -g npm
removed 6 packages, changed 63 packages, and audited 202 packages in 4s
11 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
[email protected] /usr/share/nginx/html/harry.coffee
# npm fund
harry.coffee
[email protected] /usr/share/nginx/html/harry.coffee
# npx --version
8.11.0
[[email protected] harry.coffee]$ ghost update
You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run `npm install -g [email protected]` to upgrade.
Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js
+ sudo systemctl is-active ghost_harry-coffee
? Sudo Password [hidden]
? Sudo Password [hidden]
Sorry, try again.
? Sudo Password [hidden]
✔ Checking system Node.js version - found v16.13.1
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking free space
✔ Checking for available migrations
✔ Checking for latest Ghost version
# 5.1.0
* ✨ Allowed page to be used as post in dynamic routing - Hannah Wolfe
* 🎨 Updated Casper to v5.1.1 - Sodbileg Gansukh
* 🎨 Reduced favicon requirements and added image formatting - Simon Backx
* 🐛 Fixed reading time for RTL languages - Hannah Wolfe
* 🐛 Fixed pasting into product card descriptions not stripping header formatting - Kevin Ansfield
* 🐛 Fixed gscan not detecting issues in folders - Hannah Wolfe
---
View the changelogs for full details:
* Ghost - https://github.com/tryghost/ghost/compare/v5.0.2...v5.1.0
* Admin - https://github.com/tryghost/admin/compare/v5.0.2...v5.1.0
🪄 Love open source? We're hiring [Node.js Engineers](https://careers.ghost.org/product-engineer-node-js) to work on Ghost full-time
✔ Fetched release notes
Version already installed.
ℹ Downloading and updating Ghost [skipped]
Checking theme compatibility for Ghost 5.1.0
✔ Your theme is compatible.
You can also check theme compatibility at https://gscan.ghost.org
Please review the full list of breaking changes at https://ghost.org/docs/changes/
? Are you sure you want to proceed with migrating to Ghost 5.1.0? Yes
✔ Updating to a major version
+ sudo systemctl stop ghost_harry-coffee
✔ Stopping Ghost
✔ Linking latest Ghost and recording versions
+ sudo systemctl start ghost_harry-coffee
✔ Restarting Ghost
✔ Removing old Ghost versions