NEWS
Nach Upgrate von IOT-Modul "Error: Cannot find module 'tar'"
-
Moin an die Gemeinde!
Nachdem ich das IOT Modul von 1.14.5 auf 2.0.11 upgrade quittieren mir alle Versuche danach weitere Module zu upgraden mit dem Fehler "Error: Cannot find module 'tar'".
`node:internal/modules/cjs/loader:1080 throw err; ^Error: Cannot find module 'tar'Require stack:- /opt/iobroker/node_modules/@iobroker/js-controller-cli/build/lib/setup/setupBackup.js- /opt/iobroker/node_modules/@iobroker/js-controller-cli/build/index.js- /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15) at Module._load (node:internal/modules/cjs/loader:922:27) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:121:18) at Object. (/opt/iobroker/node_modules/@iobroker/js-controller-cli/build/lib/setup/setupBackup.js:12:31) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Module.require (node:internal/modules/cjs/loader:1143:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/opt/iobroker/node_modules/@iobroker/js-controller-cli/build/lib/setup/setupBackup.js', '/opt/iobroker/node_modules/@iobroker/js-controller-cli/build/index.js', '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' ]}Node.js v18.17.1 ERROR: Process exited with code 1`
Das passiert nur nach dem Upgrade des IOT Moduls. Solange ich das aufschiebe, lassen sich alle anderen Module problemlos upgraden.
Mir ist noch aufgefallen, dass nach dem IOT Upgrade die Verzeichnisse "tar", "tar-fs" and "tar-stream" aus /opt/iobroker/node_modules gelöscht werden.
Mein Github-Ticket ist hier
Allerdings werde ich dabei auch nur hier ans Forum verwiesen, mit dem Hinweis "Then this is a strange npm issue and can have to do with a broken package-lock File or such ..." -
-
Hier ist die Ausgabe:
Skript v.2023-10-10 *** BASE SYSTEM *** Static hostname: ioBroker Icon name: computer-vm Chassis: vm Virtualization: kvm Operating System: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-25-amd64 Architecture: x86-64 model name : Common KVM processor Docker : false Virtualization : kvm Kernel : x86_64 Userland : amd64 Systemuptime and Load: 17:21:44 up 23:52, 1 user, load average: 0.52, 0.30, 0.17 CPU threads: 8 *** Time and Time Zones *** Local time: Sun 2023-11-26 17:21:44 CET Universal time: Sun 2023-11-26 16:21:44 UTC RTC time: Sun 2023-11-26 16:21:45 Time zone: Europe/Berlin (CET, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no *** User and Groups *** iobroker /home/iobroker iobroker tty dialout cdrom floppy audio dip video plugdev netdev bluetooth scanner *** X-Server-Setup *** X-Server: false Desktop: Terminal: tty Boot Target: graphical.target *** MEMORY *** total used free shared buff/cache available Mem: 15G 3.4G 10G 105M 1.5G 11G Swap: 974M 0B 974M Total: 16G 3.4G 11G 15664 M total memory 3419 M used memory 3753 M active memory 816 M inactive memory 10737 M free memory 229 M buffer memory 1277 M swap cache 974 M total swap 0 M used swap 974 M free swap *** FAILED SERVICES *** 0 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'. *** FILESYSTEM *** Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 7.7G 0 7.7G 0% /dev tmpfs tmpfs 1.6G 105M 1.5G 7% /run /dev/sda1 ext4 31G 11G 19G 37% / tmpfs tmpfs 7.7G 0 7.7G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup tmpfs tmpfs 1.6G 28K 1.6G 1% /run/user/116 tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1000 Messages concerning ext4 filesystem in dmesg: [Sat Nov 25 17:29:22 2023] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [Sat Nov 25 17:29:22 2023] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro Show mounted filesystems \(real ones only\): TARGET SOURCE FSTYPE OPTIONS / /dev/sda1 ext4 rw,relatime,errors=remount-ro `-/sys/fs/bpf bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 Files in neuralgic directories: /var: 2.2G /var/ 1.4G /var/cache/apt 1.4G /var/cache 1.3G /var/cache/apt/archives 771M /var/lib Hint: You are currently not seeing messages from other users and the system. Users in the 'systemd-journal' group can see all messages. Pass -q to turn off this notice. No journal files were opened due to insufficient permissions. /opt/iobroker/backups: 8.3M /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 413M /opt/iobroker/iobroker-data/ 210M /opt/iobroker/iobroker-data/files 118M /opt/iobroker/iobroker-data/backup-objects 67M /opt/iobroker/iobroker-data/files/javascript.admin 48M /opt/iobroker/iobroker-data/files/javascript.admin/static The five largest files in iobroker-data are: 27M /opt/iobroker/iobroker-data/objects.jsonl 23M /opt/iobroker/iobroker-data/states.jsonl 21M /opt/iobroker/iobroker-data/files/web.admin/static/js/main.aaea95f8.js.map 19M /opt/iobroker/iobroker-data/files/iot.admin/static/js/main.2975a411.js.map 15M /opt/iobroker/iobroker-data/objects.json.migrated USB-Devices by-id: USB-Sticks - Avoid direct links to /dev/* in your adapter setups, please always prefer the links 'by-id': /dev/serial/by-id/usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_dc8a24c72985ed118402c89f9d1cc348-if00-port0 *** NodeJS-Installation *** /usr/bin/nodejs v18.17.1 /usr/bin/node v18.17.1 /usr/bin/npm 10.2.1 /usr/bin/npx 10.2.1 /usr/bin/corepack 0.18.0 nodejs: Installed: 18.17.1-deb-1nodesource1 Candidate: 18.17.1-deb-1nodesource1 Version table: *** 18.17.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_18.x buster/main amd64 Packages 100 /var/lib/dpkg/status 10.24.0~dfsg-1~deb10u3 500 500 http://security.debian.org/debian-security buster/updates/main amd64 Packages 10.24.0~dfsg-1~deb10u1 500 500 http://deb.debian.org/debian buster/main amd64 Packages Temp directories causing npm8 problem: 0 No problems detected Errors in npm tree: *** ioBroker-Installation *** ioBroker Status iobroker is running on this host. Objects type: jsonl States type: jsonl Core adapters versions js-controller: 5.0.16 admin: 6.12.0 javascript: 7.1.6 Adapters from github: 3 Adapter State + system.adapter.admin.0 : admin : ioBroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.alexa2.0 : alexa2 : ioBroker - enabled + system.adapter.deconz.0 : deconz : ioBroker - enabled, port: 80 + system.adapter.discovery.0 : discovery : ioBroker - enabled + system.adapter.enigma2.0 : enigma2 : ioBroker - enabled + system.adapter.eusec.0 : eusec : ioBroker - enabled + system.adapter.hm-rega.0 : hm-rega : ioBroker - enabled + system.adapter.hm-rpc.0 : hm-rpc : ioBroker - enabled, port: 0 + system.adapter.influxdb.0 : influxdb : ioBroker - enabled, port: 8086 + system.adapter.influxdb.1 : influxdb : ioBroker - enabled, port: 8086 + system.adapter.influxdb.2 : influxdb : ioBroker - enabled, port: 8086 + system.adapter.info.0 : info : ioBroker - enabled + system.adapter.iot.0 : iot : ioBroker - enabled + system.adapter.javascript.0 : javascript : ioBroker - enabled + system.adapter.lgtv.0 : lgtv : ioBroker - enabled + system.adapter.motionblinds.0 : motionblinds : ioBroker - enabled system.adapter.mqtt-client.0 : mqtt-client : ioBroker - disabled, port: 1884 system.adapter.mqtt.0 : mqtt : ioBroker - disabled, port: 1884, bind: 0.0.0.0 system.adapter.mqtt.1 : mqtt : ioBroker - disabled, port: 1884, bind: 0.0.0.0 + system.adapter.octoprint.0 : octoprint : ioBroker - enabled + system.adapter.onkyo.1 : onkyo : ioBroker - enabled system.adapter.openweathermap.0 : openweathermap : ioBroker - enabled + system.adapter.scenes.0 : scenes : ioBroker - enabled system.adapter.shelly.0 : shelly : ioBroker - disabled, port: 1882, bind: 0.0.0.0 + system.adapter.shelly.1 : shelly : ioBroker - enabled, port: 1884, bind: 0.0.0.0 + system.adapter.siro.0 : siro : ioBroker - enabled + system.adapter.telegram.0 : telegram : ioBroker - enabled, port: 8443, bind: 0.0.0.0 + system.adapter.unifi.0 : unifi : ioBroker - enabled system.adapter.vis.0 : vis : ioBroker - enabled + system.adapter.vw-connect.0 : vw-connect : ioBroker - enabled + system.adapter.web.0 : web : ioBroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin + system.adapter.yahka.0 : yahka : ioBroker - enabled + system.adapter.zwave2.0 : zwave2 : ioBroker - enabled + instance is alive Enabled adapters with bindings + system.adapter.admin.0 : admin : ioBroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.deconz.0 : deconz : ioBroker - enabled, port: 80 + system.adapter.hm-rpc.0 : hm-rpc : ioBroker - enabled, port: 0 + system.adapter.influxdb.0 : influxdb : ioBroker - enabled, port: 8086 + system.adapter.influxdb.1 : influxdb : ioBroker - enabled, port: 8086 + system.adapter.influxdb.2 : influxdb : ioBroker - enabled, port: 8086 + system.adapter.shelly.1 : shelly : ioBroker - enabled, port: 1884, bind: 0.0.0.0 + system.adapter.telegram.0 : telegram : ioBroker - enabled, port: 8443, bind: 0.0.0.0 + system.adapter.web.0 : web : ioBroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin ioBroker-Repositories Stable (default): http://download.iobroker.net/sources-dist.json Beta (latest) : http://download.iobroker.net/sources-dist-latest.json Active repo(s): Stable (default) Installed ioBroker-Instances Used repository: Stable (default) Adapter "admin" : 6.12.0 , installed 6.12.0 Adapter "alexa2" : 3.26.1 , installed 3.26.1 Adapter "apple-find-me": 0.0.14 , installed 0.0.14 Adapter "deconz" : 1.3.23 , installed 1.3.23 Adapter "discovery" : 4.2.0 , installed 4.2.0 Adapter "enigma2" : 2.0.5 , installed 2.0.5 Adapter "eusec" : 1.2.1 , installed 1.2.1 Adapter "hm-rega" : 4.0.0 , installed 4.0.0 Adapter "hm-rpc" : 1.15.19 , installed 1.15.19 Adapter "influxdb" : 3.2.0 , installed 3.2.0 Adapter "info" : 2.0.0 , installed 2.0.0 Adapter "iot" : 2.0.11 , installed 1.14.5 [Updatable] Adapter "javascript" : 7.1.6 , installed 7.1.6 Controller "js-controller": 5.0.16 , installed 5.0.16 Adapter "lgtv" : 2.1.2 , installed 2.1.2 Adapter "mqtt" : 5.1.0 , installed 5.1.0 Adapter "mqtt-client" : 1.6.5 , installed 1.6.5 Adapter "octoprint" : 5.1.0 , installed 5.1.0 Adapter "onkyo" : 2.1.2 , installed 2.1.2 Adapter "openweathermap": 0.4.5 , installed 0.4.5 Adapter "scenes" : 2.3.9 , installed 2.3.9 Adapter "shelly" : 6.6.1 , installed 6.6.1 Adapter "simple-api" : 2.7.2 , installed 2.7.2 Adapter "socketio" : 6.6.0 , installed 6.6.0 Adapter "telegram" : 2.0.1 , installed 2.0.1 Adapter "unifi" : 0.6.6 , installed 0.6.6 Adapter "vis" : 1.4.16 , installed 1.4.16 Adapter "vw-connect" : 0.0.67 , installed 0.0.67 Adapter "web" : 6.1.10 , installed 6.1.10 Adapter "ws" : 2.5.8 , installed 2.5.8 Adapter "yahka" : 1.0.3 , installed 1.0.3 Adapter "zwave2" : 3.1.0 , installed 3.1.0 Objects and States Please stand by - This may take a while Objects: 23807 States: 20797 *** OS-Repositories and Updates *** W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.grafana.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repos.influxdata.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E W: Failed to fetch https://apt.grafana.com/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 W: Failed to fetch https://repos.influxdata.com/debian/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E W: Some index files failed to download. They have been ignored, or old ones used instead. Hit:1 http://deb.debian.org/debian buster InRelease Hit:2 http://deb.debian.org/debian buster-updates InRelease Hit:3 http://security.debian.org/debian-security buster/updates InRelease Get:4 https://repos.influxdata.com/debian stable InRelease [6901 B] Get:5 https://apt.grafana.com stable InRelease [5984 B] Hit:6 https://deb.nodesource.com/node_18.x buster InRelease Err:4 https://repos.influxdata.com/debian stable InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E Err:5 https://apt.grafana.com stable InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 Fetched 6901 B in 0s (15.8 kB/s) Reading package lists... W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repos.influxdata.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.grafana.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 W: Failed to fetch https://apt.grafana.com/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 W: Failed to fetch https://repos.influxdata.com/debian/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E W: Some index files failed to download. They have been ignored, or old ones used instead. Pending Updates: 7 *** Listening Ports *** Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1000 22665 872/iobroker.js-con tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1000 21004 872/iobroker.js-con tcp 0 0 0.0.0.0:8555 0.0.0.0:* LISTEN 1000 25227 1618/go2rtc tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 17691 572/sshd tcp 0 0 192.168.178.124:2010 0.0.0.0:* LISTEN 1000 23921 1220/io.hm-rpc.0 tcp 0 0 0.0.0.0:1884 0.0.0.0:* LISTEN 1000 24106 1381/io.shelly.1 tcp6 0 0 :::8554 :::* LISTEN 1000 25222 1618/go2rtc tcp6 0 0 :::8081 :::* LISTEN 1000 21086 996/io.admin.0 tcp6 0 0 :::8082 :::* LISTEN 1000 1227076 26892/io.web.0 tcp6 0 0 :::8086 :::* LISTEN 998 20259 516/influxd tcp6 0 0 :::22 :::* LISTEN 0 17693 572/sshd tcp6 0 0 :::39543 :::* LISTEN 1000 26776 1650/io.yahka.0 tcp6 0 0 :::3000 :::* LISTEN 117 19933 512/grafana-server tcp6 0 0 :::1984 :::* LISTEN 1000 25221 1618/go2rtc udp 0 0 0.0.0.0:5353 0.0.0.0:* 112 14837 406/avahi-daemon: r udp 0 0 238.0.0.18:32101 0.0.0.0:* 1000 25283 1626/io.motionblind udp 0 0 0.0.0.0:40533 0.0.0.0:* 1000 25284 1626/io.motionblind udp 0 0 0.0.0.0:68 0.0.0.0:* 0 15233 478/dhclient udp 0 0 0.0.0.0:57521 0.0.0.0:* 112 14839 406/avahi-daemon: r udp 0 0 0.0.0.0:8555 0.0.0.0:* 1000 25223 1618/go2rtc udp 0 0 0.0.0.0:42187 0.0.0.0:* 1000 25231 1603/io.eusec.0 udp 0 0 0.0.0.0:58758 0.0.0.0:* 1000 25776 1603/io.eusec.0 udp 0 0 0.0.0.0:34640 0.0.0.0:* 1000 25771 1603/io.eusec.0 udp 0 0 0.0.0.0:1900 0.0.0.0:* 1000 24283 1513/io.deconz.0 udp 0 0 0.0.0.0:59594 0.0.0.0:* 1000 326587 1603/io.eusec.0 udp 0 0 0.0.0.0:35750 0.0.0.0:* 1000 417419 1603/io.eusec.0 udp6 0 0 :::5353 :::* 112 14838 406/avahi-daemon: r udp6 0 0 :::48923 :::* 112 14840 406/avahi-daemon: r udp6 0 0 :::1900 :::* 1000 24286 1513/io.deconz.0 udp6 0 0 :::1900 :::* 1000 24285 1513/io.deconz.0 udp6 0 0 :::1900 :::* 1000 24284 1513/io.deconz.0 *** Log File - Last 25 Lines *** 2023-11-26 17:02:55.925 - info: javascript.0 (27832) script.js.Homematic.Strahler_Flur_oben: Flur EIN 2023-11-26 17:17:00.019 - info: host.ioBroker instance system.adapter.openweathermap.0 started with pid 4837 2023-11-26 17:17:00.846 - info: openweathermap.0 (4837) starting. Version 0.4.5 in /opt/iobroker/node_modules/iobroker.openweathermap, node: v18.17.1, js-controller: 5.0.16 2023-11-26 17:17:17.233 - info: openweathermap.0 (4837) Terminated (NO_ERROR): Without reason 2023-11-26 17:17:17.743 - info: host.ioBroker instance system.adapter.openweathermap.0 terminated with code 0 (NO_ERROR) 2023-11-26 17:18:47.598 - error: host.ioBroker cannot call visUtils: Not exists
-
@tinos sagte in Nach Upgrate von IOT-Modul "Error: Cannot find module 'tar'":
(buster)
Tot, installier da ein aktuelles Release.
Grafana, influx wie nodesource Repos müssen angepackt werden.
npm ist nicht in passender Version installiert.
-
Danke für die Hinweise. Die Quellen für Grafana und Influx habe ich schon entfernt.
Zum Upgrade von Buster auf Bookwork... Wie ist da das beste Vorgehen, Backup von Iobroker anlegen, neues ISO aufspielen, iobroker neu installieren und dann das Backup wieder einspielen?
Oder besser über die Konsole in Schritten von Buster auf Bullseye und dann auf Bookwork? -
@tinos sagte in Nach Upgrate von IOT-Modul "Error: Cannot find module 'tar'":
Zum Upgrade von Buster auf Bookwork...
Kannste in dem Fall machen wir du willst.
Ich würde es frisch neu installieren.