NEWS
Raspberry "friert ein" nach Aufruf von ioBroker
-
Die ganze Misere begann ja mit der Installation von Influx und Grafana. Kann man das irgendwie wieder rückgängig machen ?
-
@greenhorn sagte in Raspberry "friert ein" nach Aufruf von ioBroker:
Kann man das irgendwie wieder rückgängig machen ?
sudo apt remove grafana influx*
-
@thomas-braun Auf den Befehl bekomme ich:
dpkg was interrupted, you must manually run `sudo dpkg --configure -a´ to correct the problem. -
Dann tu das. Da hast du wohl mal den Strom gekillt während die Paket-Datenbank offen war...
-
@thomas-braun Der Befehl diag" ergibt die Anzeige, dass nodejs nicht korrekt installiert ist und verweist auf https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian
Das probiere ich gerade, aber der Befehl sudo rm ´sudo find / -name nodesource.key´ wird mit "rm: missing operand" quittiert...
was tun? -
@greenhorn sagte in Raspberry "friert ein" nach Aufruf von ioBroker:
Der Befehl diag" ergibt die Anzeige
Nicht erzählen: Zeigen!
https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge
-
@greenhorn sagte in Raspberry "friert ein" nach Aufruf von ioBroker:
@thomas-braun Der Befehl diag" ergibt die Anzeige, dass nodejs nicht korrekt installiert ist und verweist auf https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian
Das probiere ich gerade, aber der Befehl sudo rm ´sudo find / -name nodesource.key´ wird mit "rm: missing operand" quittiert...
was tun?Mach mal ein
sudo dpkg --configure -a
so, wie es geschrieben stand.
-
@meister-mopper Es passiert nichts und die Eingabe-Aufforderung wird wieder angezeigt...
-
@meister-mopper said in Raspberry "friert ein" nach Aufruf von ioBroker:
sudo dpkg --configure -a
simon@iobroker:~ $ sudo dpkg --configure -a
simon@iobroker:~ $ -
@greenhorn sagte in Raspberry "friert ein" nach Aufruf von ioBroker:
@meister-mopper Es passiert nichts und die Eingabe-Aufforderung wird wieder angezeigt...
Dann klöppel mal endlich ein
iob diag
hier rein (</>). Sonst geht es ja nicht weiter. -
@greenhorn kannst du mal die komplette Ausgabe von dem
iob fix
Und anschließend dem
NodeJS Update Befehl hier zeigen.
-
@meister-mopper said in Raspberry "friert ein" nach Aufruf von ioBroker:
iob diag
Hoffe, das ist richtig:
Copy text starting here:
======================= SUMMARY ======================= v.2023-10-10 Static hostname: iobroker Icon name: computer Operating System: Debian GNU/Linux 11 (bullseye) Kernel: Linux 6.1.21-v8+ Architecture: arm64 Installation: native Kernel: aarch64 Userland: arm64 Timezone: Europe/London (GMT, +0000) User-ID: 1000 X-Server: false Boot Target: multi-user.target Pending OS-Updates: 3 Pending iob updates: 14 Nodejs-Installation: /usr/bin/nodejs v12.22.12 /usr/bin/node v12.22.12 /home/iobroker/.diag.sh: line 488: npm: command not found /home/iobroker/.diag.sh: line 489: npx: command not found /home/iobroker/.diag.sh: line 490: corepack: command not found Recommended versions are nodejs Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"! and npm *** nodejs is NOT correctly installed *** Wrong installation path detected. This needs to be fixed. Please check https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian for more information on how to fix these errors. MEMORY: total used free shared buff/cache available Mem: 3.8G 2.0G 947M 1.0M 885M 2.0G Swap: 99M 0B 99M Total: 3.9G 2.0G 1.0G Active iob-Instances: 9 Active repo(s): stable ioBroker Core: js-controller 4.0.24 admin 6.8.0 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: system.adapter.admin.0 : admin : iobroker - disabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.web.0 : web : iobroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 3908 States: 3264 Size of iob-Database: 244M /opt/iobroker/iobroker-data/objects.jsonl 2.5M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================
=== Mark text until here for copying ===
simon@iobroker:~ $ -
@wendy2702 said in Raspberry "friert ein" nach Aufruf von ioBroker:
iob
simon@iobroker:~ $ iob fix
library: loaded
Library version=2024-01-04
ioBroker or some processes are still running:
io.sonoff.0
io.hmip.0
io.mqtt.0
io.discovery.0
io.web.0
io.link.0
io.midea.0
io.iqontrol.0
Please stop them first and try again!
simon@iobroker:~ $Hoffe, das ist richtig:
simon@iobroker:~ $ NODE_MAJOR=18
simon@iobroker:~ $ sudo apt update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:5 https://apt.grafana.com stable InRelease
Get:6 https://repos.influxdata.com/debian bullseye InRelease [7,049 B]
Hit:7 https://deb.nodesource.com/node_18.x nodistro InRelease
Err:6 https://repos.influxdata.com/debian bullseye InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
Reading package lists... Done
W: GPG error: https://repos.influxdata.com/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
E: The repository 'https://repos.influxdata.com/debian bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
simon@iobroker:~ $ -
@greenhorn ist zwar nur die Kurzfassung aber:
Altes OS mit uralter NodeJs Version.
Hast du Backups?
Dein Admin läuft nicht wenn ich das richtig sehe:
iob start admin.0
-
@wendy2702 Nein, leider kein richtiges Backup...
-
Du hast ein log vom fix Befehl gepostet.
Da steht am Ende drin das Iob noch läuft und zuerst gestoppt werden soll.
Hast du das gelesen und gemacht?
Das mit dem NodeJS was du gepostet hast, ist das was vollständiges?
-
@wendy2702 Sorry, ich komme da leider nicht ganz mit. Wie kann ich das mit dem NodeJS vollständig erhalten?
-
simon@iobroker:~ $ iob stop
simon@iobroker:~ $ iob fix
library: loaded
Library version=2024-01-04==========================================================================
Welcome to the ioBroker installation fixer! Script version: 2024-01-04 You might need to enter your password a couple of times.
==========================================================================
==========================================================================
Installing prerequisites (1/5)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
Get:5 https://repos.influxdata.com/debian bullseye InRelease [7,049 B]
Hit:6 https://deb.nodesource.com/node_18.x nodistro InRelease
Hit:7 https://apt.grafana.com stable InRelease
Err:5 https://repos.influxdata.com/debian bullseye InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
Reading package lists... Done
W: GPG error: https://repos.influxdata.com/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
E: The repository 'https://repos.influxdata.com/debian bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.==========================================================================
Checking ioBroker user and directory permissions (2/5)Created /etc/sudoers.d/iobroker
Fixing directory permissions...==========================================================================
Check and cleanup npm temporary directories (3/5)Done.
==========================================================================
Database maintenance (4/5)Checking for uncompressed JSONL databases... This might take a while!
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ...
main: line 14: [: -lt: unary operator expected
sudo: npm: command not found==========================================================================
Checking autostart (5/5)Enabling autostart...
Autostart enabled!==========================================================================
Your installation was fixed successfully Run iobroker start to start ioBroker again!
==========================================================================
simon@iobroker:~ $ iobroker start
simon@iobroker:~ $ -
Diese Reihenfolge
iob stop iob fix
Dann die komplette Ausgabe davon hier als Text posten.
Dann schauen wir mal weiter
Edit: ht sich überschnitten mit deinem post
-
Dann jetzt mal
iob diag
Davon dann auch die Langfassung Ausgabe mal zeigen