Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Fehler bei der Installation von ioBroker

    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

    Fehler bei der Installation von ioBroker

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

      Moin Moin,

      ich hoffe mir kann wer helfen.
      Problem.

      Ich hab den raspberry pi 4 mit buster lite und bin jetzt drann ioBroker zu installieren.
      Installation von Node 10x lief ohne Probleme durch.

      pi@iobroker:~ $ npm -v
      6.14.4
      pi@iobroker:~ $ node -v
      v10.20.1
      pi@iobroker:~ $ nodejs -v
      v10.20.1
      

      Aber jetzt bei der Installation von ioBroker tauchen Fehler auf.

          Installing ioBroker (3/4)
      ==========================================================================
      
      npm ERR! Unexpected end of JSON input while parsing near '...\r\n\r\nwsFcBAEBCAAQB'
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2020-05-29T11_57_48_860Z-debug.log
      ==========================================================================
          Finalizing installation (4/4)
      ==========================================================================
      
      Enabling autostart...
      Autostart enabled!
      Fixing directory permissions...
      
      pi@iobroker:~ $ iobroker status
      internal/modules/cjs/loader.js:638
          throw err;
          ^
      
      Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
          at Function.Module._load (internal/modules/cjs/loader.js:562:25)
          at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
          at startup (internal/bootstrap/node.js:283:19)
          at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
      

      egal wie oft ich node oder iobroker installiere oder von vorne anfange mit dem Bespielen der SD.
      Nichts führt mich weiter.

      Danke schon mal

      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Kruech last edited by

        @Kruech sagte in Fehler bei der Installation von ioBroker:

        egal wie oft ich node oder iobroker installiere

        Bist du sicher dass er fertig war?
        oder hast du abgebrochen?

        1 Reply Last reply Reply Quote 0
        • K
          Kruech last edited by

          ja war fertig, hab nur nicht alles gepostet.

          ==========================================================================
              Installing ioBroker (3/4)
          ==========================================================================
          
          npm ERR! Unexpected end of JSON input while parsing near '...\r\n\r\nwsFcBAEBCAAQB'
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/pi/.npm/_logs/2020-05-29T11_57_48_860Z-debug.log
          
          ==========================================================================
              Finalizing installation (4/4)
          ==========================================================================
          
          Enabling autostart...
          Autostart enabled!
          Fixing directory permissions...
          
          ==========================================================================
          
              ioBroker was installed successfully
              Open http://192.168.1.1:8081 in a browser and start configuring!
          
          ==========================================================================
          
          
          You need to re-login before doing anything else on the console!
          
          pi@iobroker:~ $ iobroker status
          internal/modules/cjs/loader.js:638
              throw err;
              ^
          
          Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
              at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
              at Function.Module._load (internal/modules/cjs/loader.js:562:25)
              at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
              at startup (internal/bootstrap/node.js:283:19)
              at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
          pi@iobroker:~ $
          
          Homoran 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Kruech last edited by

            @Kruech sagte in Fehler bei der Installation von ioBroker:

            You need to re-login before doing anything else on the console!

            Hast du doch nicht gemacht, oder?

            1 Reply Last reply Reply Quote 0
            • K
              Kruech last edited by

              Doch hab ich immer gemacht, hab sogar neu gestartet. Aber immer wieder ist dieser Fehler bei der Installation.

                  Installing ioBroker (3/4)
              ==========================================================================
               
              npm ERR! Unexpected end of JSON input while parsing near '...\r\n\r\nwsFcBAEBCAAQB'
               
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/pi/.npm/_logs/2020-05-29T11_57_48_860Z-debug.log
              

              und trotz dessen er schreibt

              ioBroker was installed successfully
                  Open http://192.168.1.1:8081 in a browser and start configuring!
              

              gibt es immer das Problem

              pi@iobroker:~ $ iobroker status
              internal/modules/cjs/loader.js:638
                  throw err;
                  ^
              
              Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
                  at Function.Module._load (internal/modules/cjs/loader.js:562:25)
                  at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
                  at startup (internal/bootstrap/node.js:283:19)
                  at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
              
              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @Kruech last edited by

                @Kruech sagte in Fehler bei der Installation von ioBroker:

                hab sogar neu gestartet. Aber immer wieder ist dieser Fehler bei der Installation.

                du sollst dich NACH der Installation neu anmelden bevor du deinen Befehl eingibst

                1 Reply Last reply Reply Quote 0
                • K
                  Kruech last edited by

                  Wie gesagt das hatte ich immer so gemacht. Hab das ganze gerade noch einmal von Vorne gemacht und wieder.

                  pi@iobroker:~ $ curl -sL https://iobroker.net/install.sh | bash -
                  library: loaded
                  Library version=2020-04-12
                  
                  ==========================================================================
                  
                      Welcome to the ioBroker installer!
                      Installer version: 2020-04-12
                  
                      You might need to enter your password a couple of times.
                  
                  ==========================================================================
                  
                  
                  ==========================================================================
                      Installing prerequisites (1/4)
                  ==========================================================================
                  
                  OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                  OK:2 http://archive.raspberrypi.org/debian buster InRelease
                  OK:3 https://deb.nodesource.com/node_10.x buster InRelease
                  Paketlisten werden gelesen... Fertig
                  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! Unexpected end of JSON input while parsing near '...\r\n\r\nwsFcBAEBCAAQB'
                  
                  npm ERR! A complete log of this run can be found in:
                  npm ERR!     /home/pi/.npm/_logs/2020-05-29T12_20_07_476Z-debug.log
                  
                  ==========================================================================
                      Finalizing installation (4/4)
                  ==========================================================================
                  
                  Enabling autostart...
                  Autostart enabled!
                  Fixing directory permissions...
                  
                  ==========================================================================
                  
                      ioBroker was installed successfully
                      Open http://10.70.90.101:8081 in a browser and start configuring!
                  
                  ==========================================================================
                  
                  
                  You need to re-login before doing anything else on the console!
                  
                  pi@iobroker:~ $ exit
                  Abgemeldet
                  
                  ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
                  
                  Session stopped
                      - Press <return> to exit tab
                      - Press R to restart session
                      - Press S to save terminal output to file
                  
                  login as: pi
                  
                  Last login: Fri May 29 14:25:06 2020 from 192.168.1.2
                  
                  
                  pi@iobroker:~ $ iobroker status
                  internal/modules/cjs/loader.js:638
                      throw err;
                      ^
                  
                  Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
                      at Function.Module._load (internal/modules/cjs/loader.js:562:25)
                      at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
                      at startup (internal/bootstrap/node.js:283:19)
                      at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
                  
                  
                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @Kruech last edited by

                    @Kruech sagte in Fehler bei der Installation von ioBroker:

                    Hab das ganze gerade noch einmal von Vorne gemacht

                    ich glaube nur was ich sehe 😉

                    hier geht es schon los:
                    @Kruech sagte in Fehler bei der Installation von ioBroker:

                    npm ERR! Unexpected end of JSON input while parsing near '...\r\n\r\nwsFcBAEBCAAQB'

                    Da ist irgendetwas mit dem Download schief gegangen.

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Homoran last edited by Thomas Braun

                      @Homoran sagte in Fehler bei der Installation von ioBroker:

                      Da ist irgendetwas mit dem Download schief gegangen.

                      Ich sehe diese Fehler in den letzten Tagen häufiger. Auch bei aktualisierten Adaptern.
                      npm cache löschen und nochmal installieren hilft dann ggf.
                      Ist da auf dem Server mit den Repos vielleicht auch irgendwas krumm?

                      Homoran 1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @Thomas Braun last edited by

                        @Thomas-Braun sagte in Fehler bei der Installation von ioBroker:

                        npm cache löschen und nochmal installieren hilft dann ggf.

                        bei npm basierten Infos sicher, da dann neu geladen wird.
                        wie das bei einem curl aussieht habe ich leider keine Ahnung, ob man da ein --force oder sonst etwas noch hinzufügen kann, damit es neu heruntergeladen wird

                        1 Reply Last reply Reply Quote 0
                        • K
                          Kruech last edited by

                          hmm also den cache löschen geht hier wohl auch nicht so einfach.

                          pi@iobroker:/ $ npm cache clean
                          npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use `npm install --cache /tmp/empty-cache` to use a temporary cache instead of nuking the actual one.
                          npm ERR!
                          npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.
                          
                          npm ERR! A complete log of this run can be found in:
                          npm ERR!     /home/pi/.npm/_logs/2020-05-29T13_05_53_645Z-debug.log
                          
                          
                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Kruech last edited by

                            @Kruech das muss mit --force gemacht werden

                            1 Reply Last reply Reply Quote 0
                            • K
                              Kruech last edited by

                              Ich hab jetzt mal in log geschaut welche bei der Installation vom iobroker am Ende steht.
                              Da sind einige von diesen Fehlern drinnen. hier nur ein Auszug

                              823 http fetch GET 200 https://registry.npmjs.org/callsite 427ms
                              824 http fetch GET 200 https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz 340ms
                              825 silly pacote range manifest for async-limiter@~1.0.0 fetched in 435ms
                              826 http fetch GET 200 https://registry.npmjs.org/ms/-/ms-2.1.1.tgz 564ms
                              827 silly pacote version manifest for ms@2.1.1 fetched in 1079ms
                              828 http fetch GET 200 https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz 3851ms
                              829 silly pacote version manifest for callsite@1.0.0 fetched in 4290ms
                              830 http fetch GET 200 https://registry.npmjs.org/@types%2fnode 6071ms
                              831 http fetch GET 200 https://registry.npmjs.org/@types/node/-/node-14.0.5.tgz 827ms
                              832 silly pacote range manifest for @types/node@* fetched in 6960ms
                              833 silly fetchPackageMetaData error for express-fileupload@^1.1.6 Response timeout while trying to fetch https://registry.npmjs.org/express-fileupload (over 30000ms)
                              834 silly fetchPackageMetaData error for express-session@^1.17.1 Response timeout while trying to fetch https://registry.npmjs.org/express-session (over 30000ms)
                              835 http fetch GET 200 https://registry.npmjs.org/express-fileupload 33471ms
                              836 http fetch GET 200 https://registry.npmjs.org/express-session 33747ms
                              837 http fetch GET 200 https://registry.npmjs.org/cookie 30589ms
                              838 http fetch GET 200 https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz 109ms
                              839 silly pacote version manifest for cookie@0.4.0 fetched in 30709ms
                              840 http fetch GET 200 https://registry.npmjs.org/depd/-/depd-1.1.2.tgz 32975ms
                              841 silly pacote range manifest for depd@~1.1.2 fetched in 35435ms
                              842 http fetch GET 200 https://registry.npmjs.org/proxy-addr 17746ms
                              843 http fetch GET 200 https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz 129ms
                              844 silly pacote range manifest for proxy-addr@~2.0.5 fetched in 17890ms
                              845 http fetch GET 200 https://registry.npmjs.org/forwarded 84ms
                              846 http fetch GET 200 https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz 80ms
                              847 silly pacote range manifest for forwarded@~0.1.2 fetched in 176ms
                              848 http fetch GET 200 https://registry.npmjs.org/ipaddr.js 209ms
                              849 http fetch GET 200 https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz 123ms
                              850 silly pacote version manifest for ipaddr.js@1.9.1 fetched in 344ms
                              851 silly pacote tag manifest for iobroker.admin@stable fetched in 20ms
                              852 silly resolveWithNewModule iobroker.admin@4.0.10 checking installable status
                              853 silly pacote tag manifest for iobroker.js-controller@stable fetched in 22ms
                              854 silly resolveWithNewModule iobroker.js-controller@2.2.9 checking installable status
                              855 http fetch GET 304 https://registry.npmjs.org/iobroker.discovery 110ms (from cache)
                              856 silly fetchPackageMetaData error for iobroker.discovery@stable Unexpected end of JSON input while parsing near '...all":"https://registr'
                              857 http fetch GET 304 https://registry.npmjs.org/iobroker.info 112ms (from cache)
                              858 silly fetchPackageMetaData error for iobroker.info@stable Unexpected end of JSON input while parsing near '...a\nlnA+mVwSqD72a1Wh5l'
                              859 timing stage:rollbackFailedOptional Completed in 0ms
                              860 timing stage:runTopLevelLifecycles Completed in 223076ms
                              
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Kruech last edited by Thomas Braun

                                @Kruech sagte in Fehler bei der Installation von ioBroker:

                                npmjs.org

                                So oft wie ich in den letzten Tagen korrupte json Files gesehen habe vermute ich, dass es irgendwo auf npmjs.org klemmt.

                                [Edit:] BINGO!
                                https://status.npmjs.org/

                                Monitoring - We began investigating an issue with the npmjs.com website a short time ago, quickly identified the issue and we are monitoring a fix we have deployed.
                                May 29, 06:10 UTC

                                1 Reply Last reply Reply Quote 0
                                • K
                                  Kruech last edited by

                                  Alles klar, dann vielen Dank erstmal, dann bin ich beruhigt das es nicht an mir liegt und dann hilft wohl nur Tee trinken.

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    Kruech last edited by

                                    So trotz das bei https://status.npmjs.org/ wieder alles grün ist habe ich immer noch die gleichen Probleme. Hat jemand ne weitere Idee?

                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Kruech last edited by Thomas Braun

                                      @Kruech
                                      Zuerst musst du mal schauen, ob node sauber installiert ist:

                                      which nodejs && nodejs -v && which node && node -v && which npm && npm -v
                                      

                                      Dann als user, der auch die Installation durchführt:

                                      npm cache clean --force
                                      

                                      Und dann nochmal den Installer anhauen.

                                      curl -sL https://iobroker.net/install.sh | bash -
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        Kruech last edited by Kruech

                                        @Thomas-Braun

                                        pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v
                                        /usr/bin/nodejs
                                        v10.20.1
                                        /usr/bin/node
                                        v10.20.1
                                        /usr/bin/npm
                                        6.14.4
                                        

                                        Cache clean und neu installiert habe ich auch schon probiert. Trotzdem immer

                                        library: loaded
                                        Library version=2020-04-12
                                        
                                        ==========================================================================
                                        
                                            Welcome to the ioBroker installer!
                                            Installer version: 2020-04-12
                                        
                                            You might need to enter your password a couple of times.
                                        
                                        ==========================================================================
                                        
                                        
                                        ==========================================================================
                                            Installing prerequisites (1/4)
                                        ==========================================================================
                                        
                                        OK:1 http://archive.raspberrypi.org/debian buster InRelease
                                        OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                        OK:3 https://deb.nodesource.com/node_10.x buster InRelease
                                        Paketlisten werden gelesen... Fertig
                                        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! Unexpected end of JSON input while parsing near '...sk":"^1.0.6","@iobrok'
                                        
                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR!     /home/pi/.npm/_logs/2020-06-02T18_53_21_120Z-debug.log
                                        
                                        ==========================================================================
                                            Finalizing installation (4/4)
                                        ==========================================================================
                                        
                                        Enabling autostart...
                                        Autostart enabled!
                                        Fixing directory permissions...
                                        ==========================================================================
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          Kruech last edited by

                                          in der log-Datei von der IoBroker installation hab ich immer paar mal nen timeout.

                                          1051 silly fetchPackageMetaData error for engine.io@~3.4.0 Response timeout while trying to fetch https://registry.npmjs.org/engine.io (over 30000ms)
                                          

                                          es sind aber nicht immer die gleichen Pakete.

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Kruech last edited by

                                            @Kruech sagte in Fehler bei der Installation von ioBroker:

                                            1051 silly fetchPackageMetaData error for engine.io@~3.4.0 Response timeout while trying to fetch https://registry.npmjs.org/engine.io (over 30000ms)

                                            npm install npm@latest -g
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            944
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            installationsfehler installationsprobleme iobroker installation npm err unexpected end of json
                                            3
                                            24
                                            2206
                                            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