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.
    • 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
                            • crunchip
                              crunchip Forum Testing Most Active @Tomk81 last edited by

                              @tomk81 denke erst auf die v 3.3 manuell springen und danach auf die v4

                              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!:

                                und nu?

                                Konsolenoutput zeigen.

                                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!:

                                  und nu?

                                  Konsolenoutput zeigen.

                                  pi@raspberrypi:/opt/iobroker $ 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
                                  armv7l
                                  /usr/bin/nodejs
                                  /usr/bin/node
                                  /usr/bin/npm
                                  v12.22.12
                                  v12.22.12
                                  6.14.16
                                  pi
                                  /opt/iobroker
                                  Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                  Hit:2 http://archive.raspberrypi.org/debian buster InRelease
                                  Hit:3 https://deb.nodesource.com/node_12.x buster InRelease
                                  Hit:4 https://www.pivccu.de/piVCCU stable InRelease
                                  Reading package lists... Done
                                  Building dependency tree
                                  Reading state information... Done
                                  All packages are up to date.
                                  nodejs:
                                    Installed: 12.22.12-deb-1nodesource1
                                    Candidate: 12.22.12-deb-1nodesource1
                                    Version table:
                                   *** 12.22.12-deb-1nodesource1 500
                                          500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                          100 /var/lib/dpkg/status
                                       10.24.0~dfsg-1~deb10u1 500
                                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                  
                                  
                                  Thomas Braun T 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Tomk81 last edited by

                                    @tomk81

                                    Ich meinte von

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

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

                                      @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!:

                                      und nu?

                                      Konsolenoutput zeigen.

                                      pi@raspberrypi:/opt/iobroker $ 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
                                      armv7l
                                      /usr/bin/nodejs
                                      /usr/bin/node
                                      /usr/bin/npm
                                      v12.22.12
                                      v12.22.12
                                      6.14.16
                                      pi
                                      /opt/iobroker
                                      Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                      Hit:2 http://archive.raspberrypi.org/debian buster InRelease
                                      Hit:3 https://deb.nodesource.com/node_12.x buster InRelease
                                      Hit:4 https://www.pivccu.de/piVCCU stable InRelease
                                      Reading package lists... Done
                                      Building dependency tree
                                      Reading state information... Done
                                      All packages are up to date.
                                      nodejs:
                                        Installed: 12.22.12-deb-1nodesource1
                                        Candidate: 12.22.12-deb-1nodesource1
                                        Version table:
                                       *** 12.22.12-deb-1nodesource1 500
                                              500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                              100 /var/lib/dpkg/status
                                           10.24.0~dfsg-1~deb10u1 500
                                              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                      
                                      

                                      war jetzt glaub ich das falsche. hab nochmal ein upgrade versucht und jetzt läuft es wieder ewig. sorry

                                      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

                                        Ich meinte von

                                        cd /opt/iobroker                                                                                                                                                                           
                                        sudo -H -u iobroker npm install iobroker.js-controller                                                                                                                                                                            
                                        iobroker start
                                        
                                        pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
                                        
                                        > iobroker.js-controller@2.2.10 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                                        > node lib/preinstallCheck.js
                                        
                                        NPM version: 6.14.16
                                        
                                        > iobroker.js-controller@2.2.10 install /opt/iobroker/node_modules/iobroker.js-controller
                                        > node iobroker.js setup first
                                        
                                        
                                        The following notifications happened during sync:
                                        - Ignoring Directory "hm-rega" because officially not created as meta object. Please remove directory!
                                        
                                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
                                        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                        npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/acme-v2/package.json'
                                        npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/lie/package.json'
                                        
                                        + iobroker.js-controller@2.2.10
                                        updated 1 package in 29.975s
                                        
                                        111 packages are looking for funding
                                          run `npm fund` for details
                                        
                                        pi@raspberrypi:/opt/iobroker $ iobroker start
                                        pi@raspberrypi:/opt/iobroker $
                                        
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Tomk81 last edited by Thomas Braun

                                          @tomk81

                                          npm ls --depth=0 | grep ERR
                                          
                                          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!:

                                            npm ls --depth=0 | grep ERR

                                            pi@raspberrypi:/opt/iobroker $ npm ls --depth=0 | grep ERR
                                            npm ERR! missing: colors@^1.3.3, required by iobroker.inst@2.0.3
                                            npm ERR! missing: fs-extra@^7.0.1, required by iobroker.inst@2.0.3
                                            npm ERR! missing: iobroker@^2.0.3, required by iobroker.inst@2.0.3
                                            npm ERR! missing: iobroker.info@stable, required by iobroker.inst@2.0.3
                                            npm ERR! missing: semver@^5.6.0, required by iobroker.inst@2.0.3
                                            npm ERR! missing: yargs@^7.0.2, required by iobroker.inst@2.0.3
                                            npm ERR! extraneous: acme-v2 /opt/iobroker/node_modules/acme-v2
                                            npm ERR! error in /opt/iobroker/node_modules/acme-v2: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/acme-v2/package.json'
                                            npm ERR! extraneous: lie /opt/iobroker/node_modules/lie
                                            npm ERR! error in /opt/iobroker/node_modules/lie: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/lie/package.json'
                                            npm ERR! extraneous: is-buffer@1.1.6 /opt/iobroker/node_modules/is-buffer
                                            
                                            
                                            Thomas Braun 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

                                            819
                                            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