Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [erledigt] js.controller update

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    [erledigt] js.controller update

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

      Jetzt hats mich auch erwischt. nach dem controller update von 1.1.2 auf 1.2 (glaub ich) kann ich iobroker nicht mehr starten

      Hab im Forum gesucht und folgende Lösung gefunden

      cd /opt/iobroker
      sudo chmod 777 * -R
      sudo npm install iobroker.js-controller --production
      

      Hat aber leider nicht funktioniert.

      ! ````
      Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
      at Function.Module._resolveFilename (module.js:325:15)
      at Function.Module._load (module.js:276:25)
      at Function.Module.runMain (module.js:441:10)
      at startup (node.js:139:18)
      at node.js:974:3
      root@raspberrypi:/opt/iobroker# sudo chmod 777 * -R
      chmod: cannot access ‘iobroker-data/files/scenes.admin’: No such file or directory
      chmod: cannot access ‘iobroker-data/files/text2command.admin’: No such file or directory
      root@raspberrypi:/opt/iobroker# cd /
      root@raspberrypi:/# sudo npm cache clean
      npm ERR! Linux 4.4.26-v7+
      npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "cache" "clean"
      npm ERR! node v4.6.1
      npm ERR! npm v2.15.9
      npm ERR! path /root/.npm/registry.npmjs.org/base64id/.cache.json
      npm ERR! code Unknown system error -117
      npm ERR! errno -117
      npm ERR! syscall unlink
      ! npm ERR! Unknown system error -117: Unknown system error -117, unlink '/root/.npm/registry.npmjs.org/base64id/.cache.json'
      npm ERR!
      npm ERR! If you need help, you may report this error at:
      npm ERR! <https: github.com/npm/issues="">
      ! npm ERR! Please include the following file with any support request:
      npm ERR! /npm-debug.log
      root@raspberrypi:/# sudo chmod -r 777 /opt/iobroker
      chmod: cannot access ‘777’: No such file or directory
      root@raspberrypi:/# cd /opt/iobroker
      root@raspberrypi:/opt/iobroker# sudo npm install iobroker.js.controller
      npm ERR! Linux 4.4.26-v7+
      npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.js.controller"
      npm ERR! node v4.6.1
      npm ERR! npm v2.15.9
      npm ERR! code E404
      ! npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/iobroker.js.controller
      npm ERR! 404
      npm ERR! 404 'iobroker.js.controller' is not in the npm registry.
      npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
      npm ERR! 404 It was specified as a dependency of 'iobroker.core'
      npm ERR! 404
      npm ERR! 404 Note that you can also install from a
      npm ERR! 404 tarball, folder, http url, or git url.
      ! npm ERR! Please include the following file with any support request:
      npm ERR! /opt/iobroker/npm-debug.log
      root@raspberrypi:/opt/iobroker# sudo chmod -R 777 /opt/iobroker
      chmod: cannot access ‘/opt/iobroker/node_modules/iobroker.sayit/node_modules/jsftp/.vscode’: Structure needs cleaning
      chmod: cannot access ‘/opt/iobroker/node_modules/iobroker.sayit/node_modules/jsftp/lib’: Structure needs cleaning
      chmod: cannot access ‘/opt/iobroker/node_modules/iobroker.sayit/node_modules/aws-sdk/lib/s3/managed_upload.js’: Structure needs cleaning
      chmod: cannot access ‘/opt/iobroker/iobroker-data/files/scenes.admin’: No such file or directory
      chmod: cannot access ‘/opt/iobroker/iobroker-data/files/text2command.admin’: No such file or directory
      root@raspberrypi:/opt/iobroker# sudo chmod 777 * -R
      chmod: cannot access ‘iobroker-data/files/scenes.admin’: No such file or directory
      chmod: cannot access ‘iobroker-data/files/text2command.admin’: No such file or directory
      chmod: cannot access ‘node_modules/iobroker.sayit/node_modules/jsftp/.vscode’: Structure needs cleaning
      chmod: cannot access ‘node_modules/iobroker.sayit/node_modules/jsftp/lib’: Structure needs cleaning
      chmod: cannot access ‘node_modules/iobroker.sayit/node_modules/aws-sdk/lib/s3/managed_upload.js’: Structure needs cleaning
      root@raspberrypi:/opt/iobroker# sudo npm install iobroker.js.controller --production
      npm ERR! Linux 4.4.26-v7+
      npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.js.controller" "--production"
      npm ERR! node v4.6.1
      npm ERR! npm v2.15.9
      npm ERR! code E404
      ! npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/iobroker.js.controller
      npm ERR! 404
      npm ERR! 404 'iobroker.js.controller' is not in the npm registry.
      npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
      npm ERR! 404 It was specified as a dependency of 'iobroker.core'
      npm ERR! 404
      npm ERR! 404 Note that you can also install from a
      npm ERR! 404 tarball, folder, http url, or git url.
      ! npm ERR! Please include the following file with any support request:
      npm ERR! /opt/iobroker/npm-debug.log
      root@raspberrypi:/opt/iobroker#</https:>

      
      Vor dem Update hatte ich bereits Probleme den say.it und den web-adapter zu aktualisieren.
      
      Kann jemand helfen?
      
      ****ModEdit: Log bitte in code blöcken****
      1 Reply Last reply Reply Quote 0
      • eric2905
        eric2905 last edited by

        Moin,

        eine Frage:

        Du bist als root angemeldet (mehr/höher geht nicht) und verwendest trotzdem noch „sudo“?

        Warum?

        Nicht das Du Dir mit sudo, der einem normalen User ja quasi-root einräumen soll, wieder Rechte entziehst ….

        Gruß,

        Eric

        Von unterwegs getippert

        1 Reply Last reply Reply Quote 0
        • R
          RappiRN Most Active last edited by

          Du schreibst:

          sudo npm install iobroker.js.controller
          ````(lt.log)
          
          muss es nicht heißen:
          
          

          sudo npm install iobroker.js-controller

          
          ?? So, wie in deiner gefundenen Lösung?
          
          Die Sache mit dem "sudo", da würde ich als totaler Linux-Laie behaupten, dass das trotz root-Anmeldung nicht stört, hab ich manchmal, wenn ich Installationen mit copy&paste durchführe, auch mit drin zu stehen und hat glaub ich noch nie gestört.
          
          Und das hier:
          
          

          sudo chmod -r 777 /opt/iobroker

          
          enstspricht doch auch nicht dem, was du als Lösung im Forum gefunden hast. In deiner Lösung sind "-r" und "777" andersrum. :?:
          
          Enrico
          1 Reply Last reply Reply Quote 0
          • arteck
            arteck Developer Most Active last edited by

            man sollte sich auch die Meldungen anschauen was das system rausgibt nicht nur stupide copypaste enter

            ` > ````

            root@raspberrypi:/# sudo chmod -r 777 /opt/iobroker
            chmod: cannot access ‘777’: No such file or directory
            ```` `

            FALSCH

            ` > ````

            root@raspberrypi:/# cd /opt/iobroker
            root@raspberrypi:/opt/iobroker# sudo npm install iobroker.js.controller

            npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/iobroker.js.controller
            ```` `

            GENAUSO FALSCH

            du hast im Eingang

            cd /opt/iobroker
            sudo chmod 777 * -R
            sudo npm install iobroker.js-controller --production
            

            warum macht du es auch nicht so

            und wenn du schon dabei bist mach ein update auf node 6

            1 Reply Last reply Reply Quote 0
            • R
              RappiRN Most Active last edited by

              … sag ich doch!

              @arteck:

              und wenn du schon dabei bist mach ein update auf node 6 `

              Erstmal eins abschließen, dann das nächste Problem lösen! 😄

              Enrico

              1 Reply Last reply Reply Quote 0
              • N
                nathan1312 last edited by

                Sorry, war spät gestern und ich war ein wenig in Panik. Hatte vorher ein wenig rumprobiert und dann zuviel als log gepostet. Den Tippfehler hatte ich auch nicht gesehen. Wenn ich nachher zuhause bin versuche ich es nochnmal.

                Aber danke für die schnellen Antworten!

                1 Reply Last reply Reply Quote 0
                • N
                  nathan1312 last edited by

                  OK, habs nochmal probiert. Leider immer noch ohne Erfolg 😞 ( Das "sudo" brauche ich ja nicht vor den Befehlen wenn ich als "root" angemeldet bin, soweit ich das verstanden habe)

                  So wie ich das verstehe ist wohl irgendeine Komponente veraltet. Weiß aber nicht ob das den Fehler auslöst…

                  Hier nochmal die Meldungen über die Konsole...

                  ! ````
                  root@raspberrypi:~# cd /opt/iobroker
                  root@raspberrypi:/opt/iobroker# chmod 777 * -R
                  chmod: cannot access ‘iobroker-data/files/scenes.admin’: No such file or directory
                  chmod: cannot access ‘iobroker-data/files/text2command.admin’: No such file or directory
                  chmod: cannot access ‘node_modules/iobroker.sayit/node_modules/jsftp/.vscode’: Structure needs cleaning
                  chmod: cannot access ‘node_modules/iobroker.sayit/node_modules/jsftp/lib’: Structure needs cleaning
                  chmod: cannot access ‘node_modules/iobroker.sayit/node_modules/aws-sdk/lib/s3/managed_upload.js’: Structure needs cleaning
                  root@raspberrypi:/opt/iobroker# npm install iobroker.js-controller --production
                  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
                  npm WARN deprecated localhost.daplie.me-certificates@1.3.5: this package has been deprecated
                  npm ERR! unpack Could not read data for debug@2.3.3
                  npm ERR! unpack Could not read data for ajv@5.3.0
                  |
                  unix-dgram@0.2.3 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/winston-syslog/node_modules/unix-dgram
                  node-gyp rebuild
                  ! make: Entering directory '/opt/iobroker/node_modules/iobroker.js-controller/node_modules/winston-syslog/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/iobroker.js-controller/node_modules/winston-syslog/node_modules/unix-dgram/build'
                  npm ERR! unpack Could not read data for bcrypt-pbkdf@1.0.1
                  npm WARN optional dep failed, continuing bcrypt-pbkdf@1.0.1
                  ! > ursa@0.9.4 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/greenlock/node_modules/rsa-compat/node_modules/ursa
                  node-gyp rebuild
                  ! make: Entering directory '/opt/iobroker/node_modules/iobroker.js-controller/node_modules/greenlock/node_modules/rsa-compat/node_modules/ursa/build'
                  CXX(target) Release/obj.target/ursaNative/src/ursaNative.o
                  SOLINK_MODULE(target) Release/obj.target/ursaNative.node
                  COPY Release/ursaNative.node
                  make: Leaving directory '/opt/iobroker/node_modules/iobroker.js-controller/node_modules/greenlock/node_modules/rsa-compat/node_modules/ursa/build'
                  npm ERR! Linux 4.4.26-v7+
                  npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.js-controller" "--production"
                  npm ERR! node v4.6.1
                  npm ERR! npm v2.15.9
                  npm ERR! path /root/.npm/debug/2.3.3/package/package.json
                  npm ERR! code Unknown system error -117
                  npm ERR! errno -117
                  npm ERR! syscall open
                  ! npm ERR! Unknown system error -117: Unknown system error -117, open '/root/.npm/debug/2.3.3/package/package.json'
                  npm ERR!
                  npm ERR! If you need help, you may report this error at:
                  npm ERR! <https: github.com/npm/issues="">npm ERR! Please include the following file with any support request:
                  npm ERR! /opt/iobroker/npm-debug.log
                  root@raspberrypi:/opt/iobroker#</https:>

                  
                  Ich hoffe Ihr könnt mir nochmal helfen.
                  
                  …beim Startversuch kommt dann übrigens folgende Fehlermeldung
                  
                  >! ````
                  root@raspberrypi:/opt/iobroker# iobroker start
                  module.js:327
                      throw err;
                      ^
                  >! Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iob       roker.js'
                      at Function.Module._resolveFilename (module.js:325:15)
                      at Function.Module._load (module.js:276:25)
                      at Function.Module.runMain (module.js:441:10)
                      at startup (node.js:139:18)
                      at node.js:974:3
                  >! ````
                  1 Reply Last reply Reply Quote 0
                  • Dutchman
                    Dutchman Developer Most Active Administrators last edited by

                    Probier Mal mit

                     sudo npm install iobroker --unsafe-perm
                    

                    –-----------------------

                    Send from mobile device

                    1 Reply Last reply Reply Quote 0
                    • N
                      nathan1312 last edited by

                      Der raspi hat einen kalten Reboot durchgemacht - Stromausfall.

                      Jetzt läuft iobroker wieder…. nur sind nun einige Adapter, die ich schon upgedatet hatte wieder auf einem früheren Stand...

                      Ich kapiers nicht... aber egal - bin froh, dass ich nicht neu aufsetzen muss!

                      Danke für eure Hilfe!

                      Gesendet von meinem SM-T820 mit Tapatalk

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

                        @nathan1312:

                        nur sind nun einige Adapter, die ich schon upgedatet hatte wieder auf einem früheren Stand… `
                        hattest du diese über github upgedatet?

                        Gruß

                        Rainer

                        1 Reply Last reply Reply Quote 0
                        • N
                          nathan1312 last edited by

                          Nein, ganz normal über den button auf der adapter-oberfläche

                          Gesendet von meinem SM-T820 mit Tapatalk

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          985
                          Online

                          31.6k
                          Users

                          79.4k
                          Topics

                          1.3m
                          Posts

                          6
                          11
                          1602
                          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