NEWS
Neuinstallation auf RPI3 mit CURL-Installer geht schief
-
Hallo zusammen,
ich hab vor rund einem Monat auf einem RPI3 mit SD-Karte iobroker erfolgreich installiert und genutzt (PV-Anlage plus Smartmeter gemonitort).
Das ganze macht einen guten Eindruck - und nun wird es Zeit die Installation auf eine Festplatte zu verschieben. Ansatz:
- Backup der Daten, Einstellungen, etc. (Backup-Iobroker-Instanz), um später rückzusichern...
- SD-Karte raus,
- neue Festplatte mit RaspberryPi OS 64Bit Lite bespielt
- an den RPI3 angestöpselt --> Nacktes Betriebssystem läuft
- sudo apt-get update && sudo apt-get upgrade
- Nun das IOBroker-Setup per
curl -sLf https://iobroker.net/install.sh | bash -Das endet leider - trotz mehrfacher reboots, lesen von
https://www.iobroker.net/#de/documentation/install/linux.md
etc. immer noch mit folgender Fehlermeldung:========================================================================== Installing ioBroker (3/4) ========================================================================== npm ERR! code 6 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c node iobroker.js setup first npm ERR! Cannot check config file: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input npm ERR! Uncaught Rejection: SyntaxError: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input npm ERR! at JSON.parse (<anonymous>) npm ERR! at Object.readFileSync (/opt/iobroker/node_modules/jsonfile/index.js:52:17) npm ERR! at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3088:23) npm ERR! at setupObjects (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:252:9) npm ERR! at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:1140:13) npm ERR! at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:571:23) npm ERR! at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3314:5) npm ERR! at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1105:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-07-23T13_50_41_078Z-debug-0.log ========================================================================== Finalizing installation (4/4) ========================================================================== Enabling autostart... Autostart enabled! Fixing directory permissions... ========================================================================== ioBroker was installed successfully Open http://192.168.xxx.xxx:8081 in a browser and start configuring! ========================================================================== You need to re-login before doing anything else on the console!z.Info: Die erwähnte Datei iobroker.json - scheint ja irgendwie wichtig zu sein ;-) - ist leer:
root@smartpi:/opt/iobroker/iobroker-data# ls iobroker.json -al -rw-rwxr--+ 1 iobroker iobroker 0 23. Jul 13:43 iobroker.json root@smartpi:/opt/iobroker/iobroker-data#Die Installation vor rund 6 Wochen (auf SD-Karte) hab ich im Großen und Ganzen genauso gemacht - das lief wie geschmiert...
Wer kann sich darauf einen Reim machen und mir weiterhelfen?
Viele Grüße
schoetju@schoetju kommt der pi in die weite Welt?
ist der iobroker server vom pi aus erreichbar? -
Hallo zusammen,
ich hab vor rund einem Monat auf einem RPI3 mit SD-Karte iobroker erfolgreich installiert und genutzt (PV-Anlage plus Smartmeter gemonitort).
Das ganze macht einen guten Eindruck - und nun wird es Zeit die Installation auf eine Festplatte zu verschieben. Ansatz:
- Backup der Daten, Einstellungen, etc. (Backup-Iobroker-Instanz), um später rückzusichern...
- SD-Karte raus,
- neue Festplatte mit RaspberryPi OS 64Bit Lite bespielt
- an den RPI3 angestöpselt --> Nacktes Betriebssystem läuft
- sudo apt-get update && sudo apt-get upgrade
- Nun das IOBroker-Setup per
curl -sLf https://iobroker.net/install.sh | bash -Das endet leider - trotz mehrfacher reboots, lesen von
https://www.iobroker.net/#de/documentation/install/linux.md
etc. immer noch mit folgender Fehlermeldung:========================================================================== Installing ioBroker (3/4) ========================================================================== npm ERR! code 6 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c node iobroker.js setup first npm ERR! Cannot check config file: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input npm ERR! Uncaught Rejection: SyntaxError: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input npm ERR! at JSON.parse (<anonymous>) npm ERR! at Object.readFileSync (/opt/iobroker/node_modules/jsonfile/index.js:52:17) npm ERR! at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3088:23) npm ERR! at setupObjects (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:252:9) npm ERR! at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:1140:13) npm ERR! at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:571:23) npm ERR! at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3314:5) npm ERR! at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1105:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-07-23T13_50_41_078Z-debug-0.log ========================================================================== Finalizing installation (4/4) ========================================================================== Enabling autostart... Autostart enabled! Fixing directory permissions... ========================================================================== ioBroker was installed successfully Open http://192.168.xxx.xxx:8081 in a browser and start configuring! ========================================================================== You need to re-login before doing anything else on the console!z.Info: Die erwähnte Datei iobroker.json - scheint ja irgendwie wichtig zu sein ;-) - ist leer:
root@smartpi:/opt/iobroker/iobroker-data# ls iobroker.json -al -rw-rwxr--+ 1 iobroker iobroker 0 23. Jul 13:43 iobroker.json root@smartpi:/opt/iobroker/iobroker-data#Die Installation vor rund 6 Wochen (auf SD-Karte) hab ich im Großen und Ganzen genauso gemacht - das lief wie geschmiert...
Wer kann sich darauf einen Reim machen und mir weiterhelfen?
Viele Grüße
schoetju -
@homoran
Ja, Internetzugriff funktioniert.Der Installationsfixer
curl -fsL https://iobroker.net/fix.sh | bash -
meint auch, dass alles in Ordnung sei.Aber
pi@smartpi:/opt/iobroker $ iobroker start pi@smartpi:/opt/iobroker $ iobroker status Uncaught Rejection: SyntaxError: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input at JSON.parse (<anonymous>) at Object.readFileSync (/opt/iobroker/node_modules/jsonfile/index.js:52:17) at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3088:23) at CLIProcess.status (/opt/iobroker/node_modules/@iobroker/js-controller-cli/lib/cli/cliProcess.js:203:9) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:510:25) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3314:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) -
@homoran
Ja, Internetzugriff funktioniert.Der Installationsfixer
curl -fsL https://iobroker.net/fix.sh | bash -
meint auch, dass alles in Ordnung sei.Aber
pi@smartpi:/opt/iobroker $ iobroker start pi@smartpi:/opt/iobroker $ iobroker status Uncaught Rejection: SyntaxError: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input at JSON.parse (<anonymous>) at Object.readFileSync (/opt/iobroker/node_modules/jsonfile/index.js:52:17) at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3088:23) at CLIProcess.status (/opt/iobroker/node_modules/@iobroker/js-controller-cli/lib/cli/cliProcess.js:203:9) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:510:25) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3314:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32)Installier es neu und diesmal ohne root.
-
Installier es neu und diesmal ohne root.
@thomas-braun
Installation war als user pi - bzw. wenn ich das als user pi zum x.-ten Male wiederhole ändert sich nichts...War nur als root unterwegs, um nachzuschauen, wie die
/opt/iobroker/iobroker-data/iobroker.json
aussieht... -
@thomas-braun
Installation war als user pi - bzw. wenn ich das als user pi zum x.-ten Male wiederhole ändert sich nichts...War nur als root unterwegs, um nachzuschauen, wie die
/opt/iobroker/iobroker-data/iobroker.json
aussieht...@schoetju sagte in Neuinstallation auf RPI3 mit CURL-Installer geht schief:
War nur als root unterwegs, um nachzuschauen, wie die
/opt/iobroker/iobroker-data/iobroker.jsonUnnötig. Wie grundsätzlich jedes login als root.
ls -l /opt/iobroker/iobroker-data/iobroker.json -rw-rwxr--+ 1 iobroker iobroker 4972 Jul 11 18:43 /opt/iobroker/iobroker-data/iobroker.jsonMach es trotzdem neu.
-
@schoetju sagte in Neuinstallation auf RPI3 mit CURL-Installer geht schief:
War nur als root unterwegs, um nachzuschauen, wie die
/opt/iobroker/iobroker-data/iobroker.jsonUnnötig. Wie grundsätzlich jedes login als root.
ls -l /opt/iobroker/iobroker-data/iobroker.json -rw-rwxr--+ 1 iobroker iobroker 4972 Jul 11 18:43 /opt/iobroker/iobroker-data/iobroker.jsonMach es trotzdem neu.
@thomas-braun sagte in Neuinstallation auf RPI3 mit CURL-Installer geht schief:
Mach es trotzdem neu.
Was meinst Du genau?
Wie schon erwähnt - ein erneutes
pi@smartpi:/opt/iobroker $ curl -sLf https://iobroker.net/install.sh | bash - library: loaded Library version=2022-06-15 ========================================================================== Welcome to the ioBroker installer! Installer version: 2022-06-03 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/4) ========================================================================== Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 http://security.debian.org/debian-security bullseye-security InRelease Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease Hit:5 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done Changing npm registry to https://registry.npmjs.org Installed gcc-c++ ========================================================================== Creating ioBroker user and directory (2/4) ========================================================================== Created /etc/sudoers.d/iobroker Directory /opt/iobroker created ========================================================================== Installing ioBroker (3/4) ========================================================================== npm ERR! code 6 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c node iobroker.js setup first npm ERR! Cannot check config file: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input npm ERR! Uncaught Rejection: SyntaxError: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input npm ERR! at JSON.parse (<anonymous>) npm ERR! at Object.readFileSync (/opt/iobroker/node_modules/jsonfile/index.js:52:17) npm ERR! at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3088:23) npm ERR! at setupObjects (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:252:9) npm ERR! at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:1140:13) npm ERR! at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:571:23) npm ERR! at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3314:5) npm ERR! at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1105:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-07-23T14_37_36_347Z-debug-0.log ========================================================================== Finalizing installation (4/4) ========================================================================== Enabling autostart... Autostart enabled! Fixing directory permissions... ========================================================================== ioBroker was installed successfully Open http://192.168.134.32:8081 in a browser and start configuring! ========================================================================== You need to re-login before doing anything else on the console!sieht so aus.
Oder meinst Du, ich soll auch das Betriebssystem neuinstallieren?
-
@thomas-braun sagte in Neuinstallation auf RPI3 mit CURL-Installer geht schief:
Mach es trotzdem neu.
Was meinst Du genau?
Wie schon erwähnt - ein erneutes
pi@smartpi:/opt/iobroker $ curl -sLf https://iobroker.net/install.sh | bash - library: loaded Library version=2022-06-15 ========================================================================== Welcome to the ioBroker installer! Installer version: 2022-06-03 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/4) ========================================================================== Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 http://security.debian.org/debian-security bullseye-security InRelease Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease Hit:5 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done Changing npm registry to https://registry.npmjs.org Installed gcc-c++ ========================================================================== Creating ioBroker user and directory (2/4) ========================================================================== Created /etc/sudoers.d/iobroker Directory /opt/iobroker created ========================================================================== Installing ioBroker (3/4) ========================================================================== npm ERR! code 6 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c node iobroker.js setup first npm ERR! Cannot check config file: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input npm ERR! Uncaught Rejection: SyntaxError: /opt/iobroker/iobroker-data/iobroker.json: Unexpected end of JSON input npm ERR! at JSON.parse (<anonymous>) npm ERR! at Object.readFileSync (/opt/iobroker/node_modules/jsonfile/index.js:52:17) npm ERR! at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3088:23) npm ERR! at setupObjects (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:252:9) npm ERR! at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:1140:13) npm ERR! at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:571:23) npm ERR! at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3314:5) npm ERR! at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1105:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-07-23T14_37_36_347Z-debug-0.log ========================================================================== Finalizing installation (4/4) ========================================================================== Enabling autostart... Autostart enabled! Fixing directory permissions... ========================================================================== ioBroker was installed successfully Open http://192.168.134.32:8081 in a browser and start configuring! ========================================================================== You need to re-login before doing anything else on the console!sieht so aus.
Oder meinst Du, ich soll auch das Betriebssystem neuinstallieren?
@schoetju sagte in Neuinstallation auf RPI3 mit CURL-Installer geht schief:
Oder meinst Du, ich soll auch das Betriebssystem neuinstallieren?
Natürlich.
-
@schoetju sagte in Neuinstallation auf RPI3 mit CURL-Installer geht schief:
Oder meinst Du, ich soll auch das Betriebssystem neuinstallieren?
Natürlich.
@thomas-braun
Alles neuinstallieren hat funktioniert. DANKE für die Unterstützung! -
@thomas-braun
Alles neuinstallieren hat funktioniert. DANKE für die Unterstützung!
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden