NEWS
Troubleshooting NodeJS update
-
@thomas-braun
nene - extern.
Alles klar - ich mach nochmal alles neu...Danke
-
@habedere sagte in Troubleshooting NodeJS update:
nene - extern.
Dann brauchst du natürlich auf dem Server auch keinen X-Server/Desktop.
-
Neuer Versuch...
======== Start marking the full check here =========
Skript v.2023-04-16 *** BASE SYSTEM *** Model : Raspberry Pi 3 Model B Rev 1.2 Architecture : aarch64 Docker : false Virtualization : none 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: 20:04:34 up 50 min, 2 users, load average: 0.30, 0.24, 0.30 CPU threads: 4 Raspberry only: throttled=0x0 Other values than 0x0 hint to temperature/voltage problems temp=51.5'C volt=1.2938V *** Time and Time Zones *** Local time: Sun 2023-04-23 20:04:35 BST Universal time: Sun 2023-04-23 19:04:35 UTC RTC time: n/a Time zone: Europe/London (BST, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no *** User and Groups *** nulu /home/nulu nulu 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: 909M 232M 452M 0.0K 224M 613M Swap: 99M 18M 81M Total: 1.0G 250M 533M 909 M total memory 232 M used memory 122 M active memory 233 M inactive memory 452 M free memory 24 M buffer memory 200 M swap cache 99 M total swap 18 M used swap 81 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 110G 2.3G 104G 3% / devtmpfs devtmpfs 325M 0 325M 0% /dev tmpfs tmpfs 455M 0 455M 0% /dev/shm tmpfs tmpfs 182M 1.1M 181M 1% /run tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock /dev/sda1 vfat 255M 31M 225M 12% /boot tmpfs tmpfs 91M 0 91M 0% /run/user/1000 Messages concerning ext4 filesystem in dmesg: [Sun Apr 23 19:13:56 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 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=e2d113b0-02 rootfstype=ext4 fsck.repair=yes rootwait [Sun Apr 23 19:14:02 2023] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [Sun Apr 23 19:14:02 2023] VFS: Mounted root (ext4 filesystem) readonly on device 8:2. [Sun Apr 23 19:14:06 2023] EXT4-fs (sda2): re-mounted. Opts: (null). Quota mode: none. Show mounted filesystems (real ones only): TARGET SOURCE FSTYPE OPTIONS / /dev/sda2 ext4 rw,noatime `-/boot /dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro Files in neuralgic directories: /var: 458M /var/ 179M /var/cache 173M /var/cache/apt 147M /var/lib 122M /var/lib/apt/lists Archived and active journals take up 32.0M in the file system. /opt/iobroker/backups: 4.0K /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 15M /opt/iobroker/iobroker-data/files 15M /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 *** NodeJS-Installation *** /usr/bin/nodejs v18.16.0 /usr/bin/node v18.16.0 /usr/bin/npm 9.5.1 /usr/bin/npx 9.5.1 nodejs: Installed: 18.16.0-deb-1nodesource1 Candidate: 18.16.0-deb-1nodesource1 Version table: *** 18.16.0-deb-1nodesource1 500 500 https://deb.nodesource.com/node_18.x bullseye/main arm64 Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u3 500 500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages 12.22.5~dfsg-2~11u1 500 500 http://deb.debian.org/debian bullseye/main arm64 Packages Temp directories causing npm8 problem: 0 No problems detected *** ioBroker-Installation *** ioBroker Status iobroker is running on this host. Objects type: jsonl States type: jsonl MULTIHOSTSERVICE/enabled: false Core adapters versions js-controller: 4.0.24 admin: 6.3.5 javascript: "javascript" not found Adapters from github: 0 Adapter State + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.backitup.0 : backitup : raspberrypi - enabled + system.adapter.discovery.0 : discovery : raspberrypi - enabled + instance is alive Enabled adapters with bindings + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, 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.3.5 , installed 6.3.5 Adapter "backitup" : 2.6.16 , installed 2.6.16 Adapter "discovery" : 3.1.0 , installed 3.1.0 Controller "js-controller": 4.0.24 , installed 4.0.24 Objects and States Please stand by - This may take a while Objects: 142 States: 104 *** OS-Repositories and Updates *** Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease Hit:4 http://deb.debian.org/debian bullseye-updates InRelease Hit:5 https://deb.nodesource.com/node_18.x bullseye InRelease Reading package lists... Pending Updates: 19 *** 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 12940 821/sshd: /usr/sbin tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1001 32536 7399/iobroker.js-co tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1001 32529 7399/iobroker.js-co tcp6 0 0 :::22 :::* LISTEN 0 12942 821/sshd: /usr/sbin tcp6 0 0 :::8081 :::* LISTEN 1001 31304 7481/io.admin.0 udp 0 0 0.0.0.0:68 0.0.0.0:* 0 14288 920/dhcpcd udp 0 0 0.0.0.0:5353 0.0.0.0:* 108 11804 428/avahi-daemon: r udp 0 0 0.0.0.0:47649 0.0.0.0:* 108 11806 428/avahi-daemon: r udp6 0 0 :::54407 :::* 108 11807 428/avahi-daemon: r udp6 0 0 :::5353 :::* 108 11805 428/avahi-daemon: r *** Log File - Last 25 Lines *** 2023-04-23 19:25:03.203 - info: host.raspberrypi hostname: raspberrypi, node: v18.16.0 2023-04-23 19:25:03.206 - info: host.raspberrypi ip addresses: 192.168.178.3 fdc8:6d06:a691:4a6d:84c6:b886:6e48:f44e fe80::d47e:3b7d:8adc:4dd3 2023-04-23 19:25:04.032 - info: host.raspberrypi connected to Objects and States 2023-04-23 19:25:04.118 - info: host.raspberrypi Node.js version has changed from unknown to 18.16.0 2023-04-23 19:25:04.231 - info: host.raspberrypi Successfully updated capabilities "cap_net_admin, cap_net_bind_service, cap_net_raw" for /usr/bin/node 2023-04-23 19:25:04.292 - info: host.raspberrypi added notifications configuration of host 2023-04-23 19:25:05.103 - info: host.raspberrypi 3 instances found 2023-04-23 19:25:05.124 - info: host.raspberrypi starting 3 instances 2023-04-23 19:25:05.241 - info: host.raspberrypi instance system.adapter.admin.0 started with pid 7481 2023-04-23 19:25:09.197 - info: host.raspberrypi instance system.adapter.discovery.0 started with pid 7488 2023-04-23 19:25:10.651 - info: admin.0 (7481) starting. Version 6.3.5 in /opt/iobroker/node_modules/iobroker.admin, node: v18.16.0, js-controller: 4.0.24 2023-04-23 19:25:10.780 - info: admin.0 (7481) requesting all states 2023-04-23 19:25:10.782 - info: admin.0 (7481) requesting all objects 2023-04-23 19:25:11.389 - info: admin.0 (7481) received all objects 2023-04-23 19:25:12.036 - info: admin.0 (7481) http server listening on port 8081 2023-04-23 19:25:12.039 - info: admin.0 (7481) Use link "http://localhost:8081" to configure. 2023-04-23 19:25:12.101 - info: admin.0 (7481) socket.io server listening on port 8081 2023-04-23 19:25:12.257 - warn: admin.0 (7481) Repository cannot be read: Active repo - stable 2023-04-23 19:25:12.262 - warn: admin.0 (7481) Active repository "stable" cannot be read 2023-04-23 19:25:13.215 - info: host.raspberrypi instance system.adapter.backitup.0 started with pid 7516 2023-04-23 19:25:14.316 - info: discovery.0 (7488) starting. Version 3.1.0 in /opt/iobroker/node_modules/iobroker.discovery, node: v18.16.0, js-controller: 4.0.24 2023-04-23 19:25:18.369 - info: backitup.0 (7516) starting. Version 2.6.16 in /opt/iobroker/node_modules/iobroker.backitup, node: v18.16.0, js-controller: 4.0.24 2023-04-23 19:25:18.629 - info: backitup.0 (7516) [iobroker] backup was activated at 02:40 every 1 day(s) 2023-04-23 19:25:24.768 - info: admin.0 (7481) ==> Connected system.user.admin from ::ffff:192.168.178.10 2023-04-23 19:25:44.524 - info: admin.0 (7481) ==> Connected system.user.admin from ::ffff:192.168.178.10
============ Mark until here for C&P =============
-
@habedere sagte in Troubleshooting NodeJS update:
Time zone: Europe/London (BST, +0100)
Zeitzone setzen.
Pending Updates: 19
System auf Stand halten.
-
@thomas-braun
Beides erledgit - also Zeit fürs Backup?Operatingsystem: Debian GNU/Linux 11 (bullseye) Kernel: 6.1.21-v8+ Installation: Native Timezone: Europe/London (BST, +0100) User-ID: 1000 X-Server: false Boot Target: multi-user.target Pending OS-Updates: 0 Pending iob updates: 0
nulu@raspberrypi:~ $ date Sun 23 Apr 21:27:45 CEST 2023
-
Zeig nochmal einen Durchlauf von
iob diag
Summary reicht. -
@habedere sagte in Troubleshooting NodeJS update:
Timezone: Europe/London (BST, +0100)
Wohnst du auf der Insel?
-
@thomas-braun
ne sorry - war der Zeitversatz der ausgeführten Änderungenmach gerade nochmal iob diag neu...
Dann sieht es sauber aus
-
======================= SUMMARY ======================= v.2023-04-16 Operatingsystem: Debian GNU/Linux 11 (bullseye) Kernel: 6.1.21-v8+ Installation: Native Timezone: Europe/Berlin (CEST, +0200) User-ID: 1000 X-Server: false Boot Target: multi-user.target Pending OS-Updates: 0 Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v18.16.0 /usr/bin/node v18.16.0 /usr/bin/npm 9.5.1 /usr/bin/npx 9.5.1 Recommended versions are nodejs 18.x.y and npm 9.x.y Your nodejs installation is correct MEMORY: total used free shared buff/cache available Mem: 909M 329M 142M 1.0M 437M 517M Swap: 99M 0B 99M Total: 1.0G 329M 242M Active iob-Instances: 4 Active repo(s): stable 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 and web instance: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin Objects: 142 States: 104 Size of iob-Database: 6.5M /opt/iobroker/iobroker-data/objects.jsonl 576K /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================
-
Ja, jetzt ist die Basis solide.
-
Sehr schön - Danke!
Kurze Frage noch - wenn auch etwas OT.
Die MariaDB für den SQL Adapter muss ich nochmal extra installieren oder? Damit ioBroker das SQL Backup einspielen kann...
Oder macht der das gleich mit?! -
@habedere sagte in Troubleshooting NodeJS update:
Oder macht der das gleich mit?!
Der iobroker kann keine Software-Pakete in das Basis-System einspielen. Jedenfalls nicht via Adapter-Installation. Also muss die Datenbank zuvor installiert werden.
-
@thomas-braun
Danke - habe die MariaDB neu installiert.Kurze Frage - kann es sein dass die neueste ioBroker Version + Adapter etc. mehr RAM benötigen?!
Ich laufe komplett auf Anschlag mit meinen 1GB - wüsste nicht dass es vorher auch so krass war...*** MEMORY *** total used free shared buff/cache available Mem: 909M 745M 56M 0.0K 107M 107M Swap: 99M 99M 0.0K Total: 1.0G 844M 57M 909 M total memory 745 M used memory 525 M active memory 241 M inactive memory 56 M free memory 7 M buffer memory 99 M swap cache 99 M total swap 99 M used swap 0 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
Oder kann es sein nachdem ich das Backup eingespielt habe, dass da was doppelt läuft?
Hatte da heute noch diverse Probleme mit redis etc etc... Evtl. hab ich wieder gemurxt -
@habedere natürlich können neuere Versionen auch mehr verbrauchen, alles in allem wird ja auch stehts verbessert und Leistungsstärker
1GB ist halt nun mal begrenzt geeignet -
@crunchip sagte in Troubleshooting NodeJS update:
@habedere natürlich können neuere Versionen auch mehr verbrauchen, alles in allem wird ja auch stehts verbessert und Leistungsstärker
1GB ist halt nun mal begrenzt geeignetschlecht - hab nur 10 Adapter laufen und einige sonstige noch aus
Kann ich die SSD 1:1 an nen größeren Raspi hängen ohne den ganzen Mist von vorn installieren zu müssen? -
@habedere Anzahl Adapter ist zweitrangig, kommt ja drauf an welche und wie viel dann der jeweilige Adapter verbrät.
Theoretisch sollte es klappen mit der SSD, bin mir da aber nicht 100% sicher.
-
Ich habe gerade unter Ubuntu 22.04 von NodeJS Version 16 auf 18 geupgraded ...
Öhm, das war ja mal ganz schrecklich unspektakulär ... beim Wechsel von 14 auf 16 hat er jede Menge Adapter rebuilded - das fällt diesmal weg?
Gerade beim ZigBee-Adapter waren es letztes mal 2 Anläufe, jetzt startet der einfach wieder ...
-
@bananajoe sagte in Troubleshooting NodeJS update:
Öhm, das war ja mal ganz schrecklich unspektakulär ...
Ist es das nicht in den überwiegenden Fällen eigentlich immer?
-
Ha, doch was gefunden:
2023-05-03 20:54:58.621 - error: echarts.0 (12715) Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 108. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). 2023-05-03 20:55:40.504 - error: echarts.0 (12715) Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 108. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). 2023-05-03 20:55:42.236 - error: echarts.0 (12715) Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 108. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). 2023-05-03 20:55:52.262 - info: javascript.0 (10419) script.js.001_Routinen.Solaranlage.Ertragsrechnung: exec: wget --output-document /tmp/Cam225Solaranlage.jpg 'http://192.168.1.225/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=IchbineingeilerTypp&user=admin&password=znil2001' 2023-05-03 20:55:52.274 - error: echarts.0 (12715) Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 108. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`).
-
Canvas sollte sich aber auch selber richten. Geduld...