Forgot to mention, this is a Digital Ocean build. Also, contents of last update attempt log are below:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libnftables1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
python3-cliapp python3-markdown python3-pygments python3-ttystatus
Suggested packages:
python3-xdg python-markdown-doc python-pygments-doc ttf-bitstream-vera
The following NEW packages will be installed:
cmdtest python3-cliapp python3-markdown python3-pygments python3-ttystatus
0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 899 kB of archives.
After this operation, 4875 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://mirrors.digitalocean.com/ubuntu jammy/universe amd64 python3-cliapp all 1.20180812.1-4 [44.5 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 python3-markdown all 3.3.6-1 [68.5 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu jammy/universe amd64 python3-ttystatus all 0.38-4 [14.7 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu jammy/universe amd64 cmdtest all 0.32.14.gcdfe14e-2 [21.9 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 python3-pygments all 2.11.2+dfsg-2 [750 kB]
Fetched 899 kB in 6s (143 kB/s)
Selecting previously unselected package python3-cliapp.
(Reading database ... 125926 files and directories currently installed.)
Preparing to unpack .../python3-cliapp_1.20180812.1-4_all.deb ...
Unpacking python3-cliapp (1.20180812.1-4) ...
Selecting previously unselected package python3-markdown.
Preparing to unpack .../python3-markdown_3.3.6-1_all.deb ...
Unpacking python3-markdown (3.3.6-1) ...
Selecting previously unselected package python3-ttystatus.
Preparing to unpack .../python3-ttystatus_0.38-4_all.deb ...
Unpacking python3-ttystatus (0.38-4) ...
Selecting previously unselected package cmdtest.
Preparing to unpack .../cmdtest_0.32.14.gcdfe14e-2_all.deb ...
Unpacking cmdtest (0.32.14.gcdfe14e-2) ...
Selecting previously unselected package python3-pygments.
Preparing to unpack .../python3-pygments_2.11.2+dfsg-2_all.deb ...
Unpacking python3-pygments (2.11.2+dfsg-2) ...
Setting up python3-ttystatus (0.38-4) ...
Setting up python3-cliapp (1.20180812.1-4) ...
Setting up python3-pygments (2.11.2+dfsg-2) ...
Setting up python3-markdown (3.3.6-1) ...
Setting up cmdtest (0.32.14.gcdfe14e-2) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
tedl@ourtwocentstravel:~$ sudo -i -u ghost-mgr
ghost-mgr@ourtwocentstravel:~$ cd /var/www/ghost
ghost-mgr@ourtwocentstravel:/var/www/ghost$ export GITLAB_AUTH_TOKEN=
ghost-mgr@ourtwocentstravel:/var/www/ghost$ yarn cache clean
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'cache'
ghost-mgr@ourtwocentstravel:/var/www/ghost$ ghost update
Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
+ sudo systemctl is-active ghost_ourtwocentstravel-com
✔ Checking system Node.js version - found v18.20.4
✔ 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.96.2
* 🐛 Fixed missing incoming recommendations (#21317) - Sag
---
View the changelog for full details: https://github.com/tryghost/ghost/compare/v5.96.1...v5.96.2
✔ Fetched release notes
✖ Downloading and updating Ghost to v5.96.2
A ProcessError occurred.
Message: Command failed: yarn install --no-emoji --no-progress
warning ../../package.json: No license field
warning ghost@5.96.2: The engine "cli" appears to be invalid.
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.27.0"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment-timezone@0.5.45" is incompatible with requested version "moment-timezone@0.5.34"
warning Resolution field "jackspeak@2.1.1" is incompatible with requested version "jackspeak@^3.1.2"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.3"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@^1.3.6"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@^1.3.6"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@^1.3.6"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.27.0"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@1.3.1"
warning Resolution field "@tryghost/logging@2.4.18" is incompatible with requested version "@tryghost/logging@2.4.10"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning lru.min@1.1.1: The engine "bun" appears to be invalid.
warning lru.min@1.1.1: The engine "deno" appears to be invalid.
warning " > bookshelf@1.2.0" has incorrect peer dependency "knex@>=0.15.0 <0.22.0".
error /var/www/ghost/versions/5.96.2/node_modules/re2: Command failed.
Exit code: 1
Command: install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR --skip-path-var RE2_DOWNLOAD_SKIP_PATH --skip-ver-var RE2_DOWNLOAD_SKIP_VER || node-gyp -j max rebuild
Arguments:
Directory: /var/www/ghost/versions/5.96.2/node_modules/re2
Output:
Trying https://github.com/uhop/node-re2/releases/download/1.21.3/linux-x64-108.br ...
Writing to build/Release/re2.node ...
The verification has failed: building from sources ...
Building locally ...
/bin/sh: 1: npm: Permission denied
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "127".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.20.4
gyp info it worked if it ends with ok
gyp info using node-gyp@10.1.0
gyp info using node@18.20.4 | linux | x64
gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/var/www/ghost/versions/5.96.2/node_modules/re2/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/ghost-mgr/.cache/node-gyp/18.20.4/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/ghost-mgr/.cache/node-gyp/18.20.4',
gyp info spawn args '-Dnode_gyp_dir=/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/ghost-mgr/.cache/node-gyp/18.20.4/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/var/www/ghost/versions/5.96.2/node_modules/re2',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 1 ]
make: Entering directory '/var/www/ghost/versions/5.96.2/node_modules/re2/build'
CXX(target) Release/obj.target/re2/lib/addon.o
make: g++: Permission denied
make: *** [re2.target.mk:246: Release/obj.target/re2/lib/addon.o] Error 127
make: Leaving directory '/var/www/ghost/versions/5.96.2/node_modules/re2/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp/lib/build.js:209:23)
gyp ERR! System Linux 5.15.0-124-generic
gyp ERR! command "/usr/bin/node" "/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/.bin/node-gyp" "-j" "max" "rebuild"
gyp ERR! cwd /var/www/ghost/versions/5.96.2/node_modules/re2
gyp ERR! node -v v18.20.4
gyp ERR! node-gyp -v v10.1.0
gyp ERR! not ok
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Exit code: 1
Debug Information:
OS: Ubuntu, v22.04.5 LTS
Node Version: v18.20.4
Ghost Version: 5.96.0
Ghost-CLI Version: 1.26.1
Environment: production
Command: 'ghost update'
Additional log info available in: /home/ghost-mgr/.ghost/logs/ghost-cli-debug-2024-10-17T18_51_30_401Z.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.
ghost-mgr@ourtwocentstravel:/var/www/ghost$ yarn --version
0.32+git
ghost-mgr@ourtwocentstravel:/var/www/ghost$ yarn cache clean
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'cache'
ghost-mgr@ourtwocentstravel:/var/www/ghost$ yarn cache list
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'cache'
ghost-mgr@ourtwocentstravel:/var/www/ghost$ exit
logout
tedl@ourtwocentstravel:~$ sudo yarn cache clean
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'cache'
tedl@ourtwocentstravel:~$ yarn cache list
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'cache'
tedl@ourtwocentstravel:~$ sudo yarn cache list
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'cache'
tedl@ourtwocentstravel:~$
tedl@ourtwocentstravel:~$ sudo -i -u ghost-mgr
[sudo] password for tedl:
ghost-mgr@ourtwocentstravel:~$ ls
config.production.json.mailgun-working config.production.json.new-mailgun-not-working config.production.json.orig
ghost-mgr@ourtwocentstravel:~$ ll
total 80
drwxr-x--- 7 ghost-mgr ghost-mgr 4096 Oct 17 16:07 ./
drwxr-xr-x 4 root root 4096 Aug 25 23:02 ../
-rw------- 1 ghost-mgr ghost-mgr 4029 Oct 17 18:53 .bash_history
-rw-r--r-- 1 ghost-mgr ghost-mgr 220 Jan 6 2022 .bash_logout
-rw-r--r-- 1 ghost-mgr ghost-mgr 3771 Jan 6 2022 .bashrc
drwxrwxr-x 4 ghost-mgr ghost-mgr 4096 Oct 6 18:38 .cache/
-rw-r--r-- 1 ghost-mgr ghost-mgr 0 Aug 7 12:21 .cloud-locale-test.skip
drwxr-x--- 3 ghost-mgr ghost-mgr 4096 Oct 17 15:27 .config/
drwxrwxr-x 3 ghost-mgr ghost-mgr 4096 Oct 17 15:20 .ghost/
-rw------- 1 ghost-mgr ghost-mgr 20 Oct 17 16:07 .lesshst
-rw------- 1 ghost-mgr ghost-mgr 34 Aug 28 20:21 .mysql_history
drwxrwxr-x 5 ghost-mgr ghost-mgr 4096 Aug 25 22:43 .npm/
-rw-r--r-- 1 ghost-mgr ghost-mgr 807 Jan 6 2022 .profile
-rw-r--r-- 1 ghost-mgr ghost-mgr 0 Aug 7 12:25 .sudo_as_admin_successful
-rw------- 1 ghost-mgr ghost-mgr 12715 Sep 2 13:53 .viminfo
drwxrwxr-x 3 ghost-mgr ghost-mgr 4096 Aug 25 22:43 .yarn/
-rw-rw-r-- 1 ghost-mgr ghost-mgr 867 Sep 2 13:29 config.production.json.mailgun-working
-rw-rw-r-- 1 ghost-mgr ghost-mgr 853 Sep 2 03:01 config.production.json.new-mailgun-not-working
-rw-rw-r-- 1 ghost-mgr ghost-mgr 533 Sep 1 20:26 config.production.json.orig
ghost-mgr@ourtwocentstravel:~$ cd .yarn/
ghost-mgr@ourtwocentstravel:~/.yarn$ ls
bin
ghost-mgr@ourtwocentstravel:~/.yarn$ cd
ghost-mgr@ourtwocentstravel:~$ cd .ghost
ghost-mgr@ourtwocentstravel:~/.ghost$ ls
config logs
ghost-mgr@ourtwocentstravel:~/.ghost$ cd logs/
ghost-mgr@ourtwocentstravel:~/.ghost/logs$ ls
ghost-cli-debug-2024-10-17T15_20_46_875Z.log ghost-cli-debug-2024-10-17T16_18_50_957Z.log ghost-cli-debug-2024-10-17T18_51_30_401Z.log
ghost-cli-debug-2024-10-17T15_27_19_456Z.log ghost-cli-debug-2024-10-17T16_26_37_944Z.log
ghost-cli-debug-2024-10-17T15_29_08_374Z.log ghost-cli-debug-2024-10-17T18_45_50_912Z.log
ghost-mgr@ourtwocentstravel:~/.ghost/logs$ ll
total 88
drwxr-x--- 2 ghost-mgr ghost-mgr 4096 Oct 17 18:51 ./
drwxrwxr-x 3 ghost-mgr ghost-mgr 4096 Oct 17 15:20 ../
-rw-r----- 1 ghost-mgr ghost-mgr 1085 Oct 17 15:20 ghost-cli-debug-2024-10-17T15_20_46_875Z.log
-rw-r----- 1 ghost-mgr ghost-mgr 12643 Oct 17 15:27 ghost-cli-debug-2024-10-17T15_27_19_456Z.log
-rw-r----- 1 ghost-mgr ghost-mgr 11877 Oct 17 15:29 ghost-cli-debug-2024-10-17T15_29_08_374Z.log
-rw-r----- 1 ghost-mgr ghost-mgr 11877 Oct 17 16:18 ghost-cli-debug-2024-10-17T16_18_50_957Z.log
-rw-r----- 1 ghost-mgr ghost-mgr 11877 Oct 17 16:26 ghost-cli-debug-2024-10-17T16_26_37_944Z.log
-rw-r----- 1 ghost-mgr ghost-mgr 11877 Oct 17 18:45 ghost-cli-debug-2024-10-17T18_45_50_912Z.log
-rw-r----- 1 ghost-mgr ghost-mgr 11877 Oct 17 18:51 ghost-cli-debug-2024-10-17T18_51_30_401Z.log
ghost-mgr@ourtwocentstravel:~/.ghost/logs$ less ghost-cli-debug-2024-10-17T18_51_30_401Z.log
Debug Information:
OS: Ubuntu, v22.04.5 LTS
Node Version: v18.20.4
Ghost Version: 5.96.0
Ghost-CLI Version: 1.26.1
Environment: production
Command: 'ghost update'
Message: Command failed: yarn install --no-emoji --no-progress
warning ../../package.json: No license field
warning ghost@5.96.2: The engine "cli" appears to be invalid.
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.27.0"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment-timezone@0.5.45" is incompatible with requested version "moment-timezone@0.5.34"
warning Resolution field "jackspeak@2.1.1" is incompatible with requested version "jackspeak@^3.1.2"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.3"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@^1.3.6"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@^1.3.6"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@^1.3.6"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.27.0"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@1.3.1"
warning Resolution field "@tryghost/logging@2.4.18" is incompatible with requested version "@tryghost/logging@2.4.10"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning lru.min@1.1.1: The engine "bun" appears to be invalid.
warning lru.min@1.1.1: The engine "deno" appears to be invalid.
warning " > bookshelf@1.2.0" has incorrect peer dependency "knex@>=0.15.0 <0.22.0".
error /var/www/ghost/versions/5.96.2/node_modules/re2: Command failed.
Exit code: 1
Command: install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR --skip-path-var RE2_DOWNLOAD_SKIP_PATH --skip-ver-var RE2_DOWNLOAD_SKIP_VER || node-gyp -j max rebuild
Arguments:
Directory: /var/www/ghost/versions/5.96.2/node_modules/re2
Output:
Trying https://github.com/uhop/node-re2/releases/download/1.21.3/linux-x64-108.br ...
Writing to build/Release/re2.node ...
The verification has failed: building from sources ...
Building locally ...
/bin/sh: 1: npm: Permission denied
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was n
ot handled with .catch(). The promise rejected with the reason "127".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.20.4
gyp info it worked if it ends with ok
gyp info using node-gyp@10.1.0
gyp info using node@18.20.4 | linux | x64
gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/var/www/ghost/versions/5.96.2/node_modules/re2/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/ghost-mgr/.cache/node-gyp/18.20.4/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/ghost-mgr/.cache/node-gyp/18.20.4',
gyp info spawn args '-Dnode_gyp_dir=/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/ghost-mgr/.cache/node-gyp/18.20.4/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/var/www/ghost/versions/5.96.2/node_modules/re2',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 1 ]
make: Entering directory '/var/www/ghost/versions/5.96.2/node_modules/re2/build'
CXX(target) Release/obj.target/re2/lib/addon.o
make: g++: Permission denied
make: *** [re2.target.mk:246: Release/obj.target/re2/lib/addon.o] Error 127
make: Leaving directory '/var/www/ghost/versions/5.96.2/node_modules/re2/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp/lib/build.js:209:23)
gyp ERR! System Linux 5.15.0-124-generic
gyp ERR! command "/usr/bin/node" "/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/.bin/node-gyp" "-j" "max" "rebuild"
gyp ERR! cwd /var/www/ghost/versions/5.96.2/node_modules/re2
gyp ERR! node -v v18.20.4
gyp ERR! node-gyp -v v10.1.0
gyp ERR! not ok
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Exit code: 1
--------------- stdout ---------------
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
--------------- stderr ---------------
warning ../../package.json: No license field
warning ghost@5.96.2: The engine "cli" appears to be invalid.
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.27.0"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment-timezone@0.5.45" is incompatible with requested version "moment-timezone@0.5.34"
warning Resolution field "jackspeak@2.1.1" is incompatible with requested version "jackspeak@^3.1.2"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.3"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@^1.3.6"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@^1.3.6"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@^1.3.6"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.27.0"
warning Resolution field "@tryghost/errors@1.3.5" is incompatible with requested version "@tryghost/errors@1.3.1"
warning Resolution field "@tryghost/logging@2.4.18" is incompatible with requested version "@tryghost/logging@2.4.10"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning lru.min@1.1.1: The engine "bun" appears to be invalid.
warning lru.min@1.1.1: The engine "deno" appears to be invalid.
warning " > bookshelf@1.2.0" has incorrect peer dependency "knex@>=0.15.0 <0.22.0".
error /var/www/ghost/versions/5.96.2/node_modules/re2: Command failed.
Exit code: 1
Command: install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR --skip-path-var RE2_DOWNLOAD_SKIP_PATH --skip-ver-var RE2_DOWNLO
AD_SKIP_VER || node-gyp -j max rebuild
Arguments:
Directory: /var/www/ghost/versions/5.96.2/node_modules/re2
Output:
Trying https://github.com/uhop/node-re2/releases/download/1.21.3/linux-x64-108.br ...
Writing to build/Release/re2.node ...
The verification has failed: building from sources ...
Building locally ...
/bin/sh: 1: npm: Permission denied
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was n
ot handled with .catch(). The promise rejected with the reason "127".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.20.4
gyp info it worked if it ends with ok
gyp info using node-gyp@10.1.0
gyp info using node@18.20.4 | linux | x64
gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/var/www/ghost/versions/5.96.2/node_modules/re2/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/ghost-mgr/.cache/node-gyp/18.20.4/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/ghost-mgr/.cache/node-gyp/18.20.4',
gyp info spawn args '-Dnode_gyp_dir=/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/ghost-mgr/.cache/node-gyp/18.20.4/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/var/www/ghost/versions/5.96.2/node_modules/re2',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 1 ]
make: Entering directory '/var/www/ghost/versions/5.96.2/node_modules/re2/build'
CXX(target) Release/obj.target/re2/lib/addon.o
make: g++: Permission denied
make: *** [re2.target.mk:246: Release/obj.target/re2/lib/addon.o] Error 127
make: Leaving directory '/var/www/ghost/versions/5.96.2/node_modules/re2/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/node-gyp/lib/build.js:209:23)
gyp ERR! System Linux 5.15.0-124-generic
gyp ERR! command "/usr/bin/node" "/var/www/ghost/versions/5.96.2/node_modules/re2/node_modules/.bin/node-gyp" "-j" "max" "rebuild"
gyp ERR! cwd /var/www/ghost/versions/5.96.2/node_modules/re2
gyp ERR! node -v v18.20.4
gyp ERR! node-gyp -v v10.1.0
gyp ERR! not ok