Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. HILFE: iobroker läuft nicht mehr

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    HILFE: iobroker läuft nicht mehr

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

      Hallo Gemeinde,

      nach einem Update des admin-Adapters hat das Drama begonnen! 😉

      sudo iobroker start

      bringt:

      module.js:549
          throw err;
          ^
      
      Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
          at Function.Module._resolveFilename (module.js:547:15)
          at Function.Module._load (module.js:474:25)
          at Function.Module.runMain (module.js:693:10)
          at startup (bootstrap_node.js:191:16)
          at bootstrap_node.js:612:3
      

      und

      sudo npm i iobroker.js-controller@1.0.3

      bringt dann:

      npm WARN deprecated tar.gz@1.0.7: ⚠️  WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
      
      > iobroker.js-controller@1.0.3 install /opt/iobroker/node_modules/iobroker.js-controller
      > node iobroker.js setup first
      
      fs.js:1061
        return binding.unlink(pathModule._makeLong(path));
                       ^
      
      Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat'
          at Object.fs.unlinkSync (fs.js:1061:18)
          at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:126:24)
          at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:590:27
          at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:622:15)
          at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2903:5)
          at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:100)
          at Module._compile (module.js:652:30)
          at Object.Module._extensions..js (module.js:663:10)
          at Module.load (module.js:565:32)
          at tryModuleLoad (module.js:505:12)
      npm WARN npm@2.15.12 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
      
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! iobroker.js-controller@1.0.3 install: `node iobroker.js setup first`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the iobroker.js-controller@1.0.3 install script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2018-06-17T13_48_47_212Z-debug.log</anonymous> 
      

      Bitte helft mir, ich komme nicht mehr weiter! 😞

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

        Karte hin?

        Gruß Rainer

        1 Reply Last reply Reply Quote 0
        • B
          Berndi last edited by

          Hallo Rainer,

          ich hoffe nicht, die ist erst ca. 4 Wochen alt… :?

          1 Reply Last reply Reply Quote 0
          • U
            Ulti last edited by

            Hallo zusammen,

            Habe exakt dasselbe Problem. Kann keiner helfen??? 😞

            mfg

            1 Reply Last reply Reply Quote 0
            • Stabilostick
              Stabilostick last edited by

              Evtl. bring die Reinstallation des js-controllers etwas?

              sudo iobroker stop
              sudo npm install -g npm@4
              sudo npm install iobroker.js-controller --production
              sudo iobroker start
              

              Edit: npm eingefügt

              1 Reply Last reply Reply Quote 0
              • M
                Morrio last edited by

                Hallo,

                ich schließe mich den Problemen an. Habe genau die selben Fehlermeldungen.

                Habe mich längere Zeit nicht um meine Installation gekümmert und wollte jetzt wieder einsteigen. Bei den Updates etc ist dann das Problem aufgetreten.

                @Stabilostick:

                Evtl. bring die Reinstallation des js-controllers etwas?

                sudo iobroker stop
                sudo npm install iobroker.js-controller --production
                sudo iobroker start
                ```` `  
                

                Hier kommt bei mir die Fehlermeldung wie im Anhang gezeigt.

                Grüße
                3734_npm_install.png

                1 Reply Last reply Reply Quote 0
                • D
                  daniello last edited by

                  Wollte mich anschließen .. aber was ich als Log beifügen wollte hat irgendwie dazu geführt, dass ich iobroker wieder starten konnte .. vielleicht hilfts.

                  nodejs: v8.11.1

                  npm: 6.2.0

                  sudo iobroker start

                  pi@raspi:~ $ sudo iobroker start
                  module.js:549
                      throw err;
                      ^
                  
                  Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                      at Function.Module._resolveFilename (module.js:547:15)
                      at Function.Module._load (module.js:474:25)
                      at Function.Module.runMain (module.js:693:10)
                      at startup (bootstrap_node.js:188:16)
                      at bootstrap_node.js:609:3
                  pi@raspi:~ $
                  
                  

                  npm install iobroker .js-controller –production

                  > iobroker.js-controller@1.4.2 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                  > node lib/preinstall_check.js
                  
                  NPM version: 6.2.0
                  npm version >= 5: disabling package-lock
                  
                  > unix-dgram@0.2.3 install /opt/iobroker/node_modules/unix-dgram
                  > node-gyp rebuild
                  
                  make: Entering directory '/opt/iobroker/node_modules/unix-dgram/build'
                    CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
                    SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
                    COPY Release/unix_dgram.node
                  make: Leaving directory '/opt/iobroker/node_modules/unix-dgram/build'
                  
                  > iobroker.js-controller@1.4.2 install /opt/iobroker/node_modules/iobroker.js-controller
                  > node iobroker.js setup first
                  
                  + iobroker.js-controller@1.4.2
                  added 341 packages from 239 contributors and audited 1773 packages in 94.343s
                  found 11 vulnerabilities (8 low, 3 high)
                    run `npm audit fix` to fix them, or `npm audit` for details
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • Stabilostick
                    Stabilostick last edited by

                    Habe oben noch

                    sudo npm install -g npm@4
                    

                    eingefügt.

                    npm 5.6.0 sollte man gar nicht verwenden. Und mit npm>5.7.0 habe ich wegen automatisch gelöschter Pakete auf Raspberries schlechte Erfahrungen gemacht.

                    1 Reply Last reply Reply Quote 0
                    • D
                      daniello last edited by

                      ist 6.2.0 auch böse? Ach so .. sehe grad .. das "Größerzeichen".

                      Kann ich mit Deinem Befehl ein Downgrade machen?

                      Und wird NPM dann nicht verändert, wenn ich in per Shell ein

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

                      absetzte?

                      1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 last edited by

                        @daniello:

                        Kann ich mit Deinem Befehl ein Downgrade machen? `
                        Ja.
                        @daniello:

                        Und wird NPM dann nicht verändert, wenn ich in per Shell ein

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

                        absetzte? `
                        Ja, wobei es passieren kann, dass hinterher kein NPM mehr existiert.

                        1 Reply Last reply Reply Quote 0
                        • D
                          daniello last edited by

                          stimmt .. das hatte ich schon .. kein NPM .. musste erstmal drauf kommen 😞

                          Danke!

                          1 Reply Last reply Reply Quote 0
                          • D
                            daniello last edited by

                            Hab ich mal gemacht das

                            sudo npm install -g npm@4
                            /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
                            + npm@4.6.1
                            added 297 packages from 135 contributors and updated 2 packages in 26.683s
                            

                            erhalte aber noch immer

                            npm -v 6.2.0

                            1 Reply Last reply Reply Quote 0
                            • Stabilostick
                              Stabilostick last edited by

                              Dann hast du noch ein zweites npm mal ohne -g installiert. Wenn du keine Lust hast, den Fehler zu suchen oder was zu löschen, mach im ioBroker-Ordner noch mal den Befehl ohne -g

                              1 Reply Last reply Reply Quote 0
                              • D
                                daniello last edited by

                                Mit Lust hat das nichts zu tun .. eher mit Ahnungslosigkeit 🙂

                                Hat nichts geändert:

                                pi@raspi:/opt/iobroker $ sudo npm install npm@4
                                + npm@4.6.1
                                added 299 packages from 591 contributors and audited 4433 packages in 50.961s
                                found 80 vulnerabilities (22 low, 44 moderate, 14 high)
                                  run `npm audit fix` to fix them, or `npm audit` for details
                                pi@raspi:/opt/iobroker $ npm -v
                                6.2.0
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • Stabilostick
                                  Stabilostick last edited by

                                  Ups, da war ich zu voreilig. Aber keine Sorge, nichts kaputt.

                                  1 Reply Last reply Reply Quote 0
                                  • Stabilostick
                                    Stabilostick last edited by

                                    Tipp mal ein````
                                    which npm

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      daniello last edited by

                                      Hatte schon geschaut .. gibt nur einen Eintrag:

                                      /usr/local/bin/npm

                                      1 Reply Last reply Reply Quote 0
                                      • Stabilostick
                                        Stabilostick last edited by

                                        Der hat vorhin aber nach /usr/bin/npm installiert…

                                        1 Reply Last reply Reply Quote 0
                                        • paul53
                                          paul53 last edited by

                                          Die Version 6.2.0 ist wahrscheinlich die in /usr/local/bin (im Suchpfad vorn). Da npm und npx nur (relative) Links sind, solltest Du sie in absolute Links auf die Version 4.6.1 ändern: Austausch der .. vorne gegen /usr. Das musste ich auch machen.

                                          root@rpihm:~# ls -l /usr/local/bin/np*
                                          lrwxrwxrwx 1 root staff 40 Jul 19 20:29 /usr/local/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
                                          lrwxrwxrwx 1 root staff 40 Jul 19 20:29 /usr/local/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
                                          
                                          

                                          EDIT: Sehr einfach mit WinSCP "Verknüpfung bearbeiten"
                                          493_winscp_verkn_pfung_bearbeiten.jpg

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            daniello last edited by

                                            hmm npx wird dan rot .. glaube da passt was nicht.

                                            Mir ist auch nicht ganz klar was ich nach dem ändern auf Absolut machen soll .. nochmal das Downgrade auf npm 4 versuchen?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            899
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            30
                                            2392
                                            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