NEWS
Probleme mit npm bei Iobroker installation
-
Hallo
ich versuche gerade mein iobroker neu auf zu setzen. Allerdings gibt es irgendwie immer Probleme mit der npm Installation hier mal mein iob diag File:
Skript v.2023-10-10 *** BASE SYSTEM *** Static hostname: raspberrypi Icon name: computer Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.6.20+rpt-rpi-v8 Architecture: arm64 Model : Raspberry Pi 3 Model B Plus Rev 1.3 Docker : false Virtualization : none Kernel : aarch64 Userland : arm64 Systemuptime and Load: 16:33:53 up 1:59, 2 users, load average: 0.18, 3.94, 12.29 CPU threads: 4 *** RASPBERRY THROTTLING *** Current issues: No throttling issues detected. Previously detected issues: ~ Under-voltage has occurred *** Time and Time Zones *** Local time: Tue 2024-03-26 16:33:53 CET Universal time: Tue 2024-03-26 15:33:53 UTC RTC time: n/a Time zone: Europe/Berlin (CET, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no *** User and Groups *** pi /home/pi pi adm dialout cdrom sudo audio video plugdev games users input render netdev gpio i2c spi iobroker *** X-Server-Setup *** X-Server: false Desktop: Terminal: tty Boot Target: multi-user.target *** MEMORY *** total used free shared buff/cache available Mem: 951M 276M 486M 229K 255M 675M Swap: 104M 20M 84M Total: 1.1G 296M 570M 907 M total memory 263 M used memory 226 M active memory 119 M inactive memory 464 M free memory 23 M buffer memory 220 M swap cache 99 M total swap 19 M used swap 80 M free swap Raspberry only: oom events: 0 lifetime oom required: 0 Mbytes total time in oom handler: 0 ms max time spent in oom handler: 0 ms *** FAILED SERVICES *** UNIT LOAD ACTIVE SUB DESCRIPTION 0 loaded units listed. *** FILESYSTEM *** Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 318M 0 318M 0% /dev tmpfs tmpfs 91M 1.1M 90M 2% /run /dev/mmcblk0p2 ext4 29G 2.5G 25G 10% / tmpfs tmpfs 454M 0 454M 0% /dev/shm tmpfs tmpfs 5.0M 12K 5.0M 1% /run/lock /dev/mmcblk0p1 vfat 510M 63M 448M 13% /boot/firmware tmpfs tmpfs 91M 0 91M 0% /run/user/1000 Messages concerning ext4 filesystem in dmesg: [Tue Mar 26 14:34:37 2024] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=192d7b3d-02 rootfstype=ext4 fsck.repair=yes rootwait [Tue Mar 26 14:34:41 2024] EXT4-fs (mmcblk0p2): mounted filesystem 93c89e92-8f2e-4522-ad32-68faed883d2f ro with ordered data mode. Quota mode: none. [Tue Mar 26 14:34:44 2024] EXT4-fs (mmcblk0p2): re-mounted 93c89e92-8f2e-4522-ad32-68faed883d2f r/w. Quota mode: none. Show mounted filesystems \(real ones only\): TARGET SOURCE FSTYPE OPTIONS / /dev/mmcblk0p2 ext4 rw,noatime `-/boot/firmware /dev/mmcblk0p1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro Files in neuralgic directories: /var: 513M /var/ 203M /var/cache 197M /var/cache/apt 161M /var/lib 133M /var/lib/apt/lists Archived and active journals take up 48.0M in the file system. /opt/iobroker/backups: du: cannot access '/opt/iobroker/backups/': No such file or directory /opt/iobroker/iobroker-data: 14M /opt/iobroker/iobroker-data/files 14M /opt/iobroker/iobroker-data/ 13M /opt/iobroker/iobroker-data/files/admin.admin/custom/static/js 13M /opt/iobroker/iobroker-data/files/admin.admin/custom/static 13M /opt/iobroker/iobroker-data/files/admin.admin/custom The five largest files in iobroker-data are: 6.3M /opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e.847b8ad9.chunk.js.map 2.8M /opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e.847b8ad9.chunk.js 1.6M /opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_mui_material_Accordion_index_js-node_modules_mui_material_AccordionDetai-57e02d.0886b730.chunk.js.map 652K /opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_mui_material_index_js.40e01f69.chunk.js.map 384K /opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_mui_material_Accordion_index_js-node_modules_mui_material_AccordionDetai-57e02d.0886b730.chunk.js 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-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2466692-if00 *** NodeJS-Installation *** /usr/bin/nodejs v18.19.1 /usr/bin/node v18.19.1 /usr/bin/npm 10.2.4 /usr/bin/npx 10.2.4 /usr/bin/corepack 0.22.0 nodejs: Installed: 18.19.1-1nodesource1 Candidate: 18.19.1-1nodesource1 Version table: *** 18.19.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 100 /var/lib/dpkg/status 18.19.0+dfsg-6~deb12u1 500 500 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages 18.19.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.18.2-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.18.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.18.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.17.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.17.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.16.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.16.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.15.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.14.2-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.14.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.14.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.13.0+dfsg1-1 500 500 http://deb.debian.org/debian bookworm/main arm64 Packages 18.13.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.12.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.11.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.10.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.9.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.9.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.8.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.7.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.6.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.5.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.4.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.3.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.2.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.1.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages 18.0.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages find: '/opt/iobroker/node_modules': No such file or directory Temp directories causing npm8 problem: 0 No problems detected Errors in npm tree: npm ERR! code ELSPROBLEMS npm ERR! missing: iobroker.admin@stable, required by iobroker.inst@3.0.0 npm ERR! missing: iobroker.backitup@stable, required by iobroker.inst@3.0.0 npm ERR! missing: iobroker.discovery@stable, required by iobroker.inst@3.0.0 npm ERR! missing: iobroker.js-controller@stable, required by iobroker.inst@3.0.0 npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2024-03-26T15_34_03_649Z-debug-0.log *** ioBroker-Installation *** ioBroker Status node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.19.1 Core adapters versions node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.19.1 js-controller: node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.19.1 admin: node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.19.1 javascript: npm ERR! code ELSPROBLEMS npm ERR! missing: iobroker.admin@stable, required by iobroker.inst@3.0.0 npm ERR! missing: iobroker.backitup@stable, required by iobroker.inst@3.0.0 npm ERR! missing: iobroker.discovery@stable, required by iobroker.inst@3.0.0 npm ERR! missing: iobroker.js-controller@stable, required by iobroker.inst@3.0.0 npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2024-03-26T15_34_07_732Z-debug-0.log Adapters from github: 0 Adapter State node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.19.1 Enabled adapters with bindings node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.19.1 ioBroker-Repositories node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.19.1 Installed ioBroker-Instances node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.19.1 Objects and States Please stand by - This may take a while Objects: 0 States: 0 *** OS-Repositories and Updates *** Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease Reading package lists... Pending Updates: 0 *** 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 0.0.0.0:22 0.0.0.0:* LISTEN 0 5486 603/sshd: /usr/sbin tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1001 47117 11617/iobroker.js-c tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1001 47110 11617/iobroker.js-c tcp6 0 0 :::8081 :::* LISTEN 1001 44593 11654/io.admin.0 tcp6 0 0 :::22 :::* LISTEN 0 5488 603/sshd: /usr/sbin udp 0 0 0.0.0.0:5353 0.0.0.0:* 104 3049 436/avahi-daemon: r udp 0 0 0.0.0.0:36870 0.0.0.0:* 104 3051 436/avahi-daemon: r udp6 0 0 :::5353 :::* 104 3050 436/avahi-daemon: r udp6 0 0 fe80::7aa9:1a5c:f94:546 :::* 0 5044 505/NetworkManager udp6 0 0 :::59041 :::* 104 3052 436/avahi-daemon: r *** Log File - Last 25 Lines *** 2024-03-26 15:03:56.349 - info: host.raspberrypi iobroker.js-controller version 5.0.19 js-controller starting 2024-03-26 15:03:56.369 - info: host.raspberrypi Copyright (c) 2014-2023 bluefox, 2014 hobbyquaker 2024-03-26 15:03:56.372 - info: host.raspberrypi hostname: raspberrypi, node: v18.19.1 2024-03-26 15:03:56.374 - info: host.raspberrypi ip addresses: 192.168.178.66 2001:9e8:afb1:6500:795a:2fed:21ad:69ae fd00::c4bf:562:3ef2:5b6f fe80::7aa9:1a5c:f94a:62f6 2024-03-26 15:03:57.213 - info: host.raspberrypi connected to Objects and States 2024-03-26 15:03:57.280 - info: host.raspberrypi Node.js version has changed from unknown to 18.19.1 2024-03-26 15:03:57.404 - info: host.raspberrypi added notifications configuration of host 2024-03-26 15:03:57.434 - info: host.raspberrypi Successfully updated capabilities "cap_net_admin, cap_net_bind_service, cap_net_raw" for /usr/bin/node 2024-03-26 15:03:58.508 - info: host.raspberrypi 2 instances found 2024-03-26 15:03:58.524 - info: host.raspberrypi starting 2 instances 2024-03-26 15:03:58.647 - info: host.raspberrypi instance system.adapter.admin.0 started with pid 11654 2024-03-26 15:04:02.595 - info: host.raspberrypi instance system.adapter.discovery.0 started with pid 11734 2024-03-26 15:04:16.785 - info: discovery.0 (11734) starting. Version 4.4.0 in /opt/iobroker/node_modules/iobroker.discovery, node: v18.19.1, js-controller: 5.0.19 2024-03-26 15:04:17.239 - info: admin.0 (11654) starting. Version 6.13.16 in /opt/iobroker/node_modules/iobroker.admin, node: v18.19.1, js-controller: 5.0.19 2024-03-26 15:04:17.400 - info: admin.0 (11654) requesting all objects 2024-03-26 15:04:18.282 - info: admin.0 (11654) received all objects 2024-03-26 15:04:52.087 - warn: admin.0 (11654) Cannot update news: timeout of 13000ms exceeded 2024-03-26 15:05:01.808 - info: admin.0 (11654) socket.io server listening on port 8081 2024-03-26 15:05:04.181 - info: admin.0 (11654) http server listening on port 8081 2024-03-26 15:05:04.639 - info: admin.0 (11654) Use link "http://127.0.0.1:8081" to configure. 2024-03-26 15:11:39.162 - warn: admin.0 (11654) Repository cannot be read: Active repo - stable 2024-03-26 15:11:39.187 - warn: admin.0 (11654) Active repository "stable" cannot be read 2024-03-26 16:25:13.982 - warn: admin.0 (11654) Cannot check node.js/npm version
Hat jemand eine Idee was ich falsch mache?
Schönen Gruß!
-
@nftvirus sagte in Probleme mit npm bei Iobroker installation:
starting 2 instances
Fehlt da nicht eine?
@nftvirus sagte in Probleme mit npm bei Iobroker installation:
Repository cannot be read
Netzwerk Probleme?
@nftvirus sagte in Probleme mit npm bei Iobroker installation:
Node.js version has changed from unknown to 18.19.1
Kenn ich so auch nicht
@nftvirus sagte in Probleme mit npm bei Iobroker installation:
Mem: 951M
Damit lässt sich auch nur noch bedingt arbeiten, je nach Einsatzzweck
-
Ja wegen Arbeitsspeicher ist eng aber bisher hatte das immer alles gepasst der Iobroker soll garnicht so viel machen ein paar Zigbee Geräte steuern und per Modbus die PV Anlage überwachen. Das hat alles mti dem Pi 3B+ in der Vergangenheit gut funktioniert aber jetzt ist gerade etwas der Wurm drin.
Wegen Verbindungsprobleme muss ich mal im Fritz Box Log schauen der PI hängt direkt am LAN.
Danke schonmal!
-
@nftvirus Hat niemand mehr eine Idee woran es liegen könnte?
-
@nftvirus sagte in Probleme mit npm bei Iobroker installation:
*** NodeJS-Installation *** /usr/bin/nodejs v18.19.1 /usr/bin/node v18.19.1 /usr/bin/npm 10.2.4 /usr/bin/npx 10.2.4 /usr/bin/corepack 0.22.0
Alles in Ordnung mit nodejs&Co.
Deine Installation des ioBroker hängt schief. Wie genau machst du das? -
@thomas-braun habe ganz normal erst Bookworm per RPI Imager aufgespielt. Dann über
curl -sLf https://iobroker.net/install.sh | bash -
versucht den Iobroker zu installieren. Bei Punkt 3/4 iobroker installieren dauert es aber sehr lange. habe es jetzt schon mehrfach versucht immer mit den oben gezeigten Fehlermeldungen am Schluss.
-
@nftvirus sagte in Probleme mit npm bei Iobroker installation:
Bei Punkt 3/4 iobroker installieren dauert es aber sehr lange.
Laufen lassen... Mit mageren 1GB dauert es eben sehr lange.
-
@thomas-braun danke. ich werde die Karte nochmal formatieren und schauen ob es dann funktioniert.