Hi @jose.fandos,
Thanks for your messages. I launched a fresh new instance using the same Node.js and Ghost version you were previously using, and running the ghost doctor
command worked just fine
bitnami@ip-172-31-27-33:/opt/bitnami/ghost$ sudo su ghost -c "ghost doctor"
β Checking system Node.js version - found v14.17.3
βΉ Ensuring user is not logged in as ghost user [skipped]
βΉ Checking if logged in user is directory owner [skipped]
β Checking current folder permissions
β Checking for a MySQL installation
Instance is currently running
βΉ Validating config [skipped]
β Checking memory availability
β Checking binary dependencies
β Checking free space
Updating Ghost after that worked fine as well
bitnami@ip-172-31-27-33:/opt/bitnami/ghost$ sudo su ghost -c "ghost update"
β Checking system Node.js version - found v14.17.3
βΉ Ensuring user is not logged in as ghost user [skipped]
βΉ Checking if logged in user is directory owner [skipped]
β Checking current folder permissions
β Checking memory availability
β Checking free space
β Checking for available migrations
β Checking for latest Ghost version
# 4.17.0
* β¨ Added Members Filtering feature - Fabien O'Carroll
* π Fixed incorrect unsaved changes popup on memberships screen - Rishabh Garg
* π Fixed mail config not respecting disabled secure connections - Daniel Lockyer
---
View the changelogs for full details:
* Ghost - https://github.com/tryghost/ghost/compare/v4.16.0...v4.17.0
* Admin - https://github.com/tryghost/admin/compare/v4.16.0...v4.17.0
β Fetched release notes
β Downloading and updating Ghost to v4.17.0
β Stopping Ghost
β Linking latest Ghost and recording versions
β Restarting Ghost
βΉ Removing old Ghost versions [skipped]
And also ghost doctor
after the update
bitnami@ip-172-31-27-33:/opt/bitnami/ghost$ sudo su ghost -c "ghost doctor"
β Checking system Node.js version - found v14.17.3
βΉ Ensuring user is not logged in as ghost user [skipped]
βΉ Checking if logged in user is directory owner [skipped]
β Checking current folder permissions
β Checking for a MySQL installation
Instance is currently running
βΉ Validating config [skipped]
β Checking memory availability
β Checking binary dependencies
β Checking free space
I also tried to update the ghost-cli
, and ghost doctor
keeps working after that
bitnami@ip-172-31-27-33:/opt/bitnami/ghost/current$ sudo su ghost -c "npm install ghost-cli"
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated intl-messageformat-parser@2.1.3: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN rm not removing /opt/bitnami/ghost/versions/4.17.0/node_modules/.bin/rimraf as it wasn't installed by /opt/bitnami/ghost/versions/4.17.0/node_modules/rimraf
npm WARN rm not removing /opt/bitnami/ghost/versions/4.17.0/node_modules/.bin/esgenerate as it wasn't installed by /opt/bitnami/ghost/versions/4.17.0/node_modules/escodegen
npm WARN rm not removing /opt/bitnami/ghost/versions/4.17.0/node_modules/.bin/escodegen as it wasn't installed by /opt/bitnami/ghost/versions/4.17.0/node_modules/escodegen
npm WARN rm not removing /opt/bitnami/ghost/versions/4.17.0/node_modules/.bin/nopt as it wasn't installed by /opt/bitnami/ghost/versions/4.17.0/node_modules/nopt
npm WARN rm not removing /opt/bitnami/ghost/versions/4.17.0/node_modules/.bin/mkdirp as it wasn't installed by /opt/bitnami/ghost/versions/4.17.0/node_modules/mkdirp
npm WARN rm not removing /opt/bitnami/ghost/versions/4.17.0/node_modules/.bin/esparse as it wasn't installed by /opt/bitnami/ghost/versions/4.17.0/node_modules/esprima
npm WARN rm not removing /opt/bitnami/ghost/versions/4.17.0/node_modules/.bin/esvalidate as it wasn't installed by /opt/bitnami/ghost/versions/4.17.0/node_modules/esprima
npm WARN rm not removing /opt/bitnami/ghost/versions/4.17.0/node_modules/.bin/acorn as it wasn't installed by /opt/bitnami/ghost/versions/4.17.0/node_modules/acorn
> yarn@1.22.10 preinstall /opt/bitnami/ghost/versions/4.17.0/node_modules/yarn
> :; (node ./preinstall.js > /dev/null 2>&1 || true)
> dtrace-provider@0.8.8 install /opt/bitnami/ghost/versions/4.17.0/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js
make: Entering directory '/opt/bitnami/ghost/versions/4.17.0/node_modules/dtrace-provider/build'
TOUCH Release/obj.target/DTraceProviderStub.stamp
make: Leaving directory '/opt/bitnami/ghost/versions/4.17.0/node_modules/dtrace-provider/build'
> sqlite3@5.0.2 install /opt/bitnami/ghost/versions/4.17.0/node_modules/knex-migrator/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
[sqlite3] Success: "/opt/bitnami/ghost/versions/4.17.0/node_modules/knex-migrator/node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node" is installed via remote
> sharp@0.29.1 install /opt/bitnami/ghost/versions/4.17.0/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Using cached /home/ghost/.npm/_libvips/libvips-8.11.3-linux-x64.tar.br
> re2@1.16.0 install /opt/bitnami/ghost/versions/4.17.0/node_modules/re2
> install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR || npm run rebuild
Trying https://github.com/uhop/node-re2/releases/download/1.16.0/linux-x64-83.br ...
Writing to build/Release/re2.node ...
Done.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN express-brute@1.0.1 requires a peer of express@4.x but none is installed. You must install peer dependencies yourself.
+ ghost-cli@1.17.3
added 589 packages from 303 contributors, removed 130 packages, updated 1094 packages and audited 1756 packages in 118.77s
109 packages are looking for funding
run `npm fund` for details
found 61 vulnerabilities (20 moderate, 39 high, 2 critical)
run `npm audit fix` to fix them, or `npm audit` for details
bitnami@ip-172-31-27-33:/opt/bitnami/ghost/current$ cd ..
bitnami@ip-172-31-27-33:/opt/bitnami/ghost$ sudo su ghost -c "ghost doctor"
β Checking system Node.js version - found v14.17.3
βΉ Ensuring user is not logged in as ghost user [skipped]
βΉ Checking if logged in user is directory owner [skipped]
β Checking current folder permissions
β Checking for a MySQL installation
Instance is currently running
βΉ Validating config [skipped]
β Checking memory availability
β Checking binary dependencies
β Checking free space
But I reproduced your errors running npm audit fix
, however I ran the npm install
command as suggested by audit and ghost doctor
keeps working just fine after that. Remember not running npm install
as it, but using the sudo su ghost -c "your_command_here"
wrapper instead. Can you give it a try?
bitnami@ip-172-31-27-33:/opt/bitnami/ghost/current$ sudo su ghost -c "npm install"
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
> sqlite3@5.0.2 install /opt/bitnami/ghost/versions/4.17.0/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
[sqlite3] Success: "/opt/bitnami/ghost/versions/4.17.0/node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node" is installed via remote
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 540 packages from 773 contributors, updated 78 packages and audited 2312 packages in 67.727s
142 packages are looking for funding
run `npm fund` for details
found 82 vulnerabilities (32 moderate, 47 high, 3 critical)
run `npm audit fix` to fix them, or `npm audit` for details