core icon indicating copy to clipboard operation
core copied to clipboard

server update failed

Open p4co86 opened this issue 1 month ago • 3 comments

Updating from beta 21 to beta 22 failed with this log, it was also the case from 20 to 21, but didnt found time to report.

[distUrl=https://github.com/sonn-audio/core/releases/download/v4.0.0-beta.22/server-dist.tgz message="npm warn cleanup Failed to remove some directories [\nnpm warn cleanup [\nnpm warn cleanup '/app/node_modules/better-sqlite3',\nnpm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/app/node_modules/better-sqlite3/build'] {\nnpm warn cleanup errno: -39,\nnpm warn cleanup code: 'ENOTEMPTY',\nnpm warn cleanup syscall: 'rmdir',\nnpm warn cleanup path: '/app/node_modules/better-sqlite3/build'\nnpm warn cleanup }\nnpm warn cleanup ]\nnpm warn cleanup ]\nnpm error code 1\nnpm error path /app/node_modules/utf-8-validate\nnpm error command failed\nnpm error command sh -c node-gyp-build\nnpm error gyp info it worked if it ends with ok\nnpm error gyp info using [email protected]\nnpm error gyp info using [email protected] | linux | arm64\nnpm error gyp info find Python using Python version 3.13.5 found at \"/usr/bin/python3\"\nnpm error gyp info spawn /usr/bin/python3\nnpm error gyp info spawn args [\nnpm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',\nnpm error gyp info spawn args 'binding.gyp',\nnpm error gyp info spawn args '-f',\nnpm error gyp info spawn args 'make',\nnpm error gyp info spawn args '-I',\nnpm error gyp info spawn args '/app/node_modules/utf-8-validate/build/config.gypi',\nnpm error gyp info spawn args '-I',\nnpm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',\nnpm error gyp info spawn args '-I',\nnpm error gyp info spawn args '/app/data/.cache/node-gyp/24.21.0/include/node/common.gypi',\nnpm error gyp info spawn args '-Dlibrary=shared_library',\nnpm error gyp info spawn args '-Dvisibility=default',\nnpm error gyp info spawn args '-Dnode_root_dir=/app/data/.cache/node-gyp/24.21.0',\nnpm error gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',\nnpm error gyp info spawn args '-Dnode_lib_file=/app/data/.cache/node-gyp/24.21.0/<(target_arch)/node.lib',\nnpm error gyp info spawn args '-Dmodule_root_dir=/app/node_modules/utf-8-validate',\nnpm error gyp info spawn args '-Dnode_engine=v8',\nnpm error gyp info spawn args '--depth=.',\nnpm error gyp info spawn args '--no-parallel',\nnpm error gyp info spawn args '--generator-output',\nnpm error gyp info spawn args 'build',\nnpm error gyp info spawn args '-Goutput_dir=.'\nnpm error gyp info spawn args ]\nnpm error gyp ERR! build error \nnpm error gyp ERR! stack Error: not found: make\nnpm error gyp ERR! stack at getNotFoundError (/usr/local/lib/node_modules/npm/node_modules/which/lib/index.js:16:17)\nnpm error gyp ERR! stack at which (/usr/local/lib/node_modules/npm/node_modules/which/lib/index.js:77:9)\nnpm error gyp ERR! stack at async doWhich (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:120:22)\nnpm error gyp ERR! stack at async loadConfigGypi (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:78:7)\nnpm error gyp ERR! stack at async build (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:36:3)\nnpm error gyp ERR! stack at async run (/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18)\nnpm error gyp ERR! System Linux 6.18.13-current-meson64\nnpm error gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\nnpm error gyp ERR! cwd /app/node_modules/utf-8-validate\nnpm error gyp ERR! node -v v24.21.0\nnpm error gyp ERR! node-gyp -v v12.4.0\nnpm error gyp ERR! $npm_package_name utf-8-validate\nnpm error gyp ERR! $npm_package_version 5.0.10\nnpm error gyp ERR! not ok\nnpm error A complete log of this run can be found in: /root/.npm/_logs/2026-10-10T17_44_10_586Z-debug-0.log" release=v4.0.0-beta.22] server update failed Paused 1.851 lines

p4co86 avatar Oct 10 '26 17:10 p4co86

for me:

Server update failed {"ok":false,"error":"sh: 1: husky: not found\nnpm error code 127\nnpm error path /lox-audioserver\nnpm error command failed\nnpm error command sh -c husky .husky\nnpm error A complete log of this run can be found in: /root/.npm/_logs/2026-10-10T17_54_50_551Z-debug-0.log","restartRequired":false,"willRestart":false,"release":"v4.0.0-beta.22","distUrl":"https://github.com/sonn-audio/core/releases/download/v4.0.0-beta.22/server-dist.tgz","targetDir":"/lox-audioserver/dist"}

jurajs5 avatar Oct 10 '26 17:10 jurajs5

Yes, the update procedure from adminui will work in the next release.

rudyberends avatar Oct 10 '26 18:10 rudyberends

Thanks for reporting this! A fix is included in the upcoming beta. Once it's out, could you give it a try and let me know whether it resolves the issue for you?

rudyberends avatar Nov 07 '26 12:11 rudyberends