NEWS
Node.js sauber neu installieren?
-
Hallo zusammen,
ich habe heute mein System mal auf den aktuellsten Stand gebracht (Bullseye -> Bookworm) und soweit läuft auch alles, wie es sollte. Basis für den ioBroker ist bei mir nun Debian Bookworm als virtuelle Maschine auf unserem Synology-NAS. In diesem Zuge wollte ich (nach Erstellung eines Snapshots) node.js auf den aktuellen Stand bringen und habe es aus dem Debian-Repository installiert. Ursprünglich war es auf dem "alten" System aber von nodesource installiert.
Da ich nun befürchte, dass da etwas strubbelig sein oder werden könnte, würde ich das gesamte node.js gerne mal deinstallieren und aus dem Original-Debian-Repo neu installieren. Natürlich alles mit gestopptem ioBroker etc.
Ist das so möglich?
Viele Grüße
Levy -
-
-
@levyko sagte in Node.js sauber neu installieren?:
Da ich nun befürchte, dass da etwas strubbelig sein oder werden könnte
Normalerweise muss man nodejs ja nie selbst installieren. Das macht ja der ioBroker Installer (und der bringt dann auch die richtige Version mit). Wie ist die nodejs Installation denn auf das System gekommen?
Ansonsten hat @Thomas-Braun Ja schon die Lösung geteilt. Das Script macht alles, was Du brauchst.
-
@levyko sagte in Node.js sauber neu installieren?:
aus dem Original-Debian-Repo
Nein, diese Version willst du NICHT.
Verwende die von nodesource gepackte Variante.Das 'Große Ganze' per
iob diag
anschauen ist natürlich nie verkehrt.
-
Hier ist der Output von "iob diag":
========== Start marking the full check here =========== Script v.2024-10-19 *** BASE SYSTEM *** Static hostname: ioBroker Icon name: computer-vm Chassis: vm Virtualization: kvm Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-30-amd64 Architecture: x86-64 Hardware Vendor: QEMU Hardware Model: Standard PC _i440FX + PIIX, 1996_ Firmware Version: Virtualization-2.5.1-11303-200428-0-gfff70e7 OS is similar to: model name : Intel(R) Celeron(R) CPU J3455 @ 1.50GHz Docker : false Virtualization : kvm Kernel : x86_64 Userland : 64 bit Systemuptime and Load: 11:01:25 up 15:44, 2 users, load average: 0.84, 1.03, 1.15 CPU threads: 2 *** LIFE CYCLE STATUS *** Operating System is the current Debian stable version codenamed 'bookworm'! *** TIME AND TIMEZONES *** Local time: Tue 2025-01-28 11:01:25 CET Universal time: Tue 2025-01-28 10:01:25 UTC RTC time: Tue 2025-01-28 10:01:25 Time zone: Europe/Berlin (CET, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no *** Users and Groups *** User that called 'iob diag': dkocks HOME=/home/dkocks GROUPS=dkocks dialout cdrom floppy sudo audio dip video plugdev netdev iobroker User that is running 'js-controller': iobroker HOME=/home/iobroker GROUPS=iobroker tty dialout audio video plugdev *** DISPLAY-SERVER SETUP *** Display-Server: false Desktop: Terminal: tty System is booting into 'graphical.target'. Usually a server is running in 'multi-user.target'. Please set BootTarget to 'multi-user.target' or run 'iobroker fix' *** MEMORY *** total used free shared buff/cache available Mem: 5.2G 2.3G 1.9G 602K 1.3G 2.9G Swap: 1.1G 0B 1.1G Total: 6.2G 2.3G 3.0G Active iob-Instances: 17 4917 M total memory 2175 M used memory 502 M active memory 2298 M inactive memory 1793 M free memory 174 M buffer memory 1059 M swap cache 1023 M total swap 0 M used swap 1023 M free swap *** top - Table Of Processes *** top - 11:01:26 up 15:44, 2 users, load average: 1.10, 1.08, 1.16 Tasks: 115 total, 1 running, 114 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 50.0 sy, 0.0 ni, 0.0 id, 50.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 4917.2 total, 1793.9 free, 2175.5 used, 1233.9 buff/cache MiB Swap: 1024.0 total, 1024.0 free, 0.0 used. 2741.6 avail Mem *** FAILED SERVICES *** UNIT LOAD ACTIVE SUB DESCRIPTION 0 loaded units listed. *** DMESG CRITICAL ERRORS *** No critical errors detected *** FILESYSTEM *** Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 2.4G 0 2.4G 0% /dev tmpfs tmpfs 492M 596K 492M 1% /run /dev/sda1 ext4 49G 9.6G 37G 21% / tmpfs tmpfs 2.5G 0 2.5G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs tmpfs 492M 0 492M 0% /run/user/1000 Messages concerning ext4 filesystem in dmesg: [Mon Jan 27 19:16:38 2025] EXT4-fs (sda1): mounted filesystem with ordered data mode. Quota mode: none. [Mon Jan 27 19:16:44 2025] EXT4-fs (sda1): re-mounted. Quota mode: none. Show mounted filesystems: TARGET SOURCE FSTYPE OPTIONS / /dev/sda1 ext4 rw,relatime,errors=remount-ro Files in neuralgic directories: /var: 2.0G /var/ 1.4G /var/log/journal/e9ba7cedd6a34816acc2144105aa5f75 1.4G /var/log/journal 1.4G /var/log 434M /var/cache Hint: You are currently not seeing messages from other users and the system. Users in groups 'adm', 'systemd-journal' can see all messages. Pass -q to turn off this notice. Archived and active journals take up 255.2M in the file system. /opt/iobroker/backups: 4.0K /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 1.1G /opt/iobroker/iobroker-data/ 978M /opt/iobroker/iobroker-data/files 617M /opt/iobroker/iobroker-data/files/javascript.admin 560M /opt/iobroker/iobroker-data/files/javascript.admin/static 558M /opt/iobroker/iobroker-data/files/javascript.admin/static/js The five largest files in iobroker-data are: 38M /opt/iobroker/iobroker-data/files/iot.admin/static/js/main.d3d286bd.js.map 26M /opt/iobroker/iobroker-data/objects.jsonl 24M /opt/iobroker/iobroker-data/files/web.admin/static/js/main.135279a0.js.map 24M /opt/iobroker/iobroker-data/files/scenes.admin/static/js/main.c9369f6c.js.map 8.8M /opt/iobroker/iobroker-data/files/iot.admin/static/js/main.d3d286bd.js USB-Devices by-id: USB-Sticks - Avoid direct links to /dev/tty* in your adapter setups, please always prefer the links 'by-id': /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2681058-if00 *** NodeJS-Installation *** /usr/bin/nodejs v18.19.0 /usr/bin/node v18.19.0 /usr/bin/npm 9.2.0 /usr/bin/npx 9.2.0 corepack: N/A *** nodejs is NOT correctly installed *** nodejs: Installed: 18.19.0+dfsg-6~deb12u2 Candidate: 18.19.0+dfsg-6~deb12u2 Version table: *** 18.19.0+dfsg-6~deb12u2 500 500 http://deb.debian.org/debian bookworm/main amd64 Packages 100 /var/lib/dpkg/status 18.19.0+dfsg-6~deb12u1 500 500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages 18.17.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_18.x bookworm/main amd64 Packages Temp directories causing deletion problem: 0 No problems detected Errors in npm tree: 0 No problems detected *** ioBroker-Installation *** ioBroker Status iobroker is running on this host. Objects type: jsonl States type: jsonl Hosts: ioBroker ioBroker (version: 7.0.6, hostname: ioBroker , alive, uptime: 1163) Core adapters versions js-controller: 7.0.6 admin: 7.4.10 javascript: 8.8.3 nodejs modules from github: 0 Adapter State + system.adapter.admin.0 : admin : ioBroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.backitup.0 : backitup : ioBroker - enabled system.adapter.daswetter.0 : daswetter : ioBroker - enabled + system.adapter.deconz.0 : deconz : ioBroker - enabled, port: 80 + system.adapter.discovery.0 : discovery : ioBroker - enabled system.adapter.dwd.0 : dwd : ioBroker - enabled + system.adapter.hm-rega.0 : hm-rega : ioBroker - enabled + system.adapter.hm-rpc.0 : hm-rpc : ioBroker - enabled, port: 0 system.adapter.hue.0 : hue : ioBroker - disabled, port: 443 system.adapter.ical.0 : ical : ioBroker - enabled + system.adapter.influxdb.0 : influxdb : ioBroker - enabled, port: 8086 + system.adapter.iot.0 : iot : ioBroker - enabled + system.adapter.javascript.0 : javascript : ioBroker - enabled + system.adapter.ping.0 : ping : ioBroker - enabled + system.adapter.pushover.0 : pushover : ioBroker - enabled + system.adapter.scenes.0 : scenes : ioBroker - enabled + system.adapter.viessmannapi.0 : viessmannapi : ioBroker - enabled system.adapter.vis-google-fonts.0 : vis-google-fonts : ioBroker - enabled system.adapter.vis-icontwo.0 : vis-icontwo : ioBroker - enabled + system.adapter.vis-inventwo.0 : vis-inventwo : ioBroker - enabled system.adapter.vis-map.0 : vis-map : ioBroker - enabled system.adapter.vis-timeandweather.0 : vis-timeandweather : ioBroker - enabled system.adapter.vis.0 : vis : 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 + 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.web.0 : web : ioBroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin ioBroker-Repositories ┌─────────┬──────────┬─────────────────────────────────────────────────────────┬──────────────┐ │ (index) │ name │ url │ auto upgrade │ ├─────────┼──────────┼─────────────────────────────────────────────────────────┼──────────────┤ │ 0 │ 'stable' │ 'http://download.iobroker.net/sources-dist.json' │ false │ │ 1 │ 'beta' │ 'http://download.iobroker.net/sources-dist-latest.json' │ false │ └─────────┴──────────┴─────────────────────────────────────────────────────────┴──────────────┘ Active repo(s): stable Upgrade policy: none Installed ioBroker-Instances Used repository: stable Adapter "admin" : 7.4.10 , installed 7.4.10 Adapter "backitup" : 3.0.31 , installed 3.0.31 Adapter "daswetter" : 3.2.2 , installed 3.2.2 Adapter "deconz" : 1.6.4 , installed 1.6.4 Adapter "discovery" : 5.0.0 , installed 5.0.0 Adapter "dwd" : 2.8.5 , installed 2.8.5 Adapter "hm-rega" : 5.1.0 , installed 5.1.0 Adapter "hm-rpc" : 2.0.2 , installed 2.0.2 Adapter "hue" : 3.13.1 , installed 3.13.1 Adapter "ical" : 1.16.1 , installed 1.16.1 Adapter "influxdb" : 4.0.2 , installed 4.0.2 Adapter "iot" : 3.3.0 , installed 3.3.0 Adapter "javascript" : 8.8.3 , installed 8.8.3 Controller "js-controller": 7.0.6 , installed 7.0.6 Adapter "ping" : 1.6.2 , installed 1.6.2 Adapter "pushover" : 4.1.0 , installed 4.1.0 Adapter "scenes" : 3.2.3 , installed 3.2.3 Adapter "simple-api" : 2.8.0 , installed 2.8.0 Adapter "socketio" : 6.7.1 , installed 6.7.1 Adapter "viessmannapi" : 2.3.0 , installed 2.3.0 Adapter "vis" : 1.5.6 , installed 1.5.6 Adapter "vis-google-fonts": 1.0.4 , installed 1.0.4 Adapter "vis-icontwo" : 1.11.0 , installed 1.11.0 Adapter "vis-inventwo" : 3.3.4 , installed 3.3.4 Adapter "vis-map" : 1.1.2 , installed 1.1.2 Adapter "vis-timeandweather": 1.2.2, installed 1.2.2 Adapter "web" : 6.2.5 , installed 6.2.5 Adapter "ws" : 2.6.2 , installed 2.6.2 Adapter "yahka" : 1.0.3 , installed 1.0.3 Objects and States Please stand by - This may take a while Objects: 10842 States: 8885 *** OS-Repositories and Updates *** Hit:1 http://phoscon.de/apt/deconz bookworm InRelease Hit:2 http://deb.debian.org/debian bookworm InRelease Hit:3 http://security.debian.org/debian-security bookworm-security InRelease Hit:4 http://deb.debian.org/debian bookworm-updates InRelease Hit:5 http://deb.debian.org/debian bullseye-backports InRelease Hit:6 https://repos.influxdata.com/debian stable InRelease Hit:7 https://apt.grafana.com stable InRelease Hit:8 https://deb.nodesource.com/node_18.x bookworm 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 14838 620/sshd: /usr/sbin tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 12080 1/init tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1000 16247 555/deCONZ tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1000 16641 555/deCONZ tcp 0 0 0.0.0.0:45363 0.0.0.0:* LISTEN 1001 124862 10894/io.yahka.0 tcp 0 0 192.168.55.74:2010 0.0.0.0:* LISTEN 1001 124328 10700/io.hm-rpc.0 tcp 0 0 127.0.0.1:37267 0.0.0.0:* LISTEN 1001 124870 10894/io.yahka.0 tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1001 122807 10588/iobroker.js-c tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1001 122837 10588/iobroker.js-c tcp6 0 0 :::22 :::* LISTEN 0 14840 620/sshd: /usr/sbin tcp6 0 0 :::111 :::* LISTEN 0 12082 1/init tcp6 0 0 :::3000 :::* LISTEN 108 16781 723/grafana tcp6 0 0 :::8086 :::* LISTEN 998 16721 572/influxd tcp6 0 0 :::8082 :::* LISTEN 1001 124768 10836/io.web.0 tcp6 0 0 :::8081 :::* LISTEN 1001 123978 10609/io.admin.0 udp 0 0 0.0.0.0:5353 0.0.0.0:* 109 14816 550/avahi-daemon: r udp 0 0 0.0.0.0:1900 0.0.0.0:* 1001 124696 10758/io.deconz.0 udp 0 0 0.0.0.0:1900 0.0.0.0:* 1000 16644 555/deCONZ udp 0 0 0.0.0.0:59280 0.0.0.0:* 109 14818 550/avahi-daemon: r udp 0 0 0.0.0.0:68 0.0.0.0:* 0 14562 369/dhclient udp 0 0 0.0.0.0:111 0.0.0.0:* 0 12081 1/init udp6 0 0 :::5353 :::* 109 14817 550/avahi-daemon: r udp6 0 0 :::1900 :::* 1001 124698 10758/io.deconz.0 udp6 0 0 :::1900 :::* 1001 124697 10758/io.deconz.0 udp6 0 0 :::111 :::* 0 12083 1/init udp6 0 0 :::33570 :::* 109 14819 550/avahi-daemon: r *** Log File - Last 25 Lines *** 2025-01-28 10:45:37.366 - info: host.ioBroker instance system.adapter.daswetter.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2025-01-28 10:49:59.514 - info: admin.0 (10609) ==> Connected system.user.admin from ::ffff:192.168.55.50 2025-01-28 10:50:06.125 - info: host.ioBroker instance system.adapter.dwd.0 in version "2.8.5" started with pid 11127 2025-01-28 10:50:15.566 - info: dwd.0 (11127) starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v18.19.0, js-controller: 7.0.6 2025-01-28 10:50:16.636 - info: dwd.0 (11127) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2025-01-28 10:50:17.205 - info: host.ioBroker instance system.adapter.dwd.0 having pid 11127 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2025-01-28 10:52:38.053 - info: host.ioBroker instance system.adapter.daswetter.0 in version "3.2.2" started with pid 11506 2025-01-28 10:52:45.309 - info: daswetter.0 (11506) starting. Version 3.2.2 in /opt/iobroker/node_modules/iobroker.daswetter, node: v18.19.0, js-controller: 7.0.6 2025-01-28 10:53:24.119 - info: daswetter.0 (11506) Terminated (ADAPTER_REQUESTED_TERMINATION): All data handled, adapter stopped until next scheduled moment 2025-01-28 10:53:24.687 - info: daswetter.0 (11506) cleaned everything up... 2025-01-28 10:53:24.726 - info: host.ioBroker instance system.adapter.daswetter.0 having pid 11506 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2025-01-28 10:53:49.281 - info: admin.0 (10609) <== Disconnect system.user.admin from ::ffff:192.168.55.50 admin 2025-01-28 10:55:06.074 - info: host.ioBroker instance system.adapter.dwd.0 in version "2.8.5" started with pid 12834 2025-01-28 10:55:12.296 - info: dwd.0 (12834) starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v18.19.0, js-controller: 7.0.6 2025-01-28 10:55:13.197 - info: dwd.0 (12834) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2025-01-28 10:55:13.781 - info: host.ioBroker instance system.adapter.dwd.0 having pid 12834 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2025-01-28 11:00:06.043 - info: host.ioBroker instance system.adapter.dwd.0 in version "2.8.5" started with pid 12976 2025-01-28 11:00:12.006 - info: dwd.0 (12976) starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v18.19.0, js-controller: 7.0.6 2025-01-28 11:00:12.900 - info: dwd.0 (12976) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2025-01-28 11:00:13.472 - info: host.ioBroker instance system.adapter.dwd.0 having pid 12976 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2025-01-28 11:00:38.055 - info: host.ioBroker instance system.adapter.daswetter.0 in version "3.2.2" started with pid 12993 2025-01-28 11:00:43.984 - info: daswetter.0 (12993) starting. Version 3.2.2 in /opt/iobroker/node_modules/iobroker.daswetter, node: v18.19.0, js-controller: 7.0.6 2025-01-28 11:01:14.953 - info: daswetter.0 (12993) Terminated (ADAPTER_REQUESTED_TERMINATION): All data handled, adapter stopped until next scheduled moment 2025-01-28 11:01:15.491 - info: daswetter.0 (12993) cleaned everything up... 2025-01-28 11:01:15.528 - info: host.ioBroker instance system.adapter.daswetter.0 having pid 12993 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) ============ Mark until here for C&P =============
-
Das node.js hatte ich nach dem Upgrade des Systems selbst installiert *dummerfehler*. Viel schlimmer ist, dass ich davor auch noch ein "sudo apt install node" rausgejagt habe *nochdümmererfehler*. Da frage ich mich jetzt schon, wie ich den ganzen Krempel, den er dadurch installiert hat, wieder wegbekomme.
Viele Grüße
Levy -
@levyko sagte in Node.js sauber neu installieren?:
wieder wegbekomme.
@thomas-braun sagte in Node.js sauber neu installieren?:
iob nodejs-update 20
bringt das alles auf das richtige Gleis.
-
Ah, ok... Ich habe "iob nodejs-update 20" gerade angestoßen und nun ist er fleißig dabei, alles "node-"-Gedönse zu deinstallieren. Supi
Das dauert jetzt erstmal. Ich berichte, ob alles geklappt hat
Bis hierhin schon mal vielen Dank für die Hilfe!
Viele Grüße
Levy -
@levyko sagte in Node.js sauber neu installieren?:
Ich berichte, ob alles geklappt hat
Das kannst du selber per
iob diag
checken. Oder per erneutem Aufruf von
iob nodejs-update
Wenn alles senkrecht ist wird das entsprechend gemeldet.
-
So... er hatte einiges zu deinstallieren. "iob diag" sagt nun, dass alles in Ordnung sei und auch die ganzen überflüssigen Pakete sind nun weg.
Ein Hoch auf dieses Script!
Vielen Dank und viele Grüße
Levy -
Schön, das es dir geholfen hat.
Freut den Coder von dem Ding.