Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. Neuinstallation auf RPI3 mit CURL-Installer geht schief

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Neuinstallation auf RPI3 mit CURL-Installer geht schief

    This topic has been deleted. Only users with topic management privileges can see it.
    • schoetju
      schoetju last edited by

      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

      Homoran Glasfaser 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @schoetju last edited by

        @schoetju kommt der pi in die weite Welt?
        ist der iobroker server vom pi aus erreichbar?

        schoetju 1 Reply Last reply Reply Quote 0
        • Glasfaser
          Glasfaser @schoetju last edited by

          @schoetju sagte in Neuinstallation auf RPI3 mit CURL-Installer geht schief:

          sudo apt-get update && sudo apt-get upgrade

          root@smartpi

          Der Anfang ist schonmal Käse !

          1 Reply Last reply Reply Quote 1
          • schoetju
            schoetju @Homoran last edited by

            @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)
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @schoetju last edited by

              @schoetju

              Installier es neu und diesmal ohne root.

              schoetju 1 Reply Last reply Reply Quote 0
              • schoetju
                schoetju @Thomas Braun last edited by

                @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 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @schoetju last edited by Thomas Braun

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

                  Unnö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.json
                  

                  Mach es trotzdem neu.

                  schoetju 1 Reply Last reply Reply Quote 0
                  • schoetju
                    schoetju @Thomas Braun last edited by

                    @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 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @schoetju last edited by

                      @schoetju sagte in Neuinstallation auf RPI3 mit CURL-Installer geht schief:

                      Oder meinst Du, ich soll auch das Betriebssystem neuinstallieren?

                      Natürlich.

                      schoetju 1 Reply Last reply Reply Quote 1
                      • schoetju
                        schoetju @Thomas Braun last edited by

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

                        Glasfaser 1 Reply Last reply Reply Quote 0
                        • Glasfaser
                          Glasfaser @schoetju last edited by

                          @schoetju

                          Na ... geht doch ... !

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          904
                          Online

                          31.9k
                          Users

                          80.2k
                          Topics

                          1.3m
                          Posts

                          4
                          11
                          311
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo