Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. schoetju

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Best 0
    • Groups 1

    schoetju

    @schoetju

    Starter

    0
    Reputation
    12
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    schoetju Follow
    Starter

    Latest posts made by schoetju

    • RE: Neuinstallation auf RPI3 mit CURL-Installer geht schief

      @thomas-braun
      Alles neuinstallieren hat funktioniert. DANKE für die Unterstützung!

      posted in Installation
      schoetju
      schoetju
    • RE: Neuinstallation auf RPI3 mit CURL-Installer geht schief

      @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?

      posted in Installation
      schoetju
      schoetju
    • RE: Neuinstallation auf RPI3 mit CURL-Installer geht schief

      @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...

      posted in Installation
      schoetju
      schoetju
    • RE: Neuinstallation auf RPI3 mit CURL-Installer geht schief

      @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)
      
      posted in Installation
      schoetju
      schoetju
    • 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:

      1. Backup der Daten, Einstellungen, etc. (Backup-Iobroker-Instanz), um später rückzusichern...
      2. SD-Karte raus,
      3. neue Festplatte mit RaspberryPi OS 64Bit Lite bespielt
      4. an den RPI3 angestöpselt --> Nacktes Betriebssystem läuft
      5. sudo apt-get update && sudo apt-get upgrade
      6. 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

      posted in Installation
      schoetju
      schoetju
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo