Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 5.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 5.0.x jetzt für alle User im STABLE!

    This topic has been deleted. Only users with topic management privileges can see it.
    • foxriver76
      foxriver76 Developer @ingenii last edited by

      @ingenii zeig mal bitte die Einstellungen vom Web Adapter über den du die vis nutzt

      I 1 Reply Last reply Reply Quote 0
      • I
        ingenii @mcm1957 last edited by

        @mcm57

        Hallo,

        Problem auftaucht jedes mal wen ich im VIS von eine Seite springe in andere.
        Dieser Compact Mode kännte ich nicht bist jetzt und sicher ist er AUS.

        1 Reply Last reply Reply Quote 1
        • I
          ingenii @foxriver76 last edited by

          @foxriver76
          Hallo, hier hab ich nie was umgestellt.
          Reicht die Erste Seite ?

          web.JPG

          sigi234 1 Reply Last reply Reply Quote 0
          • sigi234
            sigi234 Forum Testing Most Active @ingenii last edited by

            @ingenii

            Haken rein bei Reine-WEB Sockets

            I 1 Reply Last reply Reply Quote 0
            • mcm1957
              mcm1957 last edited by

              @ingenii

              Danke mal für die Infos.
              Falls das aus irgeneinem Grund hier untergehen sollte undkeine Lösung auftritt, mach bitte ein Issue auf. Das ereeicht dann development direct (obwohl @foxriver hier eh schon aktiv ist)

              1 Reply Last reply Reply Quote 0
              • I
                ingenii @sigi234 last edited by

                @sigi234
                Danke für dein Typ aber es hat nicht geholfen.

                1 Reply Last reply Reply Quote 0
                • P
                  peppino last edited by

                  Hallo,

                  Ich habe mit js-controller 5.0.x ähnliche/selbe Probleme.
                  Nach einem reload der vis1 habe ich bei Datenpunkte die nicht von einem "alias.0 Datenpunkt" kommen "NaN" oder "null". Die Werte werden erst angezeigt wenn diese aktualisiert werden (z.B.: Temperaturwert ändert sich) nach einem View wechsel steht dann wieder "NaN" oder "null" bis zur nächsten Wertänderung.
                  Die selbe Vis konvertiert auf vis2 macht hingegen keine Probleme.

                  BG
                  Joe

                  1 Reply Last reply Reply Quote 0
                  • S
                    sonnenfreund @foxriver76 last edited by sonnenfreund

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

                    Wer sich unsicher ist, ob ein Fehler vorliegt, sollte am besten hier im Thread das Problem beschreiben. So können wir alle versuchen, das Problem nachzuvollziehen und ggf. einzugrenzen.

                    Hallo zusammen,
                    wollte nun endlich mal meinen uralten js controller aktualisieren.

                    Habe die Schritte

                    • iobroker stop
                    • cd /opt/iobroker

                    abgearbeitet.

                    Leider läuft aber iob upgrade self nicht durch.
                    Es kommen folgende Fehlermeldungen. Woran kann das liegen / wie kann ich das lösen?

                    pi@raspberrypi4-iob:/ $ iobroker upgrade self
                    Update js-controller from @3.1.6 to @5.0.16
                    NPM version: 10.2.3
                    npm install iobroker.js-controller@5.0.16 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                     Objects 127.0.0.1:58398 Error from InMemDB: Error: CONFIG-UNSUPPORTED for ["SET","lua-time-limit","10000"]
                     States 127.0.0.1:35658 Error from InMemDB: Error: CONFIG-UNSUPPORTED for ["SET","notify-keyspace-events","Exe"]
                     Objects 127.0.0.1:58398 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
                     States 127.0.0.1:35658 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"]
                     Objects 127.0.0.1:58398 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
                     Objects 127.0.0.1:58398 Error from InMemDB: Error: scan NOT SUPPORTED
                    npm ERR! code 1
                    npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
                    npm ERR! command failed
                    npm ERR! command sh -c node iobroker.js setup first
                    npm ERR! Unable to increase LUA script timeout: Error CONFIG-UNSUPPORTED for ["SET","lua-time-limit","10000"]
                    npm ERR!  Unable to enable Expiry Keyspace events from Redis Server: Error CONFIG-UNSUPPORTED for ["SET","notify-keyspace-events","Exe"]
                    npm ERR! /opt/iobroker/node_modules/standard-as-callback/built/index.js:6
                    npm ERR!         throw e;
                    npm ERR!         ^
                    npm ERR!
                    npm ERR! ReplyError: Error scan NOT SUPPORTED
                    npm ERR!     at parseError (/opt/iobroker/node_modules/redis-parser/lib/parser.js:179:12)
                    npm ERR!     at parseType (/opt/iobroker/node_modules/redis-parser/lib/parser.js:302:14)
                    npm ERR! Emitted 'error' event on ScanStream instance at:
                    npm ERR!     at /opt/iobroker/node_modules/ioredis/built/ScanStream.js:38:22
                    npm ERR!     at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:12:23)
                    npm ERR!     at /opt/iobroker/node_modules/standard-as-callback/built/index.js:33:51
                    npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
                    npm ERR!   command: {
                    npm ERR!     name: 'scan',
                    npm ERR!     args: [ '0', 'MATCH', 'cfg.o.system.host.*', 'COUNT', '250' ]
                    npm ERR!   }
                    npm ERR! }
                    npm ERR!
                    npm ERR! Node.js v18.19.0
                    
                    npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-12-07T19_37_56_146Z-debug-0.log
                    Starting node restart.js
                    pi@raspberrypi4-iob:/ $
                    Thomas Braun foxriver76 2 Replies Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @sonnenfreund last edited by Thomas Braun

                      @sonnenfreund

                      iob diag
                      

                      sagt zur Gesamtlage?
                      Die lange Version...

                      Und stell dich in dein /home
                      In / hast du nix verloren...

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sonnenfreund @Thomas Braun last edited by

                        @thomas-braun

                        Copy text starting here:

                        ======================= SUMMARY =======================
                                                v.2023-10-10
                        
                        
                           Static hostname: raspberrypi4-iob
                                 Icon name: computer
                          Operating System: Raspbian GNU/Linux 11 (bullseye)
                                    Kernel: Linux 5.10.103-v7l+
                              Architecture: arm
                        
                        Installation:           native
                        Kernel:                 armv7l
                        Userland:               armhf
                        Timezone:               Europe/Berlin (CET, +0100)
                        User-ID:                1000
                        X-Server:               false
                        Boot Target:            graphical.target
                        
                        Pending OS-Updates:     0
                        Pending iob updates:    21
                        
                        Nodejs-Installation:    /usr/bin/nodejs         v18.19.0
                                                /usr/bin/node           v18.19.0
                                                /usr/bin/npm            10.2.3
                                                /usr/bin/npx            10.2.3
                                                /usr/bin/corepack       0.22.0
                        
                        Recommended versions are nodejs  and npm
                        Your nodejs installation is correct
                        
                        MEMORY:
                                       total        used        free      shared  buff/cache   available
                        Mem:            1.9G        446M        645M        0.0K        780M        1.3G
                        Swap:            99M          0B         99M
                        Total:          2.0G        446M        745M
                        
                        Active iob-Instances:   8
                        Active repo: default
                        
                        ioBroker Core:          js-controller           3.1.6
                                                admin                   4.2.1
                        
                        ioBroker Status:        iobroker is running on this host.
                        
                        At least one iobroker host is running.
                        
                        Objects type: file
                        States  type: file
                        
                        Status admin and web instance:
                          system.adapter.admin.0                 : admin                 - disabled, port: 8081, bind: 0.0.0.0, run as: admin
                        + system.adapter.admin.1                 : admin                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                          system.adapter.web.0                   : web                   - disabled, port: 8082, bind: 0.0.0.0, run as: admin
                        
                        Objects:                1968
                        States:                 2764
                        
                        Size of iob-Database:
                        
                        5.5M    /opt/iobroker/iobroker-data/objects.json.bak
                        5.5M    /opt/iobroker/iobroker-data/objects.json
                        700K    /opt/iobroker/iobroker-data/states.json.bak
                        700K    /opt/iobroker/iobroker-data/states.json
                        
                        
                        
                        =================== END OF SUMMARY ====================
                        

                        === Mark text until here for copying ===

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

                          @sonnenfreund

                          Generell hast du es nicht so mit Updates, oder?

                          Pending iob updates:    21
                          

                          Ist da überhaupt noch irgendwas auf einem aktuellen Stand?

                          cd /opt/iobroker
                          sudo -H -u iobroker npm install iobroker.js-controller
                          iob update
                          iob upgrade
                          
                          S 1 Reply Last reply Reply Quote 0
                          • foxriver76
                            foxriver76 Developer @sonnenfreund last edited by foxriver76

                            @sonnenfreund hui ich würde erst mal versuchen auf eine 4.0.24 zu gehen zb bzw war da glaube noch ein Release dazwischen

                            1 Reply Last reply Reply Quote 0
                            • S
                              sonnenfreund @Thomas Braun last edited by

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

                              @sonnenfreund

                              Generell hast du es nicht so mit Updates, oder?

                              sei doch nicht so streng 👮

                              cd /opt/iobroker
                              sudo -H -u iobroker npm install iobroker.js-controller
                              

                              hab ich grad gemacht und komme folgende Meldungen:

                              pi@raspberrypi4-iob:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
                              npm ERR! code 1
                              npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
                              npm ERR! command failed
                              npm ERR! command sh -c node iobroker.js setup first
                              npm ERR! Unable to increase LUA script timeout: Error CONFIG-UNSUPPORTED for ["SET","lua-time-limit","10000"]
                              npm ERR!  Unable to enable Expiry Keyspace events from Redis Server: Error CONFIG-UNSUPPORTED for ["SET","notify-keyspace-events","Exe"]
                              npm ERR! /opt/iobroker/node_modules/standard-as-callback/built/index.js:6
                              npm ERR!         throw e;
                              npm ERR!         ^
                              npm ERR!
                              npm ERR! ReplyError: Error scan NOT SUPPORTED
                              npm ERR!     at parseError (/opt/iobroker/node_modules/redis-parser/lib/parser.js:179:12)
                              npm ERR!     at parseType (/opt/iobroker/node_modules/redis-parser/lib/parser.js:302:14)
                              npm ERR! Emitted 'error' event on ScanStream instance at:
                              npm ERR!     at /opt/iobroker/node_modules/ioredis/built/ScanStream.js:38:22
                              npm ERR!     at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:12:23)
                              npm ERR!     at /opt/iobroker/node_modules/standard-as-callback/built/index.js:33:51
                              npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
                              npm ERR!   command: {
                              npm ERR!     name: 'scan',
                              npm ERR!     args: [ '0', 'MATCH', 'cfg.o.system.host.*', 'COUNT', '250' ]
                              npm ERR!   }
                              npm ERR! }
                              npm ERR!
                              npm ERR! Node.js v18.19.0
                              
                              npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-12-07T20_09_35_513Z-debug-0.log
                              pi@raspberrypi4-iob:/opt/iobroker $
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @sonnenfreund last edited by

                                @sonnenfreund

                                Dann versuch einen 4er-js-controller zu installieren.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  sonnenfreund @Thomas Braun last edited by

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

                                  @sonnenfreund

                                  Dann versuch einen 4er-js-controller zu installieren.

                                  Nach
                                  iobroker update
                                  iobroker fix

                                  gleiches Problem bei iobroker upgrade self:

                                  pi@raspberrypi4-iob:/home $ iobroker upgrade self
                                  Update js-controller from @3.1.6 to @5.0.16
                                  NPM version: 10.2.3
                                  npm install iobroker.js-controller@5.0.16 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                                   Objects 127.0.0.1:59744 Error from InMemDB: Error: CONFIG-UNSUPPORTED for ["SET","lua-time-limit","10000"]
                                   States 127.0.0.1:37004 Error from InMemDB: Error: CONFIG-UNSUPPORTED for ["SET","notify-keyspace-events","Exe"]
                                   Objects 127.0.0.1:59744 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
                                   States 127.0.0.1:37004 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"]
                                   Objects 127.0.0.1:59744 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
                                   Objects 127.0.0.1:59744 Error from InMemDB: Error: scan NOT SUPPORTED
                                  npm ERR! code 1
                                  npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
                                  npm ERR! command failed
                                  npm ERR! command sh -c node iobroker.js setup first
                                  npm ERR! Unable to increase LUA script timeout: Error CONFIG-UNSUPPORTED for ["SET","lua-time-limit","10000"]
                                  npm ERR!  Unable to enable Expiry Keyspace events from Redis Server: Error CONFIG-UNSUPPORTED for ["SET","notify-keyspace-events","Exe"]
                                  npm ERR! /opt/iobroker/node_modules/standard-as-callback/built/index.js:6
                                  npm ERR!         throw e;
                                  npm ERR!         ^
                                  npm ERR!
                                  npm ERR! ReplyError: Error scan NOT SUPPORTED
                                  npm ERR!     at parseError (/opt/iobroker/node_modules/redis-parser/lib/parser.js:179:12)
                                  npm ERR!     at parseType (/opt/iobroker/node_modules/redis-parser/lib/parser.js:302:14)
                                  npm ERR! Emitted 'error' event on ScanStream instance at:
                                  npm ERR!     at /opt/iobroker/node_modules/ioredis/built/ScanStream.js:38:22
                                  npm ERR!     at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:12:23)
                                  npm ERR!     at /opt/iobroker/node_modules/standard-as-callback/built/index.js:33:51
                                  npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
                                  npm ERR!   command: {
                                  npm ERR!     name: 'scan',
                                  npm ERR!     args: [ '0', 'MATCH', 'cfg.o.system.host.*', 'COUNT', '250' ]
                                  npm ERR!   }
                                  npm ERR! }
                                  npm ERR!
                                  npm ERR! Node.js v18.19.0
                                  
                                  npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-12-07T20_23_32_051Z-debug-0.log
                                  Starting node restart.js
                                  pi@raspberrypi4-iob:/home $
                                  
                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    Diamand2k22 @sonnenfreund last edited by

                                    kann mir jemand sagen, was das zum Teufel ist?

                                    c1c31dcb-0f81-48bd-9a1b-9e2b11a041f2-image.png

                                    ich habe den Fehler seit dem Update auf JS-Controller 5.0.17

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

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

                                      kann mir jemand sagen, was das zum Teufel ist?

                                      Ein Screenshot, den man nur umständlich lesen kann.
                                      Deswegen Texte aus dem Log immer als Text in CodeTags eingebettet hier rein

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Diamand2k22 @Thomas Braun last edited by

                                        @thomas-braun

                                        ok mach dann ich in Zukunft so!

                                        
                                        javascript.0
                                        2023-12-08 14:46:00.157	error	Error: read ECONNRESET at Function.AxiosError.from (/opt/iobroker/node_modules/iobroker.javascript/node_modules/axios/lib/core/AxiosError.js:89:14) at RedirectableRequest.handleRequestError (/opt/iobroker/node_modules/iobroker.javascript/node_modules/axios/lib/adapters/http.js:606:25) at RedirectableRequest.emit (node:events:517:28) at RedirectableRequest.emit (node:domain:489:12) at ClientRequest.eventHandlers.<computed> (/opt/iobroker/node_modules/follow-redirects/index.js:14:24) at ClientRequest.emit (node:events:529:35) at ClientRequest.emit (node:domain:489:12) at TLSSocket.socketErrorListener (node:_http_client:501:9) at TLSSocket.emit (node:events:517:28) at TLSSocket.emit (node:domain:489:12) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at processTicksAndRejections (node:internal/process/task_queues:82:21)
                                        
                                        javascript.0
                                        2023-12-08 14:46:00.157	error	Error: read ECONNRESET
                                        
                                        javascript.0
                                        2023-12-08 14:46:00.156	error	An error happened which is most likely from one of your scripts, but the originating script could not be detected.
                                        
                                        Thomas Braun Gaspode 2 Replies Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Diamand2k22 last edited by

                                          @diamand2k22

                                          Die Meldung kommt vom javascript, nicht vom js-controller. Mach einen eigenen Thread auf. Und schau dir zuvor deine Skripte an, da wird es vermutlich einen Fehler geben.

                                          1 Reply Last reply Reply Quote 0
                                          • Gaspode
                                            Gaspode @Diamand2k22 last edited by

                                            @diamand2k22
                                            Liegt wie mein Vorredner schon schrub, mit hoher Wahrscheinlichkeit an einem deiner Scripte. Such mal nach einem, das alle 10 Minuten irgendeinen Zugriff per Axios macht.

                                            Wenn der Fehler tatsächlich erst seit Controller Update besteht, lehne mich mal weit aus dem Fenster und tippe, dass da gleich mehrere Aufrufe "gleichzeitig" gemacht werden. ECONNRESET heißt, dass eine bestehende Verbindung abgebrochen wurde.

                                            Das hatte ich seinerzeit auch mal nach einem Controller Update (ich glaube auf 3). Da prügelte ich in einem Script bis zu 50 Requests auf einmal raus. Mit dem Vorgänger Controller klappte das, mit der Folgeversion kam es zu ähnlichen Fehlern. Warum der Controller darauf Einfluss haben kann, entzieht sich allerdings meiner Kenntnis.

                                            Solltest du weitere Unterstützung brauchen, wäre ein eigener Thread dafür sicher hilfreich.

                                            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

                                            925
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller stable upgrade
                                            82
                                            509
                                            98362
                                            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