NEWS
Update nodejs führt zu `GLIBCXX_3.4.26' not found - GELÖST
-
Moin,
ich wollte iobroker mal wieder updaten und habe gesehen, dass für einige Adapter die neuste Version von nodejs notwendig ist.Also wollte ich das ganze mal updaten. Nach dem Update ist aber das Problem, dass ich den iobroker nicht mehr starten kann.
Der Iobroker läuft bei mir auf nem Raspi.Leider muss ich ehrlich sagen, bin ich bei alles was Unix betrifft komplett unerfahren. Ich habe versucht das Problem anhand einiger Foreneinträge oder auch sonstiger Beschreibung und auch mittels chatgpt zu lösen. Leider hat keiner der Wege mich zum Ziel gebracht und nun hoffe ich auf dem Weg auf Hilfe.
Kurze Erläuterung des Problems:
Das update auf nodejs hat (glaube ich) funktioniert .
nodejs -v
gibt mir als Antwort 16.20.2.Wenn ich nun aber
node -v
eingebe kommt das:
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
Die selbe Fehlermeldung kommt übrigens auch wenn ich
iobroker status
oder auch wenn ichnpm -v
eingebe.Was habe ich bereits versucht:
-
sudo apt update
sudo apt upgrade
-
Ich habe nochmal versucht nodejs zu installieren, scheint aber aktuell zu sein
sudo apt-get install -y nodejs
--> nodejs ist schon die neueste Version (16.20.2-deb-1nodesource1) -
Ich habe versucht das libstdc++6 zu installieren, scheint auch aktuell zu sein
sudo apt install --only-upgrade libstdc++6
--> libstdc++6 ist schon die neueste Version (8.3.0-6+rpi1). -
Ich habe den
iob fix
ausgeführt. Dabei sagt er mir, dass für influx und grafana keine PublicKey verfügbar sind, aber ich vermute mal nicht,
dass das mit dem Problem von node zusammen hängt. Bei Schritt 4 meckert er dann:
==========================================================================
Database maintenance (4/5)Checking for uncompressed JSONL databases... This might take a while!
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version
GLIBCXX_3.4.26' not found (required by node) main: Zeile 12: [: -lt: Einstelliger (unärer) Operator erwartet. node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version
GLIBCXX_3.4.26' not found (required by node)Am Ende sagt er aber trotzdem "fixed successfully".
Ich habe auch nochmal
iob diag
laufen lassen:======================= SUMMARY ======================= v.2023-04-16 Operatingsystem: Raspbian GNU/Linux 10 (buster) Kernel: 5.10.103-v7l+ Installation: Native Timezone: Europe/Berlin (CEST, +0200) User-ID: 1000 X-Server: true Boot Target: graphical.target Pending OS-Updates: 0 node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.20.2 node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) /usr/local/bin/node node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) /usr/local/bin/npm node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) /usr/local/bin/npx Recommended versions are nodejs 18.x.y and npm 9.x.y *** nodejs is NOT correctly installed *** MEMORY: total used free shared buff/cache available Mem: 3.8G 376M 2.5G 137M 927M 3.2G Swap: 99M 0B 99M Total: 3.9G 376M 2.6G node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Active iob-Instances: 0 node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) ioBroker Core: js-controller node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) admin node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) ioBroker Status: Status admin and web instance: node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Objects: 0 States: 0 Size of iob-Database: 16M /opt/iobroker/iobroker-data/objects.jsonl 8.4M /opt/iobroker/iobroker-data/objects.json.migrated 8.4M /opt/iobroker/iobroker-data/objects.json.bak.migrated 14M /opt/iobroker/iobroker-data/states.jsonl 1.4M /opt/iobroker/iobroker-data/states.json.migrated 1.4M /opt/iobroker/iobroker-data/states.json.bak.migrated 0 /opt/iobroker/iobroker-data/states.json.broken =================== END OF SUMMARY ====================
Ich bin leider komplett Plan- und Ratlos und hoffe dass mir hier jemand weiterhelfen kann.
-
-
@jogl90 sagte in Update nodejs führt zu `GLIBCXX_3.4.26' not found -Fehler:
Ich habe auch nochmal iob diag laufen lassen:
Wäre schön, wenn man das auch in Gänze und in CodeTags ordentlich lesbar sehen würde. Ich vermuute aber, dass hier die Mumie 'stretch' gequält wird.
-
@thomas-braun
Das hier ist der gesamte Output:Skript v.2023-04-16 *** BASE SYSTEM *** Model : Raspberry Pi 4 Model B Rev 1.2 Architecture : armv7l Docker : false Virtualization : none Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" Systemuptime and Load: 23:19:42 up 51 min, 2 users, load average: 1.28, 1.38, 1.63 CPU threads: 4 Raspberry only: throttled=0x0 Other values than 0x0 hint to temperature/voltage problems temp=71.1'C volt=0.8563V *** Time and Time Zones *** Local time: Mon 2023-09-11 23:19:42 CEST Universal time: Mon 2023-09-11 21:19:42 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 *** pi /home/pi pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker *** X-Server-Setup *** X-Server: true Desktop: LXDE-pi Terminal: x11 Boot Target: graphical.target *** MEMORY *** total used free shared buff/cache available Mem: 3.8G 384M 2.5G 132M 912M 3.2G Swap: 99M 0B 99M Total: 3.9G 384M 2.6G 3787 M total memory 385 M used memory 348 M active memory 744 M inactive memory 2488 M free memory 144 M buffer memory 767 M swap cache 99 M total swap 0 M used swap 99 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 27G 25G 209M 100% / devtmpfs devtmpfs 1.7G 0 1.7G 0% /dev tmpfs tmpfs 1.9G 748K 1.9G 1% /dev/shm tmpfs tmpfs 1.9G 33M 1.9G 2% /run tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/mmcblk0p6 vfat 253M 49M 204M 20% /boot tmpfs tmpfs 379M 4.0K 379M 1% /run/user/1000 Messages concerning ext4 filesystem in dmesg: [Mon Sep 11 22:27:43 2023] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1920x1080M@60,margin_left=48,margin_right=48,margin_top=48,margin_bottom=48 smsc95xx.macaddr=DC:A6:32:AC:3A:D7 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles [Mon Sep 11 22:27:44 2023] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null) [Mon Sep 11 22:27:44 2023] VFS: Mounted root (ext4 filesystem) readonly on device 179:7. [Mon Sep 11 22:27:46 2023] EXT4-fs (mmcblk0p7): re-mounted. Opts: (null) Show mounted filesystems (real ones only): TARGET SOURCE FSTYPE OPTIONS / /dev/mmcblk0p7 ext4 rw,noatime |-/sys/fs/bpf none bpf rw,nosuid,nodev,noexec,relatime,mode=700 |-/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 `-/boot /dev/mmcblk0p6 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro Files in neuralgic directories: /var: 4.4G /var/ 3.4G /var/cache/apt/archives 3.4G /var/cache/apt 3.4G /var/cache 569M /var/log Archived and active journals take up 31.6M in the file system. /opt/iobroker/backups: 9.9G /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 353M /opt/iobroker/iobroker-data/ 185M /opt/iobroker/iobroker-data/files 119M /opt/iobroker/iobroker-data/backup-objects 51M /opt/iobroker/iobroker-data/files/javascript.admin 43M /opt/iobroker/iobroker-data/files/iot.admin The five largest files in iobroker-data are: 33M /opt/iobroker/iobroker-data/files/iot.admin/static/js/main.1797d034.js.map 20M /opt/iobroker/iobroker-data/files/web.admin/static/js/main.becd2d7c.js.map 16M /opt/iobroker/iobroker-data/objects.jsonl 14M /opt/iobroker/iobroker-data/states.jsonl 8.5M /opt/iobroker/iobroker-data/files/iot.admin/static/js/main.1797d034.js *** NodeJS-Installation *** /usr/bin/nodejs v16.20.2 node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) /usr/local/bin/node node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) /usr/local/bin/npm node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) /usr/local/bin/npx node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) *** nodejs is NOT correctly installed *** nodejs: Installed: 16.20.2-deb-1nodesource1 Candidate: 16.20.2-deb-1nodesource1 Version table: *** 16.20.2-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x buster/main armhf Packages 100 /var/lib/dpkg/status 10.24.0~dfsg-1~deb10u3 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages Temp directories causing npm8 problem: 0 No problems detected *** ioBroker-Installation *** ioBroker Status node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Core adapters versions node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) js-controller: node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) admin: node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) javascript: node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Adapters from github: 0 Adapter State node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Enabled adapters with bindings node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) ioBroker-Repositories node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Installed ioBroker-Instances node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) Objects and States Please stand by - This may take a while Objects: 0 States: 0 *** 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://packages.grafana.com/oss/deb 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 buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E W: Failed to fetch https://packages.grafana.com/oss/deb/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/buster/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://raspbian.raspberrypi.org/raspbian buster InRelease Get:2 https://repos.influxdata.com/debian buster InRelease [7038 B] Hit:3 http://archive.raspberrypi.org/debian buster InRelease Get:4 https://packages.grafana.com/oss/deb stable InRelease [5984 B] Hit:5 https://deb.nodesource.com/node_16.x buster InRelease Err:2 https://repos.influxdata.com/debian buster InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E Err:4 https://packages.grafana.com/oss/deb stable InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 Fetched 7038 B in 2s (4439 B/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 buster 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://packages.grafana.com/oss/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 W: Failed to fetch https://packages.grafana.com/oss/deb/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/buster/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: 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 16070 534/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 0 18638 413/cupsd tcp 0 0 127.0.0.1:8088 0.0.0.0:* LISTEN 999 18187 497/influxd tcp 0 0 0.0.0.0:36765 0.0.0.0:* LISTEN 0 22951 496/anydesk tcp 0 0 0.0.0.0:7070 0.0.0.0:* LISTEN 0 18670 496/anydesk tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 0 17214 525/vncserver-x11-c tcp6 0 0 :::8086 :::* LISTEN 999 23479 497/influxd tcp6 0 0 :::22 :::* LISTEN 0 16072 534/sshd tcp6 0 0 ::1:631 :::* LISTEN 0 18637 413/cupsd tcp6 0 0 :::3000 :::* LISTEN 115 25047 495/grafana-server tcp6 0 0 :::5900 :::* LISTEN 0 17213 525/vncserver-x11-c udp 0 0 0.0.0.0:47005 0.0.0.0:* 108 15142 366/avahi-daemon: r udp 0 0 0.0.0.0:68 0.0.0.0:* 0 18213 425/dhcpcd udp 0 0 0.0.0.0:631 0.0.0.0:* 0 18642 488/cups-browsed udp 0 0 0.0.0.0:5353 0.0.0.0:* 108 15140 366/avahi-daemon: r udp 0 0 0.0.0.0:50001 0.0.0.0:* 0 21332 496/anydesk udp6 0 0 :::5353 :::* 108 15141 366/avahi-daemon: r udp6 0 0 :::58726 :::* 108 15143 366/avahi-daemon: r *** Log File - Last 25 Lines *** 2023-09-10 13:56:01.394 - info: hmip.0 (21561) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason 2023-09-10 13:56:01.388 - info: alexa2.0 (21519) Got terminate signal TERMINATE_YOURSELF 2023-09-10 13:56:01.387 - info: backitup.0 (20603) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason 2023-09-10 13:56:01.403 - info: discovery.0 (20590) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason 2023-09-10 13:56:01.406 - info: alexa2.0 (21519) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason 2023-09-10 13:56:01.421 - info: host.localhost stopInstance system.adapter.admin.0 send kill signal 2023-09-10 13:56:01.420 - info: admin.0 (20535) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason 2023-09-10 13:56:01.426 - info: host.localhost stopInstance system.adapter.javascript.0 send kill signal 2023-09-10 13:56:01.426 - info: host.localhost stopInstance system.adapter.alexa2.0 send kill signal 2023-09-10 13:56:01.426 - info: host.localhost stopInstance system.adapter.hmip.0 send kill signal 2023-09-10 13:56:01.427 - info: host.localhost stopInstance system.adapter.discovery.0 send kill signal 2023-09-10 13:56:01.427 - info: host.localhost stopInstance system.adapter.nanoleaf-lightpanels.0 send kill signal 2023-09-10 13:56:01.428 - info: host.localhost stopInstance system.adapter.backitup.0 send kill signal 2023-09-10 13:56:01.449 - warn: hmip.0 (21561) ws connection closed (0) - code: 1000 - reason: 2023-09-10 13:56:02.172 - info: host.localhost instance system.adapter.nanoleaf-lightpanels.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP) 2023-09-10 13:56:02.388 - info: host.localhost instance system.adapter.backitup.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP) 2023-09-10 13:56:02.389 - info: host.localhost instance system.adapter.hmip.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP) 2023-09-10 13:56:02.670 - info: host.localhost instance system.adapter.admin.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP) 2023-09-10 13:56:02.671 - info: host.localhost instance system.adapter.discovery.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP) 2023-09-10 13:56:02.672 - info: host.localhost instance system.adapter.javascript.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP) 2023-09-10 13:56:02.742 - info: host.localhost instance system.adapter.alexa2.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP) 2023-09-10 13:56:04.393 - info: influxdb.0 (21358) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason 2023-09-10 13:56:05.050 - info: host.localhost instance system.adapter.influxdb.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP) 2023-09-10 13:56:05.051 - info: host.localhost All instances are stopped. 2023-09-10 13:56:05.263 - info: host.localhost terminated
-
@jogl90 sagte in Update nodejs führt zu `GLIBCXX_3.4.26' not found -Fehler:
Desktop: LXDE-pi
Ausschalten... Hier ist Kommandozeile angesagt...
Dann brauchste da auch keinen VNC-Server und auch keinen anydesk-Server laufen lassen. Schon gar nicht parallel.Dein root-Dateisystem ist dicht:
/dev/root ext4 27G 25G 209M 100% /
Könnte mit den 9,9 GB Backups zusammenhängen...
Mach da erstmal Platz und dann schau was mit diesem Skript passiert:
-
@thomas-braun
Vielen dank dir für deine schnelle HilfeDein Skript hats gebracht, der Fehler ist damit behoben und iobroker startet wieder wie gehabt.
Ich werde dann mal schauen, dass ich die backups vlt nach 30 Tagen lösche und nicht für Jahre dort aufbewahre xD.
-
@jogl90 sagte in Update nodejs führt zu `GLIBCXX_3.4.26' not found - GELÖST:
Ich werde dann mal schauen, dass ich die backups vlt nach 30 Tagen lösche
Nutze den Backitup-Adapter und schieb die Dateien auch auf ein anderes Medium. Ein Backup auf einer gegrillten SD-Karte nutzt dir nix.
Dann leg dir jetzt das Grafana und influxdb-Repository neu an. Bzw die Schlüssel dazu.
-
@jogl90 sagte in Update nodejs führt zu `GLIBCXX_3.4.26' not found - GELÖST:
Dein Skript hats gebracht, der Fehler ist damit behoben und iobroker startet wieder wie gehabt.
Die Meldungen des Skripts hast du nicht noch zufällig?
-
@thomas-braun
sorry habe die Konsole schon geschlossen -
@jogl90 sagte in Update nodejs führt zu `GLIBCXX_3.4.26' not found - GELÖST:
Am Ende sagt er aber trotzdem "fixed successfully".
damit werden auch nur verbogene Rechte zurechtgerückt.
@jogl90 sagte in Update nodejs führt zu `GLIBCXX_3.4.26' not found - GELÖST:
Dein Skript hats gebracht,
das biegt node-Installationen zurecht