Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 4.0.x jetzt für alle User im STABLE!

    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

    js-controller 4.0.x jetzt für alle User im STABLE!

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active last edited by crunchip

      @negalein sagte in js-controller 4.0.x jetzt für alle User im STABLE!:

      Die Übersicht im Thread hab ich verloren

      die Meldung steht im ersten Beitrag und da steht, alles ok😉

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

        jetzt habe ich das update mehrmals versucht und es funktioniert leider nicht. nachdem das update abgelaufen ist (auch mit gemeldeten Fehlern) wird es garnicht mehr erkannt. Bin leider nur Anfänger der selten dazu kommt mit iobroker zu arbeiten. Deswegen brauche ich etwas hilfe von euch. Was muss ich euch zeigen damit ihr mir bei dem Update helfen könnt??
        Habe zurzeit den JS controller 2.2.10 und Node.js v12.21.0 drauf

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

          @tomk81

          sudo ln -s /usr/bin/node /usr/bin/nodejs
          uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
          iobroker update -i
          

          (auch mit gemeldeten Fehlern)

          Und die sind streng geheim?

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

            @thomas-braun said in js-controller 4.0.x jetzt für alle User im STABLE!:

            sudo ln -s /usr/bin/node /usr/bin/nodejs

            wie bekomme ich die für euch ersichtlich. drag and drop?

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

              @tomk81
              Aus der Konsole als Text per Copy & Paste. In </> CodeTags eingebettet.

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

                @thomas-braun sorry bin zu dämlich. weis nicht wie du es meinst. Arbeite mit Putty und sobald ich die rechte Taste drücke, kopiert der nur. sorry ist echt peinlich

                Thomas Braun 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Tomk81 last edited by

                  @tomk81

                  Text in der Konsole markieren und kopieren.
                  Dann das Icon </>
                  0e21c74f-1848-44dd-bb0d-e19c318d7436-image.png
                  anklicken, Text dahin kopieren, wo code_text steht:

                  1b92e7dd-9bdc-4376-93cc-5157afd0d4ce-image.png
                  Führt dann so so einem gut lesbaren Text, der so ähnlich wie deine Konsole ausschaut.

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

                    @tomk81 sagte in js-controller 4.0.x jetzt für alle User im STABLE!:

                    Arbeite mit Putty

                    Ich nicht. Aber da mit puTTY recht viele arbeiten wird das wohl da auch möglich sein.

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

                      @thomas-braun

                      Update js-controller from @2.2.10 to @4.0.23
                      NPM version: 6.14.11
                      npm install iobroker.js-controller@4.0.23 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                       Objects 127.0.0.1:38520 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
                       States 127.0.0.1:33132 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"]
                       Objects 127.0.0.1:38520 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
                       Objects 127.0.0.1:38520 Error from InMemDB: Error: scan NOT SUPPORTED
                      /opt/iobroker/node_modules/standard-as-callback/built/index.js:6
                              throw e;
                              ^
                      
                      ReplyError: Error scan NOT SUPPORTED
                          at parseError (/opt/iobroker/node_modules/redis-parser/lib/parser.js:179:12)
                          at parseType (/opt/iobroker/node_modules/redis-parser/lib/parser.js:302:14)
                      Emitted 'error' event on ScanStream instance at:
                          at /opt/iobroker/node_modules/ioredis/built/ScanStream.js:38:22
                          at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:12:23)
                          at /opt/iobroker/node_modules/standard-as-callback/built/index.js:33:51
                          at processTicksAndRejections (internal/process/task_queues.js:97:5) {
                        command: {
                          name: 'scan',
                          args: [ '0', 'MATCH', 'cfg.o.system.host.*', 'COUNT', '250' ]
                        }
                      }
                      npm ERR! code ELIFECYCLE
                      npm ERR! errno 1
                      npm ERR! iobroker.js-controller@4.0.23 install: `node iobroker.js setup first`
                      npm ERR! Exit status 1
                      npm ERR!
                      npm ERR! Failed at the iobroker.js-controller@4.0.23 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!     /home/iobroker/.npm/_logs/2022-05-11T16_53_19_849Z-debug.log
                      host.raspberrypi Cannot install iobroker.js-controller@4.0.23: 1
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Tomk81 last edited by Thomas Braun

                        @tomk81 sagte in js-controller 4.0.x jetzt für alle User im STABLE!:

                        Update js-controller from @2.2.10

                        Achdujeh...
                        Das verwendete Betriebssystem ist vermutlich ähnlich alt.

                        Könnte man vielleicht sagen, wenn man wüsste was auf:

                        sudo ln -s /usr/bin/node /usr/bin/nodejs
                        uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        

                        zurückkommt.

                        Ich würde es aber vermutlich alles von Grundauf neuinstallieren. Ist einfacher und schneller als da so riesige Lücken zu überbrücken.

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

                          @thomas-braun said in js-controller 4.0.x jetzt für alle User im STABLE!:

                          sudo ln -s /usr/bin/node /usr/bin/nodejs

                          & apt policy nodejs
                          armv7l
                          /usr/bin/nodejs
                          /usr/bin/node
                          /usr/bin/npm
                          v12.21.0
                          v12.21.0
                          6.14.11
                          pi
                          /opt/iobroker
                          
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Tomk81 last edited by

                            @tomk81

                            sudo apt update
                            
                            T 1 Reply Last reply Reply Quote 0
                            • T
                              Tomk81 @Thomas Braun last edited by Tomk81

                              @thomas-braun said in js-controller 4.0.x jetzt für alle User im STABLE!:

                              hab ich gemacht, und jetzt? Läuft leider noch nicht.

                              lief vorhin erst wieder nach dem Befehl:

                              sudo -H -u iobroker npm install iobroker.js-controller
                              

                              aber halt mit der alten Version

                              sorry für die späte Antwort aber meine Frau und Kinder....

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

                                @tomk81 sagte in js-controller 4.0.x jetzt für alle User im STABLE!:

                                hab ich gemacht, und jetzt? Läuft leider noch nicht.

                                Du sollst die Ausgaben posten.

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

                                  @thomas-braun said in js-controller 4.0.x jetzt für alle User im STABLE!:

                                  @tomk81 sagte in js-controller 4.0.x jetzt für alle User im STABLE!:

                                  hab ich gemacht, und jetzt? Läuft leider noch nicht.

                                  Du sollst die Ausgaben posten.

                                  pi@raspberrypi:/opt/iobroker $ sudo apt update
                                  Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
                                  Hit:2 https://deb.nodesource.com/node_12.x buster InRelease
                                  Hit:3 https://www.pivccu.de/piVCCU stable InRelease
                                  Get:4 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
                                  E: Repository 'http://archive.raspberrypi.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'oldstable'
                                  N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
                                  Do you want to accept these changes and continue updating from this repository? [y/N] y
                                  Get:5 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]
                                  E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
                                  N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
                                  Do you want to accept these changes and continue updating from this repository? [y/N] y
                                  Get:6 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
                                  Get:7 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.8 kB]
                                  Get:8 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]
                                  Fetched 13.6 MB in 26s (523 kB/s)
                                  Reading package lists... Done
                                  Building dependency tree
                                  Reading state information... Done
                                  132 packages can be upgraded. Run 'apt list --upgradable' to see them.
                                  
                                  
                                  Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Tomk81 last edited by

                                    @tomk81

                                    Buster ist ja doch nicht so alt wie befürchtet.

                                    sudo apt full-upgrade
                                    sudo reboot
                                    

                                    Wenn das durch ist und der Server wieder auf die Beine gekommen ist bitte nochmal:

                                    uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Tomk81 last edited by

                                      @tomk81

                                      Dann:

                                      iobroker update
                                      iobroker upgrade
                                      iobroker stop
                                      cd /opt/iobroker
                                      sudo -H -u iobroker npm install iobroker.js-controller
                                      iobroker start
                                      
                                      T 1 Reply Last reply Reply Quote 0
                                      • T
                                        Tomk81 @Thomas Braun last edited by

                                        @thomas-braun said in js-controller 4.0.x jetzt für alle User im STABLE!:

                                        @tomk81

                                        Dann:

                                        iobroker update
                                        iobroker upgrade
                                        iobroker stop
                                        cd /opt/iobroker
                                        sudo -H -u iobroker npm install iobroker.js-controller
                                        iobroker start
                                        

                                        bei iobroker update kommt direkt das hier

                                        pi@raspberrypi:/opt/iobroker $ iobroker update
                                        internal/modules/cjs/loader.js:818
                                          throw err;
                                          ^
                                        
                                        Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                            at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
                                            at Function.Module._load (internal/modules/cjs/loader.js:667:27)
                                            at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
                                            at internal/main/run_main_module.js:17:47 {
                                          code: 'MODULE_NOT_FOUND',
                                          requireStack: []
                                        }
                                        
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Tomk81 last edited by

                                          @tomk81 sagte in js-controller 4.0.x jetzt für alle User im STABLE!:

                                          Dann lass das update erstmal aus und versuch es so.

                                          iobroker stop           
                                          cd /opt/iobroker                                                                                                                                                                           
                                          sudo -H -u iobroker npm install iobroker.js-controller                                                                                                                                                                            
                                          iobroker start
                                          
                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            Tomk81 @Thomas Braun last edited by Tomk81

                                            @thomas-braun said in js-controller 4.0.x jetzt für alle User im STABLE!:

                                            iobroker start

                                            hat leider immer noch nicht funktioniert.
                                            es ist immer noch die JS-controller Version 2.2.10

                                            und nu?

                                            Die CCU Version hat der aber aktualisiert komischerweise

                                            crunchip Thomas Braun 2 Replies 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

                                            942
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            83
                                            501
                                            119361
                                            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