NEWS
Unterbrechnung/Absturz - Raspberry4/ioBroker
-
@thomas-braun sagte in Unterbrechnung/Absturz - Raspberry4/ioBroker:
iob diag
Wie bist du denn da ansonsten unterwegs?Ohne Hintergrundwissen bin ich in das Projekt über einen smarten Stromzähler hinein gerutscht. Informationen im Netz zusammen gesucht und mich gefreut, das es nach kurzer Zeit lief. Ursprünglich habe ich mal etwas handwerkliches gelernt und bin ansonsten eher auf der Windows - Anwenderseite unterwegs gewesen.
Hier die Informationen:======================= 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: 15 Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v18.17.0 /usr/bin/node v18.17.0 /usr/bin/npm 9.6.7 /usr/bin/npx 9.6.7 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: 1.8G 977M 283M 16M 587M 786M Swap: 99M 49M 50M Total: 1.9G 1.0G 333M Active iob-Instances: 15 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 : raspberry04 - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.web.0 : web : raspberry04 - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 849 States: 603 Size of iob-Database: 16M /opt/iobroker/iobroker-data/objects.jsonl 1.4M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================
-
Das schaut doch bis auf die 15 Updates in der Pipeline gut aus. Spiel die noch ein.
-
@thomas-braun sagte: Spiel die noch ein.
Das mache ich - Danke
-
Hallo zusammen,
das Problem ist noch nicht gelöst. Es gibt Tage, an welchen das System problemlos läuft und dann gibt es wieder, die für mich nicht nachvollziehbaren, Aussetzer.
Immer kommt am Anfang das Thema "Updating" und dann passiert irgend etwas.Kann mir bitte jemand sagen, was das System da macht oder an welcher Stelle ich Suchen soll.
Die Skripte habe ich seit Tagen nicht mehr verändert. Es läuft mehrere Tage und dann wieder eine Unterbrechung.
Mit dem Raspberry - Adapter kann ich im Bereich Speicher oder Temperatur nichts ungewöhnliches erkennen.Wo kann das her kommen bzw. welche automatischen Abläufe laufen da im Hintergrund?
Über Unterstützung würde ich mich sehr freuen.
Ralf2023-08-07 07:29:57.978 - info: admin.0 (1108) Adapter rating updated 2023-08-07 07:39:09.400 - info: admin.0 (1108) Request actual repository... 2023-08-07 07:39:09.937 - info: host.raspberry04 Updating repository "stable" under "http://download.iobroker.net/sources-dist.json" 2023-08-07 08:29:03.333 - error: email.0 (1215) States database error: write ECONNRESET 2023-08-07 08:29:03.388 - error: backitup.0 (1362) States database error: write ECONNRESET 2023-08-07 08:29:03.423 - error: discovery.0 (1347) States database error: write ECONNRESET 2023-08-07 08:29:03.332 - error: lovelace.0 (1384) States database error: write ECONNRESET 2023-08-07 08:29:03.694 - error: web.0 (1377) States database error: read ECONNRESET 2023-08-07 08:29:05.196 - info: lovelace.0 (1384) cleaned everything up... 2023-08-07 08:29:05.202 - info: backitup.0 (1362) cleaned everything up... 2023-08-07 08:29:05.699 - warn: web.0 (1377) Timeout by termination of web-extensions! 2023-08-07 08:29:06.004 - info: web.0 (1377) terminated http server on port 8082 2023-08-07 08:29:03.617 - error: sql.0 (1198) States database error: write EPIPE
-
@ralf-6 sagte in Unterbrechnung/Absturz - Raspberry4/ioBroker:
Immer kommt am Anfang das Thema "Updating" und dann passiert irgend etwas.
wo kommt das?
was genau steht "da"?
-
Hallo Homoran,
ich bekomme es erst im Nachhinein mit, dass das System ausgestiegen ist. Sobald es wieder läuft meldet sich ein Sensor zurück. Für die Zwischenzeit von 7:28 und 8:29 habe ich auch keine Sensorwerte.
Wenn ich nach solch einem Ereignis in den LOG gehe, bekomme ich obige Meldungen zu sehen. Mit den Meldungen selber, kann ich nichts anfangen. Ich weiß nicht, was mir das System damit sagen möchte.
Ich kann nur sehen, dass eben z.B. heute zwischen 7:28 und 8:29 das System nicht so lief, wie es sollte. Die letzte Meldung vom System, bevor es streikt lautet eben:"info: admin.0 (xxxx) Adapter rating updated"
Soweit ich das nachvollziehen konnte, ist das immer die letzte Meldung vor dem Stop
Benötigst Du noch weitere Informationen?
Gruß Ralf -
@ralf-6 sagte in Unterbrechnung/Absturz - Raspberry4/ioBroker:
States database error: write ECONNRESET
States database error: write EPIPEDa kann auf die Datenbank nicht zugegriffen werden.
Rechte verfummelt, Dateisystem fratze, irgendwas anderes.
Schau mal mitiob diag
in der Langfassung in das System.
-
@thomas-braun sagte in Unterbrechnung/Absturz - Raspberry4/ioBroker:
iob diag
Hallo Thomas Braun,
nur so ein Gedanke. Das mit der Datenbank kommt doch erst nach ca. 50 Minuten. Davor hat das System ja schon nicht mehr gesendet. Sollte dann der Fehler nicht vorne dran liegen?
Und was bedeutet "Adapter rating updated"Danke für die Unterstützung
Ralfhier der Report:
======== Start marking the full check here ========= Skript v.2023-04-16 *** BASE SYSTEM *** Model : Raspberry Pi 4 Model B Rev 1.4 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: 12:42:49 up 13 days, 5:13, 2 users, load average: 0.23, 0.22, 0.18 CPU threads: 4 Raspberry only: throttled=0x0 Other values than 0x0 hint to temperature/voltage problems temp=64.7'C volt=0.9260V *** Time and Time Zones *** Local time: Mon 2023-08-07 12:42:49 CEST Universal time: Mon 2023-08-07 10:42:49 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 *** ralf /home/ralf ralf 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: 1.8G 906M 612M 20M 329M 849M Swap: 99M 36M 63M Total: 1.9G 942M 676M 1848 M total memory 906 M used memory 1097 M active memory 30 M inactive memory 612 M free memory 41 M buffer memory 287 M swap cache 99 M total swap 36 M used swap 63 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 294G 4.6G 277G 2% / devtmpfs devtmpfs 667M 0 667M 0% /dev tmpfs tmpfs 925M 16K 925M 1% /dev/shm tmpfs tmpfs 370M 1.2M 369M 1% /run tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock /dev/sda1 vfat 255M 31M 225M 13% /boot tmpfs tmpfs 185M 0 185M 0% /run/user/1000 Messages concerning ext4 filesystem in dmesg: [Tue Jul 25 07:28:49 2023] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 smsc95xx.macaddr=E4:5F:01:4D:21:7D vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000 console=ttyS0,115200 console=tty1 root=PARTUUID=af967ffc-02 rootfstype=ext4 fsck.repair=yes rootwait [Tue Jul 25 07:28:52 2023] EXT4-fs (sda2): mounted filesystem with ordered data mode. Quota mode: none. [Tue Jul 25 07:28:52 2023] VFS: Mounted root (ext4 filesystem) readonly on device 8:2. [Tue Jul 25 07:28:57 2023] EXT4-fs (sda2): re-mounted. 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: 1.7G /var/ 971M /var/log 969M /var/log/journal/72342de5355d406786c27846ba2d422a 969M /var/log/journal 347M /var/cache Archived and active journals take up 968.2M in the file system. /opt/iobroker/backups: 60M /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 165M /opt/iobroker/iobroker-data/ 82M /opt/iobroker/iobroker-data/files 62M /opt/iobroker/iobroker-data/backup-objects 52M /opt/iobroker/iobroker-data/files/javascript.admin 34M /opt/iobroker/iobroker-data/files/javascript.admin/static The five largest files in iobroker-data are: 16M /opt/iobroker/iobroker-data/objects.jsonl 6.9M /opt/iobroker/iobroker-data/files/javascript.admin/static/js/610.312d98a8.chunk.js.map 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 5.9M /opt/iobroker/iobroker-data/files/javascript.admin/static/js/44.59b48e42.chunk.js.map 5.0M /opt/iobroker/iobroker-data/states.jsonl *** NodeJS-Installation *** /usr/bin/nodejs v18.17.0 /usr/bin/node v18.17.0 /usr/bin/npm 9.6.7 /usr/bin/npx 9.6.7 nodejs: Installed: 18.17.0-deb-1nodesource1 Candidate: 18.17.0-deb-1nodesource1 Version table: *** 18.17.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~deb11u4 500 500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages 12.22.12~dfsg-1~deb11u3 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: 7.0.3 Adapters from github: 0 Adapter State + system.adapter.admin.0 : admin : raspberry04 - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.backitup.0 : backitup : raspberry04 - enabled + system.adapter.discovery.0 : discovery : raspberry04 - enabled + system.adapter.email.0 : email : raspberry04 - enabled + system.adapter.history.0 : history : raspberry04 - enabled system.adapter.influxdb.0 : influxdb : raspberry04 - disabled, port: 8086 system.adapter.influxdb.1 : influxdb : raspberry04 - disabled, port: 8086 + system.adapter.javascript.0 : javascript : raspberry04 - enabled + system.adapter.lovelace.0 : lovelace : raspberry04 - enabled, port: 8091, bind: 0.0.0.0, run as: admin + system.adapter.mqtt.0 : mqtt : raspberry04 - enabled, port: 1888, bind: 0.0.0.0 + system.adapter.rpi2.0 : rpi2 : raspberry04 - enabled + system.adapter.sonoff.0 : sonoff : raspberry04 - enabled, port: 1883, bind: 0.0.0.0 + system.adapter.sql.0 : sql : raspberry04 - enabled + system.adapter.web.0 : web : raspberry04 - enabled, port: 8082, bind: 0.0.0.0, run as: admin + instance is alive Enabled adapters with bindings + system.adapter.admin.0 : admin : raspberry04 - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.lovelace.0 : lovelace : raspberry04 - enabled, port: 8091, bind: 0.0.0.0, run as: admin + system.adapter.mqtt.0 : mqtt : raspberry04 - enabled, port: 1888, bind: 0.0.0.0 + system.adapter.sonoff.0 : sonoff : raspberry04 - enabled, port: 1883, bind: 0.0.0.0 + system.adapter.web.0 : web : raspberry04 - 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.3.5 , installed 6.3.5 Adapter "backitup" : 2.6.23 , installed 2.6.23 Adapter "discovery" : 3.1.0 , installed 3.1.0 Adapter "email" : 1.2.0 , installed 1.2.0 Adapter "history" : 2.2.4 , installed 2.2.4 Adapter "influxdb" : 3.2.0 , installed 3.2.0 Adapter "javascript" : 7.0.3 , installed 7.0.3 Controller "js-controller": 4.0.24 , installed 4.0.24 Adapter "lovelace" : 3.0.1 , installed 3.0.1 Adapter "mqtt" : 4.1.1 , installed 4.1.1 Adapter "rpi2" : 1.3.2 , installed 1.3.2 Adapter "simple-api" : 2.7.2 , installed 2.7.2 Adapter "socketio" : 4.2.0 , installed 4.2.0 Adapter "sonoff" : 2.5.3 , installed 2.5.3 Adapter "sql" : 2.2.0 , installed 2.2.0 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: 903 States: 641 *** 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://repos.influxdata.com/debian stable InRelease Hit:6 https://deb.nodesource.com/node_18.x bullseye InRelease Reading package lists... Pending Updates: 9 *** 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 12875 538/sshd: /usr/sbin tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 110 12988 579/postgres tcp 0 0 0.0.0.0:1888 0.0.0.0:* LISTEN 1001 6453806 1184782/io.mqtt.0 tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN 1001 6453787 1184766/io.sonoff.0 tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1001 6452044 1184433/iobroker.js tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1001 6452046 1184433/iobroker.js tcp6 0 0 :::22 :::* LISTEN 0 12877 538/sshd: /usr/sbin tcp6 0 0 ::1:5432 :::* LISTEN 110 12987 579/postgres tcp6 0 0 :::8086 :::* LISTEN 999 14932 447/influxd tcp6 0 0 :::8081 :::* LISTEN 1001 6454312 1184553/io.admin.0 tcp6 0 0 :::8082 :::* LISTEN 1001 6453865 1184827/io.web.0 tcp6 0 0 :::8091 :::* LISTEN 1001 6452965 1184843/io.lovelace udp 0 0 0.0.0.0:53148 0.0.0.0:* 108 11951 392/avahi-daemon: r udp 0 0 0.0.0.0:68 0.0.0.0:* 0 14726 786/dhcpcd udp 0 0 0.0.0.0:5353 0.0.0.0:* 108 11949 392/avahi-daemon: r udp6 0 0 :::5353 :::* 108 11950 392/avahi-daemon: r udp6 0 0 :::34216 :::* 108 11952 392/avahi-daemon: r udp6 0 0 :::546 :::* 0 12919 786/dhcpcd *** Log File - Last 25 Lines *** 2023-08-07 10:47:42.495 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.23 admin 2023-08-07 11:03:25.794 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 admin 2023-08-07 11:03:25.797 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 javascript 2023-08-07 11:03:26.400 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 admin 2023-08-07 11:15:25.924 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 11:15:26.071 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 11:15:26.685 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 11:15:27.952 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 admin 2023-08-07 11:15:28.074 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 javascript 2023-08-07 11:15:28.973 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 11:15:29.095 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 12:30:47.195 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 admin 2023-08-07 12:30:49.346 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 javascript 2023-08-07 12:30:54.341 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 admin 2023-08-07 12:40:40.936 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 12:40:41.000 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 12:40:41.704 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 12:40:42.096 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 javascript 2023-08-07 12:40:42.484 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 admin 2023-08-07 12:40:42.714 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 admin 2023-08-07 12:40:42.718 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 12:40:42.739 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 12:40:42.770 - info: admin.0 (1184553) <== Disconnect system.user.admin from ::ffff:192.168.178.22 admin 2023-08-07 12:40:42.881 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 2023-08-07 12:40:44.687 - info: admin.0 (1184553) ==> Connected system.user.admin from ::ffff:192.168.178.22 ============ Mark until here for C&P =============
-
@ralf-6 sagte in Unterbrechnung/Absturz - Raspberry4/ioBroker:
Bis auf die verdächtig niedrigen Zahlen an Objects and States schaut das eigentlich gesund aus.
Objects and States Please stand by - This may take a while Objects: 903 States: 641
Ich würde mich an deiner Stelle auf die diversen Datenbanken konzentrieren. SQL, influxdb... Brauchst du die alle?
-
@thomas-braun sagte in Unterbrechnung/Absturz - Raspberry4/ioBroker:
@ralf-6 sagte in Unterbrechnung/Absturz - Raspberry4/ioBroker:
Bis auf die verdächtig niedrigen Zahlen an Objects and States schaut das eigentlich gesund aus.
Ich habe noch nicht viel im System. Derzeit habe ich das Programm für den Wasserwechseler gebastelt. Und eben wegen der Wasserwechselautomatik ist mir auch unwohl bei solchem seltsamen Verhalten.
Ich würde mich an deiner Stelle auf die diversen Datenbanken konzentrieren. SQL, influxdb... Brauchst du die alle?
Mit influx bin ich nicht warm geworden. Ist noch auf dem RPI installiert, die Instanzen jedoch inaktiv. Soll ich die trotzdem löschen?
Auf der SQL archiviere ich die Daten der Stromzähler und logge derzeit noch den Wasserwechsler mit.Außer dem Löschen der Influx, was kann ich auf der Datenbankseite noch tun?
Gruß Ralf
-
Ich hab von Datenbanken keine Ahnung.