NEWS
Ein Update ist schief gegangen
-
@lenny-cb sagte in Ein Update ist schief gegangen:
ich bekomme keine npm-Version über 6.14.13 installiert.
sollst du auch nie nicht machen
die korrekte npm Version kommt zusammen mit dem jeweiligen nodejs Paket
-
@homoran sagte in Ein Update ist schief gegangen:
@lenny-cb sagte in Ein Update ist schief gegangen:
ich bekomme keine npm-Version über 6.14.13 installiert.
sollst du auch nie nicht machen
die korrekte npm Version kommt zusammen mit dem jeweiligen nodejs Paket
das ist mir auch so geläufig.
Ich hatte alles runter geworfen. npm -v und node -v brachten keine Ergebnisse.
Nach der Installation von node 18 war npm 6.xxx wieder da.Das habe ich nicht absichtlich getan.
-
@lenny-cb sagte in Ein Update ist schief gegangen:
Habe keine Idee mehr!
Ich schon.
Erst mal NICHT als root herumkaspern.throttled=0x50000
Dann scheint die Spannungsversorgung zu wackeln.
Schlampig, ich weiß, aber mit meiner Frage wisst ihr warum.
Nö. Warum hält man sein System nicht bezeiten auf Stand? 'Stretch' war ja auch schon längst tot. Vom Buster kannst du gleich zum Bullseye weiterziehen.
Zu node: Versuch mein Skript. Ist oben schon verlinkt.
Und
The systems needs to be REBOOTED!
steht auch nicht zur Dekoration im Output.
Davon abgesehen ist das auch nicht die ganze Wahrheit, da fehlt Anfang und Ende vom diag.
-
@thomas-braun sagte in Ein Update ist schief gegangen:
@lenny-cb sagte in Ein Update ist schief gegangen:
Habe keine Idee mehr!
Ich schon.
Erst mal NICHT als root herumkaspern.throttled=0x50000
Dann scheint die Spannungsversorgung zu wackeln.
Schlampig, ich weiß, aber mit meiner Frage wisst ihr warum.
Nö. Warum hält man sein System nicht bezeiten auf Stand? 'Stretch' war ja auch schon längst tot. Vom Buster kannst du gleich zum Bullseye weiterziehen.
Zu node: Versuch mein Skript. Ist oben schon verlinkt.
Und
The systems needs to be REBOOTED!
steht auch nicht zur Dekoration im Output.
Davon abgesehen ist das auch nicht die ganze Wahrheit, da fehlt Anfang und Ende vom diag.
also warum noch Stretch??? - Der Pi war schon immer sehr zickig. Ich war immer froh das er in Verbindung mit zigbee ohne Zaudern lief (wenn er das mal tat)
Zum Thema Reboot: der Pi hatte heut nicht den ersten Reboot. Sowas mache ich normal immer nach einen Update oder einer Installation.
zum Schluß:
nach dem Ausführen von Deinem Script startet der Pi nicht mehr.
Hier noch der Auszug aus dem Script:ioBroker nodejs fixer 2023-09-15 No recommendation for nodejs version found on your system. We recommend to install latest version from nodejs v18 tree. Your current setup is: /usr/bin/nodejs v18.17.1 /usr/bin/node v18.17.1 /usr/local/bin/npm 6.14.13 /usr/local/bin/npx 6.14.13 /usr/bin/corepack 0.18.0 *** nodejs is NOT correctly installed *** We found these nodejs versions available for installation: nodejs: Installed: 18.17.1-1nodesource1 Candidate: 18.17.1-1nodesource1 Version table: *** 18.17.1-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 100 /var/lib/dpkg/status 18.17.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.16.1-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.16.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.15.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.14.2-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.14.1-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.14.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.13.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.12.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.11.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.10.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.9.1-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.9.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.8.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.7.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.6.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.5.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.4.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.3.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.2.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.1.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.0.0-1nodesource1 500 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 12.22.12~dfsg-1~deb11u4 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages Your nodejs-Installation seems to be not correct. Shall we try to fix it? Press <y> to continue or any other key to quit Fixing your nodejs setup *** Deleting /usr/local/bin/npm *** *** Deleting /usr/local/bin/npx *** Wrong paths have been fixed. Run 'iob diag' or 'iob node-update' again to check if your installation is fine now You are running nodejs v18.17.1. Do you want to install recommended version ? Press <y> to continue or any other key to quit Trying to fix your installation now. Please be patient. rm: cannot remove '/usr/share/keyrings/nodesource.gpg'$'\n''/etc/apt/keyrings/nodesource.gpg': No such file or directory Waiting for ioBroker to shut down - Give me a minute... ############################################################ *** These repos are active on your system: Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://www.pivccu.de/piVCCU stable InRelease Reading package lists... Done *** Installing ca-certificates, curl and gnupg, just in case they are missing. *** Creating new /etc/apt/sources.list.d/nodesource.list and pinning source deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main Package: nodejs Pin: origin deb.nodesource.com Pin-Priority: 1001 *** These repos are active after the adjustments: Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://www.pivccu.de/piVCCU stable InRelease Get:4 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB] Get:5 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [5161 B] Fetched 17.3 kB in 3s (5612 B/s) Reading package lists... Done Installing the recommended nodejs version now! Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Version '-1nodesource1' for 'nodejs' was not found Reading package lists... Done Building dependency tree... Done Reading state information... Done nodejs is already the newest version (18.17.1-1nodesource1). Calculating upgrade... Done The following packages have been kept back: guile-2.2-libs 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. We tried our best to fix your nodejs. Please run iob diag again to verify. *** RESTARTING ioBroker NOW! *** Please refresh or restart your browser in a few moments. This system needs to be REBOOTED NOW!
-
@lenny-cb sagte in Ein Update ist schief gegangen:
nach dem Ausführen von Deinem Script startet der Pi nicht mehr.
Das kann nicht sein, das greift nur beim nodejs-Paket zu und das wird zum Start des Pi natürlich nicht benötigt.
-
@thomas-braun ausser die sd karte war bereits morsch und hat bei den letzten Schreibvorgängen endgültig alle Viere von sich gestreckt
-
Das kann natürlich sein. Hat aber auch nicht ursächlich mit dem Skript zu tun.
Wobei mir da ein paar andere Dinge noch ins Auge springen, die ich mir gerade nicht erklären kann...
-
@thomas-braun sagte in Ein Update ist schief gegangen:
@lenny-cb sagte in Ein Update ist schief gegangen:
nach dem Ausführen von Deinem Script startet der Pi nicht mehr.
Das kann nicht sein, das greift nur beim nodejs-Paket zu und das wird zum Start des Pi natürlich nicht benötigt.
leider doch.
Kann es sein, dass es an der Root-Installation liegt? (Wobei meine Installationen ioBroker-Anfang als root laufen. (ohne das jetzt mal zu werten.)
Dein Script hatte ich aber mit dem "PI-User" gemacht. Ging ja auch nicht anders. -
@thomas-braun sagte in Ein Update ist schief gegangen:
Wobei mir da ein paar andere Dinge noch ins Auge springen, die ich mir gerade nicht erklären kann...
welche wären das?
-
@lenny-cb sagte in Ein Update ist schief gegangen:
welche wären das?
Nur im Diagnose-Teil. Nur Optik.
Kann es sein, dass es an der Root-Installation liegt?
Möglich. Als root verfummelt man sich halt eh man es sich versieht irgendwas. Weswegen man halt auch nie als root herumhampelt.
-
Kommst du jetzt wieder auf die Kiste?
sudo apt update
sagt? Da klemmt ja auch guile-2.2-libs irgendwo fest. Offenbar ist dein dist-upgrade nicht richtig durchgelaufen.
-
@thomas-braun sagte in Ein Update ist schief gegangen:
Kommst du jetzt wieder auf die Kiste?
sudo apt update
sagt? Da klemmt ja auch guile-2.2-libs irgendwo fest. Offenbar ist dein dist-upgrade nicht richtig durchgelaufen.
nope, kein ssh-Zugang. Stecke morgen mal einen Monitor dran und schaue ob nur ssh das Problem ist oder ganz tot.
-
@thomas-braun sagte in Ein Update ist schief gegangen:
@lenny-cb sagte in Ein Update ist schief gegangen:
welche wären das?
Nur im Diagnose-Teil. Nur Optik.
Kann es sein, dass es an der Root-Installation liegt?
Möglich. Als root verfummelt man sich halt eh man es sich versieht irgendwas. Weswegen man halt auch nie als root herumhampelt.
wie gesagt, ich mache seit Jahren nicht anderes als apt-get update/upgrade und 2x node-Installation (12-->14-->16). da hält sich das "Verfummeln" in Grenzen.
-
Dann kannst du ja diese zwei-drei Dinge erst Recht ohne root machen.
-
@lenny-cb sagte in Ein Update ist schief gegangen:
@thomas-braun sagte in Ein Update ist schief gegangen:
Kommst du jetzt wieder auf die Kiste?
sudo apt update
sagt? Da klemmt ja auch guile-2.2-libs irgendwo fest. Offenbar ist dein dist-upgrade nicht richtig durchgelaufen.
nope, kein ssh-Zugang. Stecke morgen mal einen Monitor dran und schaue ob nur ssh das Problem ist oder ganz tot.
kurze Zusammenfassung:
warum startete der PI nicht mehr?
Tat er, nur war nach dem Ausführen des Scriptes eth0 weg.Konnte behoben werden indem in /boot/cmdline.txt am Ende der Zeile "net.ifnames=0" angehangen wurde.
zur Frage was apt update ergibt:
apt update --> apt upgrade
guile-2.2-libs -_> wurde zurückgehaltenapt full-upgrade
Installation erledigtnode -v --> v18.17.1
npm - v --> 9.6.7keiner der Adapter starten. Im Log kommt immer noch der Fehler (Beispiel Zigbee):
host.RPI3 2023-09-18 13:39:03.991 info iobroker npm-install: exit 25 host.RPI3 2023-09-18 13:39:02.912 error iobroker npm-install: Could not handle ENOTEMPTY, because no deletable files were foundnpm ERR! code ENOTEMPTYnpm ERR! syscall renamenpm ERR! path /opt/iobroker/node_modules/@alcalzone/jsonl-dbnpm ERR! dest /opt/iobroker/node_modules/@alcalzone/.jsonl-db-koHBLxk9npm ERR! errno -39npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/@alcalzone/jsonl-db' -> '/opt/iobroker/node_modules/@alcalzone/.jsonl-db-koHBLxk9'npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-09-18T11_37_56_021Z-debug-0.loghost.RPI3 Cannot install iobroker.zigbee@1.8.24: 217 host.RPI3 2023-09-18 13:39:02.903 info iobroker npm-install: Try to solve ENOTEMPTY error automatically host.RPI3 2023-09-18 13:37:52.412 info iobroker npm-install: Installing iobroker.zigbee@1.8.24... (System call) host.RPI3 2023-09-18 13:37:52.406 info iobroker npm-install: NPM version: 9.6.7 host.RPI3 2023-09-18 13:37:37.847 info iobroker install zigbee@1.8.24 using installedFrom host.RPI3 2023-09-18 13:37:37.843 warn startInstance cannot find adapter "zigbee@1.8.24". Try to install it... 1 attempt
Controller ist auf Version v5.0.12
Alle Adapter in diesem Slave sind auf dem aktuellen Stand. -
@lenny-cb sagte in Ein Update ist schief gegangen:
nur war nach dem Ausführen des Scriptes eth0 weg.
Kann aber nicht mit dem nodejs-Skript zusammenhängen, da ist kein Code diesbezüglich drin.
Zu
Could not handle ENOTEMPTY, because no deletable files were foundnpm ERR! code ENOTEMPTYnpm ERR! syscall renamenpm ERR! path /opt/iobroker/node_modules/@alcalzone/jsonl-dbnpm ERR! dest /opt/iobroker/node_modules/@alcalzone/.jsonl-db-koHBLxk9npm ERR! errno -39npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/@alcalzone/jsonl-db' -> '/opt/iobroker/node_modules/@alcalzone/.jsonl-db-koHBLxk9'npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-09-18T11_37_56_021Z-debug-0.loghost.RPI3 Cannot install iobroker.zigbee@1.8.24: 217
jag mal den
iob fix
über das System.
-
@thomas-braun sagte in Ein Update ist schief gegangen:
@lenny-cb sagte in Ein Update ist schief gegangen:
nur war nach dem Ausführen des Scriptes eth0 weg.
Kann aber nicht mit dem nodejs-Skript zusammenhängen, da ist kein Code diesbezüglich drin.
Zu
Could not handle ENOTEMPTY, because no deletable files were foundnpm ERR! code ENOTEMPTYnpm ERR! syscall renamenpm ERR! path /opt/iobroker/node_modules/@alcalzone/jsonl-dbnpm ERR! dest /opt/iobroker/node_modules/@alcalzone/.jsonl-db-koHBLxk9npm ERR! errno -39npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/@alcalzone/jsonl-db' -> '/opt/iobroker/node_modules/@alcalzone/.jsonl-db-koHBLxk9'npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-09-18T11_37_56_021Z-debug-0.loghost.RPI3 Cannot install iobroker.zigbee@1.8.24: 217
jag mal den
iob fix
über das System.
gemacht:
library: loaded Library version=2022-12-09 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2023-04-02 ========================================================================== ========================================================================== Installing prerequisites (1/5) ========================================================================== OK:1 http://archive.raspberrypi.org/debian bullseye InRelease OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease OK:3 https://www.pivccu.de/piVCCU stable InRelease OK:4 https://deb.nodesource.com/node_18.x nodistro InRelease Paketlisten werden gelesen… Fertig Installed gcc-c++ ========================================================================== 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! No relevant JSONL files found to compress, skip ========================================================================== Checking autostart (5/5) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ==========================================================================
der Slave hat dann auch angefangen die Adapter zu installieren.
Zwischenzeitlich war wohl ein Neustart fällig, seit dem ist der nicht mehr mit dem Multi verbunden.
Eine ioB-Instanz läuft auf dem Pi, keine Verbindung.