NEWS
iobroker lässt sich nicht aktualisieren, NPM offenbar defekt
-
Hallo Forum,
seit einem dreiviertel Jahr läuft iobroker auf einem Raspberry Pi 3B mit einem aktuellen Raspbian lite.
Überwacht wird der EHz, ein Shelly pro2PM und eine Fritzdect.
Alle Werte werde geloggt und sich über FLOT auch darstellbar.
Prinzipiell funktioniert das Ganze.
Aber seit einiger Zeit lassen sich jedoch keine Aktualisierungen mehr aufspielen.
Alle Reparaturversuche meinerseits sind bisher gescheitert.
Installiert ist folgendes :
Raspberry Pi 3 Model B Rev 1.2christoph@iobroker:/opt/iobroker $ iob update Used repository: stable Adapter "admin" : 6.10.1 , installed 6.3.5 [Updatable] Adapter "discovery" : 3.1.0 , installed 3.1.0 Adapter "flot" : 1.12.0 , installed 1.12.0 Adapter "fritzdect" : 2.3.1 , installed 2.3.1 Adapter "history" : 2.2.6 , installed 2.2.4 [Updatable] Adapter "info" : 1.9.26 , installed 1.9.26 Controller "js-controller": 5.0.12 , installed 4.0.24 [Updatable] Adapter "rpi2" : 1.3.2 , installed 1.3.2 Adapter "shelly" : 6.4.1 , installed 6.4.1 Adapter "simple-api" : 2.7.2 , installed 2.7.2 Adapter "smartmeter" : 3.3.4 , installed 3.3.4 Adapter "socketio" : 6.5.5 , installed 4.2.0 [Updatable] Adapter "vw-connect" : 0.0.67 , installed 0.0.67 Adapter "web" : 6.1.2 , installed 4.3.0 [Updatable] Adapter "ws" : 2.5.5 , installed 1.3.0 [Updatable]
Folgender Fehler tritt immer auf sobald NPM ins Spiel kommt:
------------------------------------------------------------------------------------------------------------------------ christoph@iobroker:/opt/iobroker $ node -v v18.17.1 christoph@iobroker:/opt/iobroker $ npm -v /usr/lib/node_modules/npm/lib/cli.js:35 throw err ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 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) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) Node.js v18.17.1
iob upgrade self ergibt folgendes:
christoph@iobroker:/opt/iobroker $ iob upgrade self Update js-controller from @4.0.24 to @5.0.12 Stopped Objects DB Stopped States DB /usr/lib/node_modules/npm/lib/cli.js:35 throw err ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 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) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) Node.js v18.17.1 Error trying to check npm version: Command failed: npm -v /usr/lib/node_modules/npm/lib/cli.js:35 throw err ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 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) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
Node.js v18.17.1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Aborting install because the npm version could not be checked! Please check that npm is installed correctly. Use "npm install -g npm@4" or "npm install -g npm@latest" to install a supported version. You need to make sure to repeat this step after installing an update to NodeJS and/or npm !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
MOD-EDIT: Code in code-tags gesetzt!
NPM lässt sich einfach werde neu installieren noch überschreiben.
Wie kann ich das Problem angehen ?
Alle einigermaßen passenden Lösungsversuche aus dem Forum habe ich probiert, alles scheitert daran dass NPM nicht funktioniert bzw. dessen Verison nicht gecheckt werden kann.
Für etwas Hilfe oder einen Schubs in die richtige Richtung wäre ich sehr dankbar.
Beste Grüße
Christoph
P.S. Hier noch die Ausgabe von iob diag:
Skript v.2023-06-20 *** BASE SYSTEM *** Static hostname: iobroker Icon name: computer Machine ID: a43125bf74014517b9319d3d97f87720 Boot ID: 81ef33d75e8a425582829655f35e997c Operating System: Raspbian GNU/Linux 11 (bullseye) Kernel: Linux 6.1.21-v7+ Architecture: arm Model : Raspberry Pi 3 Model B Rev 1.2 Docker : false Virtualization : none Kernel : armv7l Userland : armhf Systemuptime and Load: 17:40:54 up 7:55, 1 user, load average: 3.08, 3.25, 5.69 CPU threads: 4 Raspberry only: throttled=0x0 Other values than 0x0 hint to temperature/voltage problems temp=58.0'C volt=1.3312V *** Time and Time Zones *** Local time: Tue 2023-09-26 17:40:54 CEST Universal time: Tue 2023-09-26 15:40:54 UTC RTC time: n/a Time zone: Europe/Berlin (CEST, +0200) System clock synchronized: yes NTP service: active RTC in local TZ: no *** User and Groups *** christoph /home/christoph christoph 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: 921M 355M 184M 0.0K 382M 503M Swap: 99M 13M 86M Total: 1.0G 369M 270M 921 M total memory 355 M used memory 267 M active memory 385 M inactive memory 184 M free memory 29 M buffer memory 352 M swap cache 99 M total swap 13 M used swap 86 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 *** FILESYSTEM *** Filesystem Type Size Used Avail Use% Mounted on /dev/root ext4 14G 7.0G 6.4G 53% / devtmpfs devtmpfs 333M 0 333M 0% /dev tmpfs tmpfs 461M 0 461M 0% /dev/shm tmpfs tmpfs 185M 944K 184M 1% /run tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock /dev/mmcblk0p1 vfat 255M 51M 205M 20% /boot tmpfs tmpfs 93M 0 93M 0% /run/user/1000 Messages concerning ext4 filesystem in dmesg: Show mounted filesystems (real ones only): TARGET SOURCE FSTYPE OPTIONS / /dev/mmcblk0p2 ext4 rw,noatime `-/boot /dev/mmcblk0p1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro Files in neuralgic directories: /var: 1.7G /var/ 1.2G /var/log/journal/a43125bf74014517b9319d3d97f87720 1.2G /var/log/journal 1.2G /var/log 335M /var/cache Archived and active journals take up 1.1G in the file system. /opt/iobroker/backups: 2.8M /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 3.4G /opt/iobroker/iobroker-data/history 3.4G /opt/iobroker/iobroker-data/ 33M /opt/iobroker/iobroker-data/backup-objects 32M /opt/iobroker/iobroker-data/files 30M /opt/iobroker/iobroker-data/history/20230429 The five largest files in iobroker-data are: 28M /opt/iobroker/iobroker-data/objects.jsonl 21M /opt/iobroker/iobroker-data/history/20230429/history.shelly.0.shellypro2pm#ec62608da33c#1.Relay0.Power.json 15M /opt/iobroker/iobroker-data/history/20230428/history.shelly.0.shellypro2pm#ec62608da33c#1.Relay0.Power.json 14M /opt/iobroker/iobroker-data/history/20230527/history.shelly.0.shellypro2pm#ec62608da33c#1.Relay0.Power.json 13M /opt/iobroker/iobroker-data/history/20230812/history.shelly.0.shellypro2pm#ec62608da33c#1.Relay0.Power.json *** NodeJS-Installation *** /usr/bin/nodejs v18.17.1 /usr/bin/node v18.17.1 /usr/lib/node_modules/npm/lib/cli.js:35 throw err ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 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) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) Node.js v18.17.1 /usr/bin/npm /usr/lib/node_modules/npm/lib/cli.js:35 throw err ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 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) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) Node.js v18.17.1 /usr/bin/npx /usr/lib/node_modules/npm/lib/cli.js:35 throw err ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 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) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) Node.js v18.17.1 /usr/lib/node_modules/npm/lib/cli.js:35 throw err ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 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) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) Node.js v18.17.1 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 bullseye/main armhf Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u4 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages Temp directories causing npm8 problem: 0 No problems detected /usr/lib/node_modules/npm/lib/cli.js:35 throw err ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 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) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) Node.js v18.17.1 Errors in npm tree: 0 *** ioBroker-Installation *** ioBroker Status iobroker is running on this host. Objects type: jsonl States type: jsonl No configuration change needed. Multihost discovery server: disabled Discovery authentication: enabled Persistent activation: disabled Objects: jsonl on 127.0.0.1 States: jsonl on 127.0.0.1 Core adapters versions js-controller: 4.0.24 admin: 6.3.5 javascript: "javascript" not found /usr/lib/node_modules/npm/lib/cli.js:35 throw err ^ TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 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) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) Node.js v18.17.1 Adapters from github: 0 Adapter State + system.adapter.admin.0 : admin : iobroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.discovery.0 : discovery : iobroker - enabled system.adapter.flot.0 : flot : iobroker - enabled + system.adapter.fritzdect.0 : fritzdect : iobroker - enabled + system.adapter.history.0 : history : iobroker - enabled system.adapter.info.0 : info : iobroker - enabled + system.adapter.rpi2.0 : rpi2 : iobroker - enabled + system.adapter.shelly.0 : shelly : iobroker - enabled, port: 1883, bind: 0.0.0.0 + system.adapter.smartmeter.0 : smartmeter : iobroker - enabled + system.adapter.web.0 : web : iobroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin + 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.shelly.0 : shelly : iobroker - enabled, port: 1883, 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 : http://download.iobroker.net/sources-dist.json beta : http://download.iobroker.net/sources-dist-latest.json Active repo(s): stable Installed ioBroker-Instances Used repository: stable Adapter "admin" : 6.10.1 , installed 6.3.5 [Updatable] Adapter "discovery" : 3.1.0 , installed 3.1.0 Adapter "flot" : 1.12.0 , installed 1.12.0 Adapter "fritzdect" : 2.3.1 , installed 2.3.1 Adapter "history" : 2.2.6 , installed 2.2.4 [Updatable] Adapter "info" : 1.9.26 , installed 1.9.26 Controller "js-controller": 5.0.12 , installed 4.0.24 [Updatable] Adapter "rpi2" : 1.3.2 , installed 1.3.2 Adapter "shelly" : 6.4.1 , installed 6.4.1 Adapter "simple-api" : 2.7.2 , installed 2.7.2 Adapter "smartmeter" : 3.3.4 , installed 3.3.4 Adapter "socketio" : 6.5.5 , installed 4.2.0 [Updatable] Adapter "vw-connect" : 0.0.67 , installed 0.0.67 Adapter "web" : 6.1.2 , installed 4.3.0 [Updatable] Adapter "ws" : 2.5.5 , installed 1.3.0 [Updatable] Objects and States Please stand by - This may take a while Objects: 893 States: 711 *** OS-Repositories and Updates *** Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Get:3 https://deb.nodesource.com/node_18.x bullseye InRelease [4586 B] Fetched 4586 B in 9s (526 B/s) 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:1883 0.0.0.0:* LISTEN 1001 402952 5540/io.shelly.0 tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1001 400163 5477/iobroker.js-co tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1001 400156 5477/iobroker.js-co tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 686 453/sshd: /usr/sbin tcp6 0 0 :::8082 :::* LISTEN 1001 403481 5655/io.web.0 tcp6 0 0 :::8081 :::* LISTEN 1001 400241 5495/io.admin.0 tcp6 0 0 :::22 :::* LISTEN 0 696 453/sshd: /usr/sbin udp 0 0 0.0.0.0:37574 0.0.0.0:* 108 11646 372/avahi-daemon: r udp 0 0 0.0.0.0:5353 0.0.0.0:* 108 11644 372/avahi-daemon: r udp6 0 0 :::35659 :::* 108 11647 372/avahi-daemon: r udp6 0 0 fe80::d918:6e98:b64:546 :::* 0 789 378/NetworkManager udp6 0 0 :::5353 :::* 108 11645 372/avahi-daemon: r *** Log File - Last 25 Lines *** 2023-09-26 17:42:30.558 - error: host.iobroker Caught by controller[0]: at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4) 2023-09-26 17:42:30.558 - error: host.iobroker Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1256:14) 2023-09-26 17:42:30.559 - error: host.iobroker Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) 2023-09-26 17:42:30.559 - error: host.iobroker Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1119:32) 2023-09-26 17:42:30.560 - error: host.iobroker Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:960:12) 2023-09-26 17:42:30.573 - error: host.iobroker Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19) 2023-09-26 17:42:30.574 - error: host.iobroker Caught by controller[0]: at require (node:internal/modules/cjs/helpers:121:18) 2023-09-26 17:42:30.574 - error: host.iobroker Caught by controller[0]: at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13) 2023-09-26 17:42:30.575 - error: host.iobroker Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1256:14) 2023-09-26 17:42:30.575 - error: host.iobroker Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) 2023-09-26 17:42:30.575 - error: host.iobroker Caught by controller[0]: Node.js v18.17.1 2023-09-26 17:42:30.576 - error: host.iobroker Caught by controller[1]: /opt/iobroker/node_modules/iobroker.info/main.js:89 2023-09-26 17:42:30.576 - error: host.iobroker Caught by controller[1]: adapter.log.error("Could not check npm version: " + e); 2023-09-26 17:42:30.577 - error: host.iobroker Caught by controller[1]: ^ 2023-09-26 17:42:30.577 - error: host.iobroker Caught by controller[1]: TypeError: Cannot read properties of undefined (reading 'log') 2023-09-26 17:42:30.578 - error: host.iobroker Caught by controller[1]: at getSystemVersions (/opt/iobroker/node_modules/iobroker.info/main.js:89:11) 2023-09-26 17:42:30.578 - error: host.iobroker Caught by controller[1]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.info/main.js:58:18) 2023-09-26 17:42:30.578 - error: host.iobroker Caught by controller[1]: at Module._compile (node:internal/modules/cjs/loader:1256:14) 2023-09-26 17:42:30.579 - error: host.iobroker Caught by controller[1]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) 2023-09-26 17:42:30.579 - error: host.iobroker Caught by controller[1]: at Module.load (node:internal/modules/cjs/loader:1119:32) 2023-09-26 17:42:30.580 - error: host.iobroker Caught by controller[1]: at Module._load (node:internal/modules/cjs/loader:960:12) 2023-09-26 17:42:30.581 - error: host.iobroker Caught by controller[1]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) 2023-09-26 17:42:30.581 - error: host.iobroker Caught by controller[1]: at node:internal/main/run_main_module:23:47 2023-09-26 17:42:30.582 - error: host.iobroker Caught by controller[2]: Node.js v18.17.1 2023-09-26 17:42:30.583 - error: host.iobroker instance system.adapter.info.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
-
@christoph77 welches Betriebssystem hast du denn tatsächlich laufen?
Und du solltest
iob diag
aufrufen und schon mal hier das Ergebnis posten. Dann kann man dir bestimmt bei deinem geschilderten Problem helfen.
Ro75.
-
@christoph77
Bitte Code in CodeTags setzen. -
@christoph77 sagte in iobroker lässt sich nicht aktualisieren, NPM offenbar defekt:
NPM lässt sich einfach werde neu installieren noch überschreiben.
das macht man auch nie nicht.
npm kommt mit nodejs in der korrekten Version
hiermit hab ich immer meine Probleme das richtig zu lesen:
@christoph77 sagte in iobroker lässt sich nicht aktualisieren, NPM offenbar defekt:
dev/mmcblk0p1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
@thomas-braun
ist das jetzt nur noch RO oder doch nicht? -
@homoran Hallo, genau so steht es in der Ausgabe von iob diag, nach "remount-ro" endet die Zeile.
Show mounted filesystems (real ones only): TARGET SOURCE FSTYPE OPTIONS / /dev/mmcblk0p2 ext4 rw,noatime `-/boot /dev/mmcblk0p1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
-
@homoran sagte: npm kommt mit nodejs in der korrekten Version
Mit dem Update von Node.js auf 18.17.1 hatte ich mir auch NPM zerschossen. Ich habe es dann damit repariert:
curl -qL https://www.npmjs.com/install.sh | sh
Es wurde Version 9.8.1 installiert.
-
@homoran sagte in iobroker lässt sich nicht aktualisieren, NPM offenbar defekt:
ist das jetzt nur noch RO oder doch nicht?
Nein, das Dateisystem ist rw gemountet, ro wird es nur im Falle eines Fehlers gemountet.
-
-
@thomas-braun said in iobroker lässt sich nicht aktualisieren, NPM offenbar defekt:
sudo apt update
christoph@iobroker:/opt/iobroker $ sudo apt update Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Get:3 https://deb.nodesource.com/node_18.x bullseye InRelease [4,586 B] Fetched 4,586 B in 1s (3,395 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date.
-
Das sind zwei Zeilen...
-
@thomas-braun Der zweite Befehl läuft noch
-
24 Minuten??
-
@thomas-braun HAt in der Tat ziemlich lange gebraucht, stand ewig bei 20%.
Hier der Code:
christoph@iobroker:/opt/iobroker $ sudo apt install --reinstall nodejs Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/25.9 MB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 56626 files and directories currently installed.) Preparing to unpack .../nodejs_18.17.1-deb-1nodesource1_armhf.deb ... Unpacking nodejs (18.17.1-deb-1nodesource1) over (18.17.1-deb-1nodesource1) ... Setting up nodejs (18.17.1-deb-1nodesource1) ... Processing triggers for man-db (2.9.4-2) ... Segmentation fault christoph@iobroker:/opt/iobroker $
-
@thomas-braun Hat in der Tat ziemlich lange gebraucht, stand ewig bei 20%.
Hier der Code:
christoph@iobroker:/opt/iobroker $ sudo apt install --reinstall nodejs Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/25.9 MB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 56626 files and directories currently installed.) Preparing to unpack .../nodejs_18.17.1-deb-1nodesource1_armhf.deb ... Unpacking nodejs (18.17.1-deb-1nodesource1) over (18.17.1-deb-1nodesource1) ... Setting up nodejs (18.17.1-deb-1nodesource1) ... Processing triggers for man-db (2.9.4-2) ... Segmentation fault christoph@iobroker:/opt/iobroker $
-
@christoph77 sagte in iobroker lässt sich nicht aktualisieren, NPM offenbar defekt:
Segmentation fault
hmmm, da ist was kaputt
-
Stimmt.
Dem Braten würde ich nicht mehr trauen. Neuinstallation. Diesmal die 64Bit-Version.
-
@thomas-braun Lässt sich nach Neuinstallation ein Backup einspielen oder ist ein im jetzigen Zustand erstelltes Backup unbrauchbar ? Hauptsächlich geht es mir um die erfassten Daten seit Anfang des Jahres.
-
@christoph77 sagte in iobroker lässt sich nicht aktualisieren, NPM offenbar defekt:
Lässt sich nach Neuinstallation ein Backup einspielen
Vermutlich.
-
@christoph77 sagte in iobroker lässt sich nicht aktualisieren, NPM offenbar defekt:
ein im jetzigen Zustand erstelltes Backup unbrauchbar
leider ja.
Segmentation Fault deutet auf Speicherzugriffsfehler.
Schlimmstenfalls ist dein RasPi hin, bestenfalls "nur" die Speicherverwaltung.
Was dann in der Backupdatei landet ist Roulette -
@homoran Könnte also auch eine defekte SD-Karte sein. Mich verwundert nur dass das System ansonsten stabil und zuverlässig tut was es soll. In welchem Ordner werden denn die erfassten Werte gespeichert ?