Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Update auf 1.2.3 funktioniert nicht

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Update auf 1.2.3 funktioniert nicht

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

      Hi, ich wollte heute auf die neue js-controller version 1.2.3 updaten.

      Dabei bekomme ich folgende Fehlermeldung und iobroker lässt sich danach nicht mehr starten.

      Update js-controller from @1.2.0 to @1.2.3
      npm install iobroker.js-controller@1.2.3 --production --prefix "/opt/iobroker" (System call)
      npm WARN deprecated localhost.daplie.me-certificates@1.3.5: this package has been deprecated
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/iobroker.radar/node_modules/noble/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":"x64"})
      npm ERR! Linux 4.9.0-4-amd64
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller@1.2.3" "--production" "--prefix" "/opt/iobroker"
      npm ERR! node v6.12.0
      npm ERR! npm  v3.10.10
      npm ERR! path /opt/iobroker/node_modules/.staging/abbrev-bc1a4de2
      npm ERR! code ENOENT
      npm ERR! errno -2
      npm ERR! syscall rename
      
      npm ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/.staging/abbrev-bc1a4de2' -> '/opt/iobroker/node_modules/npm/node_modules/abbrev'
      npm ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/.staging/abbrev-bc1a4de2' -> '/opt/iobroker/node_modules/npm/node_modules/abbrev'
      npm ERR! enoent This is most likely not a problem with npm itself
      npm ERR! enoent and is related to npm not being able to find a file.
      npm ERR! enoent 
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /opt/iobroker/npm-debug.log
      host.debianioBroker Cannot install iobroker.js-controller@1.2.3: 254
      
      1 Reply Last reply Reply Quote 0
      • R
        RappiRN Most Active last edited by

        Ich hatte auch ein Problem, http://forum.iobroker.net/search.php?keywords=js+controller+update&terms=all&author=&sc=1&sf=all&sk=t&sd=d&sr=posts&st=0&ch=300&t=0&submit=Suche hat mir weiter geholfen:

        http://forum.iobroker.net/viewtopic.php?f=17&t=9100&p=97758&hilit=js+controller+update#p97758 hatte mir hiermit die Lösung gebracht, allerdings erstmal nur Version 1.2.2! Aber es lief wieder!

        @Bluefox:

        Ich empfehle die neuste js-controller vom github zu installieren:

        
        cd /opt/iobroker
        iobroker stop
        npm i https://github.com/ioBroker/ioBroker.js-controller/tarball/master --production
        iobroker start
        
        

        Danach sollte js-controller alle fehlende Pakete selbst nachinstallieren. `

        Enrico

        1 Reply Last reply Reply Quote 0
        • J
          jensus11 last edited by

          so update auf 1.2.2 hat geklappt mit tarball/master–production.

          Dann mit upgrade self weiter gemacht und jetzt kommt das.

          npm install iobroker.js-controller@1.2.3 --production --prefix "/opt/iobroker" (System call)
          npm WARN deprecated localhost.daplie.me-certificates@1.3.5: this package has been deprecated
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/iobroker.radar/node_modules/noble/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":"x64"})
          npm ERR! Linux 4.9.0-4-amd64
          npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller@1.2.3" "--production" "--prefix" "/opt/iobroker"
          npm ERR! node v6.12.0
          npm ERR! npm  v3.10.10
          npm ERR! path /opt/iobroker/node_modules/.staging/abbrev-bc1a4de2
          npm ERR! code ENOENT
          npm ERR! errno -2
          npm ERR! syscall rename
          
          npm ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/.staging/abbrev-bc1a4de2' -> '/opt/iobroker/node_modules/npm/node_modules/abbrev'
          npm ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/.staging/abbrev-bc1a4de2' -> '/opt/iobroker/node_modules/npm/node_modules/abbrev'
          npm ERR! enoent This is most likely not a problem with npm itself
          npm ERR! enoent and is related to npm not being able to find a file.
          npm ERR! enoent 
          
          npm ERR! Please include the following file with any support request:
          npm ERR!     /opt/iobroker/npm-debug.log
          npm ERR! code 1
          Host "debianioBroker" (linux) updated
          Execute: chmod -R 777 /opt/iobroker
          Chmod finished. Restart controller
          Starting node restart.js
           Cannot save file /opt/iobroker/node_modules/iobroker.js-controller/lib/objects/../../../../iobroker-data/objects.json: Error: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/../../../../iobroker-data/objects.json'
           Cannot save /opt/iobroker/node_modules/iobroker.js-controller/lib/states/../../../../iobroker-data/states.json: Error: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/lib/states/../../../../iobroker-data/states.json'
          root@debianioBroker:/opt/iobroker# iobroker start 
          module.js:471
              throw err;
              ^
          
          Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
              at Function.Module._resolveFilename (module.js:469:15)
              at Function.Module._load (module.js:417:25)
              at Module.runMain (module.js:604:10)
              at run (bootstrap_node.js:383:7)
              at startup (bootstrap_node.js:149:9)
              at bootstrap_node.js:496:3
          
          
          1 Reply Last reply Reply Quote 0
          • R
            RappiRN Most Active last edited by

            @jensus11:

            so update auf 1.2.2 hat geklappt mit tarball/master–production. `

            Lass es erstmal dabei, bis sich hier jemand meldet, der mehr Ahnung hat als ich, wichtiger ist doch, dass es wieder läuft. Also nochmal ohne danach wieder upgrade self einzugeben.

            Enrico

            1 Reply Last reply Reply Quote 0
            • J
              jensus11 last edited by

              bei dem Slave ist das update auf 1.2.3 super durchgelaufen.

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

                @jensus11:

                bei dem Slave ist das update auf 1.2.3 super durchgelaufen. `
                Bei mir auch. Pi3-slave Update von 1.2 auf 1.2.3 ohne Probleme.

                Beim Master traue ich mich noch nicht… :roll:

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

                  @jensus11:

                  bei dem Slave ist das update auf 1.2.3 super durchgelaufen. `

                  Bei mir auch, Master (PC mit Ubuntu, glaub 16?) ging bei mir nur so, wie oben beschrieben! 😞

                  Der Workaround oben hat dann wenigstens die Version 1.2.2 gebracht!

                  Enrico

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

                    hmm, die Version 1.2.3 wurde installiert, jedoch spuckt es Fehler beim Starten aus…

                    root@orangepiplus2e:/opt/iobroker# iobroker start

                    Starting iobroker controller daemon...

                    /opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136

                    throw new Error(msg.error);

                    ^

                    Error: Error: Cannot find module 'winston/lib/winston/common'

                    at Function.Module._resolveFilename (module.js:469:15)

                    at Function.Module._load (module.js:417:25)

                    at Module.require (module.js:497:17)

                    at require (internal/module.js:20:19)

                    at Object. <anonymous>(/opt/iobroker/node_modules/winston-daily-rotate-file/index.js:6:14)

                    at Module._compile (module.js:570:32)

                    at Object.Module._extensions..js (module.js:579:10)

                    at Module.load (module.js:487:32)

                    at tryModuleLoad (module.js:446:12)

                    at Function.Module._load (module.js:438:3)

                    at ChildProcess. <anonymous>(/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136:19)

                    at emitTwo (events.js:106:13)

                    at ChildProcess.emit (events.js:191:7)

                    at process.nextTick (internal/child_process.js:787:12)

                    at _combinedTickCallback (internal/process/next_tick.js:73:7)

                    at process._tickCallback (internal/process/next_tick.js:104:9)

                    root@orangepiplus2e:/opt/iobroker#</anonymous></anonymous>

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

                      @knopers1:

                      Error: Error: Cannot find module 'winston/lib/winston/common'
                      ```` `  
                      

                      Bei dir könnte helfen:

                      npm install winston
                      

                      Das musste ich bei mir, allerdings auf 1.2.2 auch machen, diesen Fehler hatte ich auch drin!

                      Enrico

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tiger015 last edited by

                        Hallo

                        Habe so ein ähnliches problem. Bekommen den admin Bereich auch nicht mehr zum laufen.

                        Bekomme immer diese meldung

                        Error: listen EADDRINUSE 0.0.0.0:9001

                        at Object.exports._errnoException (util.js:1020:11)

                        at exports._exceptionWithHostPort (util.js:1043:20)

                        at Server._listen2 (net.js:1262:14)

                        at listen (net.js:1298:10)

                        at net.js:1408:9

                        at _combinedTickCallback (internal/process/next_tick.js:83:11)

                        at process._tickCallback (internal/process/next_tick.js:104:9)

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

                          Ist es ein RasPi1??

                          (sonst) mach mal einen reboot.

                          Wenn es (bei nicht Pi1) dann wiederkommt hast du ggf. statt drüberzuinstallieren eine zweite Instanz angelegt?

                          Gruß

                          Rainer

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tiger015 last edited by

                            Es handelt sich um einen Pi3 und reboot und nach der anleitung hier habe ich es auch schon versucht.

                            alles ohne erfolg.

                            Befehlt iobroker status gibt zurück das es lauft.

                            update habe ich auch alle neu auf gespielt it update self.

                            admin.0 port schon geänder bringt auch kein erfolg.

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

                              @Tiger015:

                              Befehlt iobroker status gibt zurück das es lauft.

                              update habe ich auch alle neu auf gespielt it update self. `

                              update geht aber:

                              sudo iobroker stop
                              sudo iobroker update
                              sudo iobroker upgrade self
                              sudo iobroker start
                              

                              Ich würde aber eher diese Methode wählen:

                              sudo iobroker stop
                              sudo iobroker update
                              npm cache clean
                              npm install iobroker.js-controller
                              sudo iobroker start
                              

                              Was mich noch irritiert ist:
                              @Tiger015:

                              Error: listen EADDRINUSE 0.0.0.0:9001
                              ```` `  
                              

                              Hast du eine Multihost Installation?

                              Gruß

                              Rainer

                              1 Reply Last reply Reply Quote 0
                              • T
                                Tiger015 last edited by

                                Nein ist kein Multihorst

                                fehler war auch auf einmal von selber da seit heute nach mittage.

                                da vor lief alles noch einbar frei.

                                sudo iobroker update
                                npm cache clean
                                npm install iobroker.js-controller
                                sudo iobroker start
                                
                                Rüchgabe nach der ausfürhrung:
                                
                                npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
                                npm WARN root No description
                                npm WARN root No repository field.
                                npm WARN root No README data
                                npm WARN root No license field.
                                
                                root@raspberrypi3:~# iobroker start
                                Starting iobroker controller daemon...
                                iobroker controller daemon started. PID: 1982
                                root@raspberrypi3:~#
                                
                                

                                admin ist aber immer nich nicht erreichbar

                                root@raspberrypi3:~# iobroker stop admin.0
                                events.js:160
                                      throw er; // Unhandled 'error' event
                                      ^
                                
                                Error: listen EADDRINUSE 0.0.0.0:9001
                                    at Object.exports._errnoException (util.js:1020:11)
                                    at exports._exceptionWithHostPort (util.js:1043:20)
                                    at Server._listen2 (net.js:1262:14)
                                    at listen (net.js:1298:10)
                                    at net.js:1408:9
                                    at _combinedTickCallback (internal/process/next_tick.js:83:11)
                                    at process._tickCallback (internal/process/next_tick.js:104:9)
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • R
                                  RappiRN Most Active last edited by

                                  Ich würde mal sagen, davor fehlt ein:

                                  cd /opt/iobroker
                                  

                                  Oder?

                                  Enrico

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

                                    @RappiRN:

                                    Ich würde mal sagen, davor fehlt ein:

                                    CODE: ALLES AUSWÄHLEN

                                    cd /opt/iobroker `

                                    Das ist ja was ich meinte mit:
                                    @Homoran:

                                    hast du ggf. statt drüberzuinstallieren eine zweite Instanz angelegt? `

                                    Jetzt hat der TE zwei Installationen.

                                    Da sind die Ports natürlich doppelt vergeben.

                                    Gruß

                                    Rainer

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      Tiger015 last edited by

                                      @RappiRN:

                                      Ich würde mal sagen, davor fehlt ein:

                                      cd /opt/iobroker
                                      

                                      Oder?

                                      Enrico `

                                      Gleiches ergebniss:

                                      root@raspberrypi3:~# cd /opt/iobroker
                                      root@raspberrypi3:/opt/iobroker# iobroker stop admin.0
                                      events.js:160
                                            throw er; // Unhandled 'error' event
                                            ^
                                      
                                      Error: listen EADDRINUSE 0.0.0.0:9001
                                          at Object.exports._errnoException (util.js:1020:11)
                                          at exports._exceptionWithHostPort (util.js:1043:20)
                                          at Server._listen2 (net.js:1262:14)
                                          at listen (net.js:1298:10)
                                          at net.js:1408:9
                                          at _combinedTickCallback (internal/process/next_tick.js:83:11)
                                          at process._tickCallback (internal/process/next_tick.js:104:9)
                                      root@raspberrypi3:/opt/iobroker#
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        RappiRN Most Active last edited by

                                        @Homoran:

                                        Jetzt hat der TE zwei Installationen.

                                        Da sind die Ports natürlich doppelt vergeben. `

                                        Dann brauchen wir jetzt ne Anleitung, wie einfach zu prüfen wäre, ob denn wirklich zwei Installationen da sind. Ich selbst würde über z.B. winSCP nachsehen, ob noch weitere ioBroker-Ordner angelegt wurden, aber das geht bestimmt auch eleganter! 😉

                                        Enrico

                                        1 Reply Last reply Reply Quote 0
                                        • Dutchman
                                          Dutchman Developer Most Active Administrators last edited by

                                          @RappiRN:

                                          , ob noch weitere ioBroker-Ordner angelegt wurden, aber das geht bestimmt auch eleganter! 😉

                                          Enrico `

                                          Auf Linux gibt es dafür dass"find" Commando.

                                          Komme gerade nicht an meine Installation aber wenn du nach einer Datei/Ordner suchst die es nur im ioBroker Verzeichnis gibt solltest du fündig werden:

                                           Finding a directory
                                          
                                          To find a directory called apt in / (root) file system, enter:
                                          
                                          Alert: When searching / (root) file system, you need to run the find command as root user.
                                          
                                          find / -type d -name "apt" 
                                          Sample outputs:
                                          
                                          /var/log/apt
                                          /var/lib/apt
                                          /var/cache/apt
                                          /etc/apt
                                          /etc/logrotate.d/apt
                                          /etc/cron.daily/apt
                                          

                                          https://www.google.nl/amp/s/www.cyberci … mmand/amp/


                                          Send from mobile device

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            jensus11 last edited by

                                            Bei mir hat das zur Lösung geführt.

                                            cd /opt/iobroker
                                            sudo chmod 777 * -R
                                            sudo npm install iobroker.js-controller --production
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            979
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            25
                                            2864
                                            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