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

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    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.
    • apollon77
      apollon77 @Siggi0904 last edited by apollon77

      @siggi0904 ich wüsste noch wo das in diesem thread passt weil ist wenn admin. Mach mal deinen Browser breiter. Dann ist der Name auch wieder da

      Ok foxriver war schneller ;-))

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

        Hallo zusammen,

        das Update des JS-Controllers hat auf dem Master super funktioniert.
        Beim Update des ersten Slaves kommt diese Meldung:

        
        pi@rpi3b-garten:~ $ iobroker upgrade self
        Update js-controller from @3.3.22 to @4.0.23
        NPM version: 6.14.16
        npm install iobroker.js-controller@4.0.23 --loglevel error --unsafe-perm --prefi                                                                      x "/opt/iobroker" (System call)
        In file included from ../../nan/nan.h:58,
                         from ../src/unix_dgram.cc:5:
        /home/iobroker/.cache/node-gyp/14.19.1/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
               (node::addon_register_func) (regfunc),                          \
                                                   ^
        /home/iobroker/.cache/node-gyp/14.19.1/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
           NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
           ^~~~~~~~~~~~~
        ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
         NODE_MODULE(unix_dgram, Initialize)
         ^~~~~~~~~~~
        

        Ist das so OK?
        iobroker -v "sagt": 4.0.23

        Danke für Info...

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

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

          Ist das so OK?

          Ja.

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

            @thomas-braun THX 🙂

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

              ich habe nun auch auf 4.0.23 upgedatet.

              Die Übersicht im Thread hab ich verloren. 😉

              Haben diese Meldungen was zu bedeuten?

              nega@ioBroker:~$ iob upgrade self
              Update js-controller from @3.3.22 to @4.0.23
              NPM version: 6.14.16
              npm install iobroker.js-controller@4.0.23 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
              In file included from ../../nan/nan.h:56,
                               from ../src/unix_dgram.cc:5:
              /home/iobroker/.cache/node-gyp/14.19.1/include/node/node.h:793:43: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
                793 |       (node::addon_register_func) (regfunc),                          \
                    |                                           ^
              /home/iobroker/.cache/node-gyp/14.19.1/include/node/node.h:827:3: note: in expansion of macro 'NODE_MODULE_X'
                827 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                    |   ^~~~~~~~~~~~~
              ../src/unix_dgram.cc:404:1: note: in expansion of macro 'NODE_MODULE'
                404 | NODE_MODULE(unix_dgram, Initialize)
                    | ^~~~~~~~~~~
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
              Server States 127.0.0.1:58060 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"]
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
              Server States 127.0.0.1:58062 Error from InMemDB: Error: PSUBSCRIBE-UNSUPPORTED for namespace meta.: Data=["meta.*"]
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: Unknown LUA script load
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: Unknown LUA script load
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: Unknown LUA script load
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"Buffer","data":[49]}]
              Could not migrate objects to corresponding sets: Error SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"Buffer","data":[49]}]
              nega@ioBroker:~$ nega@ioBroker:~$ iob upgrade self
                793 |       (node::addon_register_func) (regfunc),                          \
                    |                                           ^
              /home/iobroker/.cache/node-gyp/14.19.1/include/node/node.h:827:3: note: in expansion of macro 'NODE_MODULE_X'
                827 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                    |   ^~~~~~~~~~~~~
              ../src/unix_dgram.cc:404:1: note: in expansion of macro 'NODE_MODULE'
                404 | NODE_MODULE(unix_dgram, Initialize)
                    | ^~~~~~~~~~~
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
              Server States 127.0.0.1:58060 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"]
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
              Server States 127.0.0.1:58062 Error from InMemDB: Error: PSUBSCRIBE-UNSUPPORTED for namespace meta.: Data=["meta.*"]
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: Unknown LUA script load
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: Unknown LUA script load
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: Unknown LUA script load
              Server Objects 127.0.0.1:50326 Error from InMemDB: Error: SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"Buffer","data":[49]}]
              Could not migrate objects to corresponding sets: Error SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"Buffer","data":[49]}]
              
              1 Reply Last reply Reply Quote 0
              • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            887
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

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