NEWS
Update System iobroker failed
-
pi@raspberrypi:~ $ sudo apt autoremove Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: gconf-service gconf2-common libbluetooth3 libexiv2-14 libgconf-2-4 libgfortran3 libgmime-2.6-0 libncurses5 lxplug-volume python-colorzero 0 upgraded, 0 newly installed, 10 to remove and 0 not upgraded. After this operation, 11.8 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 165809 files and directories currently installed.) Removing gconf-service (3.2.6-5) ... Removing libgconf-2-4:armhf (3.2.6-5) ... Removing gconf2-common (3.2.6-5) ... Removing libbluetooth3:armhf (5.50-1.2~deb10u2+rpt1) ... Removing libexiv2-14:armhf (0.25-4+deb10u2) ... Removing libgfortran3:armhf (6.5.0-1+rpi1+b1) ... Removing libgmime-2.6-0:armhf (2.6.23+dfsg1-4) ... Removing libncurses5:armhf (6.1+20181013-2+deb10u2) ... Removing lxplug-volume (0.25) ... Removing python-colorzero (1.1) ... Processing triggers for sgml-base (1.29) ... Processing triggers for libc-bin (2.28-10+rpt2+rpi1+deb10u1) ... pi@raspberrypi:~ $ iobroker restart pi@raspberrypi:~ $ iobroker status node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } pi@raspberrypi:~ $
-
@thomas-braun
juste one things more... I'd forgot to reboot ...
I'd just reboot now...
Sorry... -
Now the correct directories and commands:
cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller iobroker stop iobroker fix iobroker start
-
@thomas-braun
Problem with commandpi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm ERR! code 24 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c node iobroker.js setup first npm ERR! Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"! npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-08-15T14_39_15_503Z-debug-0.log
I attached Log file2022-08-15T14_39_15_503Z-debug-0.log
-
@tiger sagte in Update System iobroker failed:
The package-lock.json file was created with an old version of npm,
ok!
delete it and try again.
if you are afraid of deleting, rename it -
I rename directly in the folder /opt/iobroker the file
and remade the operationpi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller 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@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code 32 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c node iobroker.js setup first npm ERR! Successfully migrated 2282 objects to Redis Sets npm ERR! object _design/system updated npm ERR! host.raspberrypi install adapter backitup npm ERR! These apt-get packages were already installed: cifs-utils, nfs-common npm ERR! upload [10] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/adapter-settings.js adapter-settings.js application/javascript npm ERR! upload [9] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/backitup.png backitup.png image/png npm ERR! upload [8] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/backitup.svg backitup.svg image/svg+xml npm ERR! upload [7] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index.html index.html text/html npm ERR! upload [6] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index_m.html index_m.html text/html npm ERR! upload [5] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index_m.js index_m.js application/javascript npm ERR! upload [4] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/style.css style.css text/css npm ERR! upload [3] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/tab_m.css tab_m.css text/css npm ERR! upload [2] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/tab_m.html tab_m.html text/html npm ERR! upload [1] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/tab_m.js tab_m.js application/javascript npm ERR! upload [0] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/words.js words.js application/javascript npm ERR! host.raspberrypi Invalid version of "admin". Installed "4.0.10", required ">=5.2.0" npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-08-15T14_47_08_695Z-debug-0.log
log file 2022-08-15T14_47_08_695Z-debug-0.log
-
@tiger looks fine!
npm works correctly now -
iobroker list adapters iobroker list instances
-
pi@raspberrypi:~ $ iobroker list adapters node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
-
cd /opt/iobroker sudo -H -u iobroker npm install ioBroker.admin@5.3.8 sudo -H -u iobroker npm install iobroker.js-controller
-
pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install ioBroker.admin@5.3.8 npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/ioBroker.admin - Not found npm ERR! 404 npm ERR! 404 'ioBroker.admin@5.3.8' is not in this registry. npm ERR! 404 This package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! [2022-08-15T15_04_08_107Z-debug-0.log
-
cd /opt/iobroker sudo -H -u iobroker npm install admin@5.3.8 sudo -H -u iobroker npm install js-controller
-
@thomas-braun sagte in Update System iobroker failed:
cd /opt/iobroker sudo -H -u iobroker npm install admin@5.3.8 sudo -H -u iobroker npm install .js-controller
no
why 404?
iobroker.admin 5.3.8 is stable
-
pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install admin@5.3.8 npm ERR! code ETARGET npm ERR! notarget No matching version found for admin@5.3.8. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-08-15T15_11_04_483Z-debug-0.log
-
@tiger sagte in Update System iobroker failed:
pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install admin@5.3.8 npm ERR! code ETARGET npm ERR! notarget No matching version found for admin@5.3.8. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-08-15T15_11_04_483Z-debug-0.log
expected it
there seems to be a typo.
i just saw!iobroker.admin not ioBroker.admin
messing around on my mobile. didn't see at once. sorry!
-
cd /opt/iobroker sudo -H -u iobroker npm install iobroker.admin@5.3.8 sudo -H -u iobroker npm install iobroker.js-controller
-
pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.admin@5.3.8 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@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /opt/iobroker/node_modules/request/node_modules/uuid/bin/uuid npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/iobroker/node_modules/request/node_modules/uuid/bin/uuid' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-08-15T15_15_37_253Z-debug-0.log
-
cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller
-
@thomas-braun said in Update System iobroker failed:
sudo -H -u iobroker npm install iobroker.js-controller
Sorry I made step by step, and if I see some errors I prefer to wait
here the result
pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller 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@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code 32 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c node iobroker.js setup first npm ERR! Successfully migrated 2282 objects to Redis Sets npm ERR! object _design/system updated npm ERR! host.raspberrypi install adapter backitup npm ERR! These apt-get packages were already installed: cifs-utils, nfs-common npm ERR! upload [10] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/adapter-settings.js adapter-settings.js application/javascript npm ERR! upload [9] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/backitup.png backitup.png image/png npm ERR! upload [8] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/backitup.svg backitup.svg image/svg+xml npm ERR! upload [7] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index.html index.html text/html npm ERR! upload [6] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index_m.html index_m.html text/html npm ERR! upload [5] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/index_m.js index_m.js application/javascript npm ERR! upload [4] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/style.css style.css text/css npm ERR! upload [3] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/tab_m.css tab_m.css text/css npm ERR! upload [2] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/tab_m.html tab_m.html text/html npm ERR! upload [1] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/tab_m.js tab_m.js application/javascript npm ERR! upload [0] backitup.admin /opt/iobroker/node_modules/iobroker.backitup/admin/words.js words.js application/javascript npm ERR! host.raspberrypi Invalid version of "admin". Installed "4.0.10", required ">=5.2.0" npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-08-15T15_27_12_327Z-debug-0.log
-
@tiger sagte in Update System iobroker failed:
Sorry I made step by step, and if I see some errors I prefer to wait
thats ok!
but I'm confused.
you twice installed 5.3.8 but it seems still not to be installed