Hello all,
My YunoHost server
Hardware: kimsufi dedicated server
KS-3 Intel Atom N2800 2c/4t 1.86GHz 4GB DDR3 1066 MHz 2TB 100 Mbps /128
YunoHost version: 3.7.1.3
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
I try to update Kresus but it fail.
You can see complete log here.
But in logs I found :
2020-05-06 21:20:31,287: DEBUG - + npm install --production --unsafe-perm
2020-05-06 21:20:57,524: WARNING - npm WARN deprecated mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
2020-05-06 21:21:00,442: WARNING - npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2020-05-06 21:21:21,947: WARNING - npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
2020-05-06 21:21:22,249: WARNING - npm WARN deprecated node-uuid@1.4.7: Use uuid module instead
2020-05-06 21:21:22,250: WARNING - npm WARN deprecated simple-bufferstream@1.0.0: no longer maintained
2020-05-06 21:21:22,753: WARNING - npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2020-05-06 21:21:22,855: WARNING - npm WARN deprecated joi@9.2.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2020-05-06 21:21:31,683: WARNING - npm WARN deprecated items@2.1.2: This module has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version of hapi to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2020-05-06 21:21:31,785: WARNING - npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2020-05-06 21:21:34,394: WARNING - npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
2020-05-06 21:21:41,323: WARNING - npm WARN deprecated @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
2020-05-06 21:22:47,312: DEBUG -
2020-05-06 21:22:47,315: DEBUG - > node-expat@2.3.18 install /var/www/kresus/node_modules/node-expat
2020-05-06 21:22:47,316: DEBUG - > node-gyp rebuild
2020-05-06 21:22:47,318: DEBUG -
2020-05-06 21:22:47,421: WARNING - sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-05-06 21:22:47,423: WARNING - sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-05-06 21:22:50,452: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-05-06 21:22:50,454: WARNING - gyp: Call to 'node -e "require('nan')"' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
2020-05-06 21:22:50,556: WARNING - gyp ERR! configure error
2020-05-06 21:22:50,558: WARNING - gyp ERR! stack Error: `gyp` failed with exit code: 1
2020-05-06 21:22:50,561: WARNING - gyp ERR! stack at ChildProcess.onCpExit (/opt/node_n/n/versions/node/12.16.3/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
2020-05-06 21:22:50,563: WARNING - gyp ERR! stack at ChildProcess.emit (events.js:310:20)
2020-05-06 21:22:50,565: WARNING - gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2020-05-06 21:22:50,568: WARNING - gyp ERR! System Linux 4.9.0-12-amd64
2020-05-06 21:22:50,571: WARNING - gyp ERR! command "/opt/node_n/n/versions/node/12.16.3/bin/node" "/opt/node_n/n/versions/node/12.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-05-06 21:22:50,573: WARNING - gyp ERR! cwd /var/www/kresus/node_modules/node-expat
2020-05-06 21:22:50,576: WARNING - gyp ERR! node -v v12.16.3
2020-05-06 21:22:50,578: WARNING - gyp ERR! node-gyp -v v5.1.0
2020-05-06 21:22:50,580: WARNING - gyp ERR! not ok
2020-05-06 21:22:58,426: WARNING - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
2020-05-06 21:22:58,428: WARNING - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-05-06 21:22:58,430: WARNING - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules/mocha/node_modules/chokidar/node_modules/fsevents):
2020-05-06 21:22:58,432: WARNING - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-05-06 21:22:58,434: WARNING - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/onchange/node_modules/chokidar/node_modules/fsevents):
2020-05-06 21:22:58,436: WARNING - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-05-06 21:22:58,438: WARNING -
2020-05-06 21:22:58,548: WARNING - npm ERR! code ELIFECYCLE
2020-05-06 21:22:58,550: WARNING - npm ERR! errno 1
2020-05-06 21:22:58,552: WARNING - npm ERR! node-expat@2.3.18 install: `node-gyp rebuild`
2020-05-06 21:22:58,553: WARNING - npm ERR! Exit status 1
2020-05-06 21:22:58,555: WARNING - npm ERR!
2020-05-06 21:22:58,557: WARNING - npm ERR! Failed at the node-expat@2.3.18 install script.
2020-05-06 21:22:58,559: WARNING - npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-05-06 21:22:58,866: WARNING -
2020-05-06 21:22:58,868: WARNING - npm ERR! A complete log of this run can be found in:
2020-05-06 21:22:58,869: WARNING - npm ERR! /root/.npm/_logs/2020-05-06T21_22_58_732Z-debug.log
2020-05-06 21:22:58,972: DEBUG - + ynh_exit_properly
2020-05-06 21:22:58,974: DEBUG - + local exit_code=1
2020-05-06 21:22:58,975: DEBUG - + '[' 1 -eq 0 ']'
2020-05-06 21:22:58,977: DEBUG - + trap '' EXIT
2020-05-06 21:22:58,981: DEBUG - + set +eu
2020-05-06 21:22:58,986: DEBUG - + sleep 0.5
2020-05-06 21:22:59,490: DEBUG - + type -t ynh_clean_setup
2020-05-06 21:22:59,491: WARNING - e[91me[1m[ERR]e[0m Upgrade failed.
I saw that there was about the same problem with peertube.
( I also use a dedicated OVH / Kimsufi server)
@kanhu
you have created a new ovh-fix branch but I don’t really understand what the changes are between the master branch and this branch.
Can you explain it to me please ?
#ynh_install_nodejs --nodejs_version=10
#sudo -u $app env PATH=$PATH yarn install --production --pure-lockfile°
ping : @homerc @nicofrand @Jibec
Thank you for your help.
PS: I’m almost sure I chose the OS kernel and not the one customized by OVH