NEWS
NodeJS Versions Problem bei NSPANEL Script (gelöst)
-
======================= SUMMARY ======================= v.2023-01-02 Operatingsystem: Debian GNU/Linux 11 (bullseye) Installation: lxc Timezone: Europe/Berlin User-ID: 0 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Nodejs-Installation: /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 8.19.3 /usr/bin/npx 8.19.3 ioBroker Core: js-controller 4.0.24 admin 6.3.5 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin: + system.adapter.admin.0 : admin : ioBroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin Pending iob updates: 0 Active repo(s): Stable (default) Objects: 11049 States: 10614 Size of iob-Database: 39M /opt/iobroker/iobroker-data/objects.jsonl 13M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================
-
@dark-angel Magst du uns davon die Lang Version zeigen und hast du den Javascript Adapter mal neu gestartet?
-
Skript v.2023-01-02 *** BASE SYSTEM *** Architecture: x86_64 Docker: false Virtualization: lxc Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" Systemuptime and Load: 09:59:15 up 13:29, 2 users, load average: 0.18, 0.21, 0.26 CPU threads: 2 *** Time and Time Zones *** Sun Mar 12 08:59:15 UTC 2023 Sun Mar 12 09:59:15 CET 2023 CET +0100 Europe/Berlin *** User and Groups *** root /root root *** X-Server-Setup *** X-Server: false Desktop: Terminal: tty Boot Target: graphical.target *** MEMORY *** total used free shared buff/cache available Mem: 4.1G 1.1G 2.6G 0.0K 370M 3.0G Swap: 512M 312M 199M Total: 4.6G 1.4G 2.8G 4096 M total memory 1101 M used memory 505 M active memory 867 M inactive memory 2623 M free memory 0 M buffer memory 370 M swap cache 512 M total swap 312 M used swap 199 M free swap *** FILESYSTEM *** Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/pve-vm--101--disk--0 ext4 20G 3.4G 16G 19% / none tmpfs 492K 4.0K 488K 1% /dev tmpfs tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs tmpfs 3.2G 112K 3.2G 1% /run tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0 Messages in dmesg: [Sat Mar 11 20:14:47 2023] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [Sat Mar 11 20:14:48 2023] EXT4-fs (dm-1): re-mounted. Opts: errors=remount-ro. Quota mode: none. [Sat Mar 11 20:14:55 2023] EXT4-fs (dm-13): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [Sat Mar 11 20:14:57 2023] EXT4-fs (dm-6): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [Sat Mar 11 20:14:59 2023] EXT4-fs (dm-9): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [Sat Mar 11 20:15:03 2023] EXT4-fs (dm-8): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [Sat Mar 11 20:15:05 2023] EXT4-fs (dm-11): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [Sat Mar 11 20:15:07 2023] EXT4-fs (dm-10): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [Sat Mar 11 20:29:37 2023] EXT4-fs (dm-6): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. Show mounted filesystems (real ones only): TARGET SOURCE FSTYPE OPTIONS / /dev/mapper/pve-vm--101--disk--0 ext4 rw,relatime,stripe=16 Files in neuralgic directories: /var: 500M /var/ 226M /var/cache 222M /var/cache/apt 155M /var/cache/apt/archives 137M /var/log/journal/9ee502583c9c486791c77bc51ed6a2f5 /opt/iobroker/backups: 4.0K /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 251M /opt/iobroker/iobroker-data/ 143M /opt/iobroker/iobroker-data/files 55M /opt/iobroker/iobroker-data/backup-objects 51M /opt/iobroker/iobroker-data/files/javascript.admin 42M /opt/iobroker/iobroker-data/files/devices.admin The five largest files in iobroker-data are: 39M /opt/iobroker/iobroker-data/objects.jsonl 33M /opt/iobroker/iobroker-data/files/devices.admin/static/js/main.10538062.js.map 15M /opt/iobroker/iobroker-data/states.jsonl 8.2M /opt/iobroker/iobroker-data/files/devices.admin/static/js/main.10538062.js 6.9M /opt/iobroker/iobroker-data/files/javascript.admin/static/js/610.de0231c9.chunk.js.map *** NodeJS-Installation *** /usr/bin/nodejs v16.19.1 /usr/bin/node v16.19.1 /usr/bin/npm 8.19.3 /usr/bin/npx 8.19.3 nodejs: Installed: 16.19.1-deb-1nodesource1 Candidate: 16.19.1-deb-1nodesource1 Version table: *** 16.19.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u3 500 500 http://security.debian.org bullseye-security/main amd64 Packages 12.22.5~dfsg-2~11u1 500 500 http://ftp.debian.org/debian bullseye/main amd64 Packages Temp directories causing npm8 problem: 0 *** ioBroker-Installation *** ioBroker Status iobroker is running on this host. Objects type: jsonl States type: jsonl Core adapters versions js-controller: 4.0.24 admin: 6.3.5 javascript: 6.1.4 Adapters from github: 0 Adapter State + system.adapter.accuweather.0 : accuweather : ioBroker - enabled + system.adapter.admin.0 : admin : ioBroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.alias-manager.0 : alias-manager : ioBroker - enabled system.adapter.asterisk.0 : asterisk : ioBroker - disabled, port: 5038 + system.adapter.backitup.0 : backitup : ioBroker - enabled system.adapter.daswetter.0 : daswetter : ioBroker - enabled system.adapter.devices.0 : devices : ioBroker - enabled + system.adapter.discovery.0 : discovery : ioBroker - enabled + system.adapter.email.0 : email : ioBroker - enabled system.adapter.fritzbox.0 : fritzbox : ioBroker - disabled system.adapter.fritzdect.0 : fritzdect : ioBroker - disabled + system.adapter.info.0 : info : ioBroker - enabled + system.adapter.jarvis.0 : jarvis : ioBroker - enabled + system.adapter.javascript.0 : javascript : ioBroker - enabled + system.adapter.mqtt.0 : mqtt : ioBroker - enabled, port: 1886, bind: 0.0.0.0 + system.adapter.net-tools.0 : net-tools : ioBroker - enabled system.adapter.onvif.0 : onvif : ioBroker - disabled system.adapter.openweathermap.0 : openweathermap : ioBroker - enabled system.adapter.parser.0 : parser : ioBroker - disabled + system.adapter.ping.0 : ping : ioBroker - enabled + system.adapter.proxmox.0 : proxmox : ioBroker - enabled, port: 8006 + system.adapter.shelly.0 : shelly : ioBroker - enabled, port: 1885, bind: 0.0.0.0 + system.adapter.sonoff.0 : sonoff : ioBroker - enabled, port: 1884, bind: 192.168.213.249 + system.adapter.tr-064.0 : tr-064 : ioBroker - enabled system.adapter.tr-064.1 : tr-064 : ioBroker - disabled + system.adapter.tr-064.2 : tr-064 : 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.mqtt.0 : mqtt : ioBroker - enabled, port: 1886, bind: 0.0.0.0 + system.adapter.proxmox.0 : proxmox : ioBroker - enabled, port: 8006 + system.adapter.shelly.0 : shelly : ioBroker - enabled, port: 1885, bind: 0.0.0.0 + system.adapter.sonoff.0 : sonoff : ioBroker - enabled, port: 1884, bind: 192.168.213.249 + 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 "accuweather" : 1.2.1 , installed 1.2.1 Adapter "admin" : 6.3.5 , installed 6.3.5 Adapter "alias-manager": 1.2.4 , installed 1.2.4 Adapter "asterisk" : 1.0.6 , installed 1.0.6 Adapter "backitup" : 2.5.12 , installed 2.5.12 Adapter "daswetter" : 3.1.7 , installed 3.1.7 Adapter "devices" : 1.1.2 , installed 1.1.2 Adapter "discovery" : 3.1.0 , installed 3.1.0 Adapter "email" : 1.1.4 , installed 1.1.4 Adapter "fritzbox" : 0.2.1 , installed 0.2.1 Adapter "fritzdect" : 2.2.6 , installed 2.2.6 Adapter "info" : 1.9.19 , installed 1.9.19 Adapter "jarvis" : 3.1.2 , installed 3.1.2 Adapter "javascript" : 6.1.4 , installed 6.1.4 Controller "js-controller": 4.0.24 , installed 4.0.24 Adapter "mqtt" : 4.0.7 , installed 4.0.7 Adapter "net-tools" : 0.2.0 , installed 0.2.0 Adapter "onvif" : 1.0.2 , installed 1.0.2 Adapter "openweathermap": 0.3.3 , installed 0.3.3 Adapter "parser" : 1.1.8 , installed 1.1.8 Adapter "ping" : 1.5.3 , installed 1.5.3 Adapter "proxmox" : 1.3.4 , installed 1.3.4 Adapter "shelly" : 6.3.1 , installed 6.3.1 Adapter "simple-api" : 2.7.2 , installed 2.7.2 Adapter "socketio" : 4.2.0 , installed 4.2.0 Adapter "sonoff" : 2.5.1 , installed 2.5.1 Adapter "tr-064" : 4.2.17 , installed 4.2.17 Adapter "web" : 4.3.0 , installed 4.3.0 Adapter "ws" : 1.3.0 , installed 1.3.0 Objects and States Please stand by - This may take a while Objects: 11049 States: 10614 *** OS-Repositories and Updates *** Hit:1 http://security.debian.org bullseye-security InRelease Hit:2 https://deb.nodesource.com/node_16.x bullseye InRelease Hit:3 http://ftp.debian.org/debian bullseye InRelease Hit:4 http://ftp.debian.org/debian bullseye-updates 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:111 0.0.0.0:* LISTEN 0 101896 1/init tcp 0 0 0.0.0.0:8400 0.0.0.0:* LISTEN 1000 110696 914/io.jarvis.0 tcp 0 0 0.0.0.0:1886 0.0.0.0:* LISTEN 1000 103611 366/io.mqtt.0 tcp 0 0 0.0.0.0:1885 0.0.0.0:* LISTEN 1000 103925 437/io.shelly.0 tcp 0 0 192.168.213.249:1884 0.0.0.0:* LISTEN 1000 106619 452/io.sonoff.0 tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1000 102729 118/iobroker.js-con tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1000 103442 118/iobroker.js-con tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 104 102113 108/systemd-resolve tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 102288 298/master tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 104 102107 108/systemd-resolve tcp6 0 0 :::22 :::* LISTEN 0 102042 1/init tcp6 0 0 :::111 :::* LISTEN 0 101900 1/init tcp6 0 0 ::1:25 :::* LISTEN 0 102289 298/master tcp6 0 0 :::5355 :::* LISTEN 104 102110 108/systemd-resolve tcp6 0 0 :::8082 :::* LISTEN 1000 110786 949/io.web.0 tcp6 0 0 :::8081 :::* LISTEN 1000 100107 309/io.admin.0 udp 0 0 192.168.213.249:5353 0.0.0.0:* 1000 106794 494/io.tr-064.2 udp 0 0 192.168.213.249:5353 0.0.0.0:* 1000 106695 467/io.tr-064.0 udp 0 0 0.0.0.0:5355 0.0.0.0:* 104 102106 108/systemd-resolve udp 0 0 127.0.0.53:53 0.0.0.0:* 104 102112 108/systemd-resolve udp 0 0 0.0.0.0:111 0.0.0.0:* 0 101897 1/init udp 0 0 192.168.213.249:123 0.0.0.0:* 0 102625 130/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 0 102623 130/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 0 102619 130/ntpd udp6 0 0 :::5355 :::* 104 102109 108/systemd-resolve udp6 0 0 :::111 :::* 0 101903 1/init udp6 0 0 fe80::34d0:3cff:fe1:123 :::* 0 103504 130/ntpd udp6 0 0 ::1:123 :::* 0 102627 130/ntpd udp6 0 0 :::123 :::* 0 102616 130/ntpd *** Log File - Last 25 Lines *** 2023-03-12 09:57:00.005 - warn: javascript.0 (21806) at Timeout._onTimeout (/opt/iobroker/node_modules/node-schedule/lib/Invocation.js:228:7) 2023-03-12 09:57:00.005 - warn: javascript.0 (21806) at listOnTimeout (node:internal/timers:559:17) 2023-03-12 09:57:00.005 - warn: javascript.0 (21806) at processTimers (node:internal/timers:502:7) 2023-03-12 09:58:30.062 - warn: javascript.0 (21806) getState "0_userdata.0.wetter.Windrichtung" not found (3) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at HandleScreensaverUpdate (script.js.NSPanels.NS_Wohnzimmer:7536:31) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at Object.<anonymous> (script.js.NSPanels.NS_Wohnzimmer:2265:17) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at step (script.js.NSPanels.NS_Wohnzimmer:33:23) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at Object.next (script.js.NSPanels.NS_Wohnzimmer:14:53) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at script.js.NSPanels.NS_Wohnzimmer:8:71 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at new Promise (<anonymous>:null:null) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at __awaiter (script.js.NSPanels.NS_Wohnzimmer:4:12) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at Object.<anonymous> (script.js.NSPanels.NS_Wohnzimmer:2261:12) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1244:38) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:593:29) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5381:56) 2023-03-12 09:58:30.063 - warn: javascript.0 (21806) at processImmediate (node:internal/timers:466:21) 2023-03-12 09:59:00.004 - warn: javascript.0 (21806) getState "0_userdata.0.wetter.Windrichtung" not found (3) 2023-03-12 09:59:00.004 - warn: javascript.0 (21806) at HandleScreensaverUpdate (script.js.NSPanels.NS_Wohnzimmer:7536:31) 2023-03-12 09:59:00.004 - warn: javascript.0 (21806) at Object.<anonymous> (script.js.NSPanels.NS_Wohnzimmer:2202:9) 2023-03-12 09:59:00.005 - warn: javascript.0 (21806) at Job.job (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1595:34) 2023-03-12 09:59:00.005 - warn: javascript.0 (21806) at Job.invoke (/opt/iobroker/node_modules/node-schedule/lib/Job.js:171:15) 2023-03-12 09:59:00.005 - warn: javascript.0 (21806) at /opt/iobroker/node_modules/node-schedule/lib/Invocation.js:268:28 2023-03-12 09:59:00.005 - warn: javascript.0 (21806) at Timeout._onTimeout (/opt/iobroker/node_modules/node-schedule/lib/Invocation.js:228:7) 2023-03-12 09:59:00.005 - warn: javascript.0 (21806) at listOnTimeout (node:internal/timers:559:17) 2023-03-12 09:59:00.005 - warn: javascript.0 (21806) at processTimers (node:internal/timers:502:7)
-
JS neu gestartet, den kleinen Fehler im TS (Windrichtung bezieht im original TS Daten von einen nicht vorhandenen Pfad) "behoben" und Script neu gestartet:
12.3.2023, 10:09:53.916 [info ]: javascript.0 (25778) script.js.NSPanels.NS_Wohnzimmer: compiling TypeScript source... 12.3.2023, 10:09:54.712 [info ]: javascript.0 (25778) script.js.NSPanels.NS_Wohnzimmer: source code did not change, using cached compilation result... 12.3.2023, 10:09:54.752 [warn ]: javascript.0 (25778) script.js.NSPanels.NS_Wohnzimmer: nodeJS must be at least v16.X.X. Currently: v14.20.1! Please Update your System! 12.3.2023, 10:09:54.752 [info ]: javascript.0 (25778) script.js.NSPanels.NS_Wohnzimmer: setObjects enabled - create Alias Channels possible 12.3.2023, 10:09:54.756 [info ]: javascript.0 (25778) script.js.NSPanels.NS_Wohnzimmer: weather alias for accuweather.0. already exists 12.3.2023, 10:09:54.809 [info ]: javascript.0 (25778) script.js.NSPanels.NS_Wohnzimmer: registered 28 subscriptions, 7 schedules, 0 messages, 0 logs and 0 file subscriptions 12.3.2023, 10:09:54.981 [info ]: javascript.0 (25778) script.js.NSPanels.NS_Wohnzimmer: Desired TFT Firmware: 50 / v4.0.4 12.3.2023, 10:09:54.981 [info ]: javascript.0 (25778) script.js.NSPanels.NS_Wohnzimmer: Installed TFT Firmware: 50 / v4.0.4 12.3.2023, 10:10:05.659 [warn ]: javascript.0 (25778) at HandleScreensaverUpdate (script.js.NSPanels.NS_Wohnzimmer:7536:31) 12.3.2023, 10:10:05.659 [warn ]: javascript.0 (25778) at HandleScreensaver (script.js.NSPanels.NS_Wohnzimmer:7315:5) 12.3.2023, 10:10:05.659 [warn ]: javascript.0 (25778) at HandleMessage (script.js.NSPanels.NS_Wohnzimmer:3263:21) 12.3.2023, 10:10:05.659 [warn ]: javascript.0 (25778) at Object.<anonymous> (script.js.NSPanels.NS_Wohnzimmer:3192:25) 12.3.2023, 10:10:05.659 [warn ]: javascript.0 (25778) at step (script.js.NSPanels.NS_Wohnzimmer:33:23) 12.3.2023, 10:10:05.659 [warn ]: javascript.0 (25778) at Object.next (script.js.NSPanels.NS_Wohnzimmer:14:53) 12.3.2023, 10:10:05.660 [warn ]: javascript.0 (25778) at script.js.NSPanels.NS_Wohnzimmer:8:71 12.3.2023, 10:10:05.660 [warn ]: javascript.0 (25778) at __awaiter (script.js.NSPanels.NS_Wohnzimmer:4:12) 12.3.2023, 10:10:05.660 [warn ]: javascript.0 (25778) at Object.<anonymous> (script.js.NSPanels.NS_Wohnzimmer:3184:12)
-
@dark-angel sagte in NodeJS Versions Problem bei NSPANEL Script:
source code did not change, using cached compilation result...
Keine Ahnung wo da scheinbar das Script was denkt welche Version noch vorhanden ist.
Ich würde folgendes Probieren.
Script komplett löschen
iob Server neu starten
Script neu anlegen. -
@dark-angel
das sieht mir nach einem Bug im Nspanel-Script aus - das prüft die Nodeversion über system.host.*.nodeCurrent - es gibt zwar einen Dp ‚npmCurrent‘, der für Node heisst aber anders (kannst du im Expertenmodus in deinem Objektbaum prüfen).. -
@jleg sagte in NodeJS Versions Problem bei NSPANEL Script:
@dark-angel
das sieht mir nach einem Bug im Nspanel-Script aus - das prüft die Nodeversion über system.host.*.nodeCurrent - es gibt zwar einen Dp ‚npmCurrent‘, der für Node heisst aber anders (kannst du im Expertenmodus in deinem Objektbaum prüfen)..Danke @JLeg.
Wieder was gelernt...Also: da diese Proxmox-CT mittlerweile die 3. Installation ist, bei der ich einfach die Backups der Vorgängermaschinen nach der Installation importiert habe (Raspberry Pi3 > Raspberry Pi4 > Proxmox), scheint bei jeden Import die "alte" Installation als Host unter "system.host." mit erstellt worden zu sein.
Dadurch scheint das Script etwas durcheinander zu kommen, da es unter "system.host.*.nodeCurrent" bei mir 3 Hosts findet.Die überflüssigen Hosts gelöscht, ioBroker neu gestartet und siehe da: Keine Fehlermeldung mehr, das NodeJS veraltet ist.
Mal sehen, ob irgendwelche andere Instanzen, oder Scripte damit ein Problem haben, dass ich die "alte" Hosts gelöscht habe...Vielleicht könnte trotzdem das Script dahingehend etwas "verbessert" werden, damit es wirklich nur die NodeJS Version des Hosts prüft, auf dem es läuft.
Danke euch allen, dass Ihr euch so intensiv um eine Lösung bemüht habt.
-
@dark-angel danke das du die Lösung mit uns teilst.
-
@wendy2702: Ich dachte, dass ist der Sinn und Zweck einer solchen Community: Lösungen mit den anderen Teilen...
Also, kein Grund für euch Danke zu sagen. Ich danke euch, dass ihr mir bei der Lösung des Problems geholfen habt. -
@dark-angel Du glaubst garnicht wieviele Threads hier gelöst sind und die Lösung nie verraten wurde.