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

      @apollon77 Danke für die Antwort. Da bin ich beruhigt

      1 Reply Last reply Reply Quote 0
      • J
        Josh @apollon77 last edited by

        @apollon77 Oh, dann habe ich das jetzt unnötiger Weise gemacht. Habe nur die States in Redis. Soll ich dann lieber wieder deaktivieren?

        iob object deactivateSets
        

        Oder hat das einfach keine Auswirkung und ich sollte/kann es so lassen?

        apollon77 1 Reply Last reply Reply Quote 0
        • apollon77
          apollon77 @Josh last edited by

          @josh hat keine Auswirkung. Musst nichts tun

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

            Hallo an alle ... mit hoffentlich (laut auf Holz Klopf) letzten Fixes kommt jetzt die 4.0.21 vom js-controller ins Stable-Repository

            crunchip Fabio 2 Replies Last reply Reply Quote 1
            • crunchip
              crunchip Forum Testing Most Active @apollon77 last edited by

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

              4.0.21

              is aber ne krumme Zahl, da geht bestimmt noch was😜

              Chaot 1 Reply Last reply Reply Quote 1
              • Chaot
                Chaot @crunchip last edited by

                @crunchip So rein optisch wäre 25 recht hübsch. Meinst du das? 😀

                apollon77 1 Reply Last reply Reply Quote 1
                • Fabio
                  Fabio @apollon77 last edited by

                  @apollon77 vielen Dank das Update auf 4.0.21 lief fehlerfrei durch.👍 😊 ☺

                  1 Reply Last reply Reply Quote 1
                  • apollon77
                    apollon77 @Chaot last edited by

                    @chaot @crunchip nee lasst mal. Auch gute Dinge müssen mal ein Ende finden ;-))

                    Ben1983 O 2 Replies Last reply Reply Quote 2
                    • O
                      oFbEQnpoLKKl6mbY5e13 @apollon77 last edited by

                      @apollon77

                      Nach Upgrade von .19 auf .21 (ohne Änderung an Node!):

                      2022-03-14 10:16:08.191  - error: ham.0 (24984) uncaught exception: Cannot find module './homekit.js'
                      Require stack:
                      - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/lib/plug.js
                      - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/lib/platform.js
                      - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/index.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/plugin.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/pluginManager.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js
                      - /opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js
                      - /opt/iobroker/node_modules/iobroker.ham/main.js
                      2022-03-14 10:16:08.197  - error: ham.0 (24984) Error: Cannot find module './homekit.js'
                      Require stack:
                      - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/lib/plug.js
                      - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/lib/platform.js
                      - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/index.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/plugin.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/pluginManager.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js
                      - /opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js
                      - /opt/iobroker/node_modules/iobroker.ham/main.js
                         at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
                         at Function.Module._load (internal/modules/cjs/loader.js:746:27)
                         at Function.Module._load (/opt/iobroker/node_modules/mock-require/index.js:30:22)
                         at Module.require (internal/modules/cjs/loader.js:974:19)
                         at require (internal/modules/cjs/helpers.js:101:18)
                         at new PlugAccessory (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/lib/plug.js:37:28)
                         at Hs100Platform.addAccessory (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/lib/platform.js:113:27)
                         at Client.<anonymous> (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/lib/platform.js:56:12)
                         at Client.emit (events.js:400:28)
                         at Client.emit (/opt/iobroker/node_modules/iobroker.ham/node_modules/hs100-api/lib/client.js:348:18)
                      2022-03-14 10:16:08.197  - error: ham.0 (24984) Exception-Code: MODULE_NOT_FOUND: Cannot find module './homekit.js'
                      Require stack:
                      - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/lib/plug.js
                      - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/lib/platform.js
                      - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-hs100/index.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/plugin.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/pluginManager.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js
                      - /opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js
                      - /opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js
                      - /opt/iobroker/node_modules/iobroker.ham/main.js
                      2022-03-14 10:16:11.273  - error: host.iobroker Caught by controller[1]: [14.3.2022, 10:16:07] [eWeLink] ***** Disabling plugin. *****
                      2022-03-14 10:16:11.274  - error: host.iobroker Caught by controller[2]: [14.3.2022, 10:16:07] [eWeLink] ***** Cannot find module './connection/http'
                      2022-03-14 10:16:11.274  - error: host.iobroker Caught by controller[2]: Require stack:
                      2022-03-14 10:16:11.275  - error: host.iobroker Caught by controller[2]: - /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-ewelink/lib/index.js
                      2022-03-14 10:16:11.275  - error: host.iobroker Caught by controller[2]: - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/plugin.js
                      2022-03-14 10:16:11.276  - error: host.iobroker Caught by controller[2]: - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/pluginManager.js
                      2022-03-14 10:16:11.277  - error: host.iobroker Caught by controller[2]: - /opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js
                      2022-03-14 10:16:11.277  - error: host.iobroker Caught by controller[2]: - /opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js
                      2022-03-14 10:16:11.278  - error: host.iobroker Caught by controller[2]: - /opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js
                      2022-03-14 10:16:11.278  - error: host.iobroker Caught by controller[2]: - /opt/iobroker/node_modules/iobroker.ham/main.jsRequire stack:. *****
                      2022-03-14 10:16:11.279  - error: host.iobroker instance system.adapter.ham.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                      2022-03-14 10:16:11.279  - info: host.iobroker Adapter system.adapter.ham.0 needs rebuild and will be restarted afterwards.
                      2022-03-14 10:16:11.282  - info: host.iobroker system.adapter.ham.0 will be rebuilt
                      2022-03-14 10:16:11.283  - warn: host.iobroker adapter "ham" seems to be installed for a different version of Node.js. Trying to rebuild it... 1 attempt
                      2022-03-14 10:16:11.284  - info: host.iobroker iobroker rebuild
                      2022-03-14 10:16:12.488  - info: host.iobroker iobroker npm-rebuild: Rebuilding native modules ...
                      2022-03-14 10:16:31.542  - info: host.iobroker iobroker npm-rebuild: 
                      2022-03-14 10:16:31.543  - info: host.iobroker iobroker npm-rebuild: > ffmpeg-for-homebridge@0.0.9 install /opt/iobroker/node_modules/ffmpeg-for-homebridge> node install.js
                      2022-03-14 10:16:33.231  - info: host.iobroker iobroker npm-rebuild: ffmpeg has been downloaded to /opt/iobroker/node_modules/ffmpeg-for-homebridge/ffmpeg
                      2022-03-14 10:16:33.237  - info: host.iobroker iobroker npm-rebuild: Thank you for using https://github.com/homebridge/ffmpeg-for-homebridge
                      2022-03-14 10:16:33.239  - info: host.iobroker iobroker npm-rebuild: 
                      2022-03-14 10:16:33.871  - info: host.iobroker iobroker npm-rebuild: 
                      2022-03-14 10:16:33.874  - info: host.iobroker iobroker npm-rebuild: > core-js@2.6.12 postinstall /opt/iobroker/node_modules/core-js> node -e "try{require('./postinstall')}catch(e){}"
                      2022-03-14 10:16:35.485  - info: host.iobroker iobroker npm-rebuild: > iobroker.javascript@5.2.21 postinstall /opt/iobroker/node_modules/iobroker.javascript> node ./install/installTypings.js
                      2022-03-14 10:16:35.770  - info: host.iobroker iobroker npm-rebuild: Installing NodeJS typings...
                      2022-03-14 10:16:39.259  - info: host.iobroker iobroker npm-rebuild: latest @types: 17, installed node: 14
                      2022-03-14 10:16:46.189  - info: host.iobroker iobroker npm-rebuild: > iobroker.js-controller@4.0.21 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                      2022-03-14 10:16:46.191  - info: host.iobroker iobroker npm-rebuild: > node lib/preinstallCheck.js
                      2022-03-14 10:16:46.943  - info: host.iobroker iobroker npm-rebuild: NPM version: 6.14.16
                      2022-03-14 10:16:46.991  - info: host.iobroker iobroker npm-rebuild: 
                      2022-03-14 10:16:46.992  - info: host.iobroker iobroker npm-rebuild: > iobroker.js-controller@4.0.21 install /opt/iobroker/node_modules/iobroker.js-controller> node iobroker.js setup first
                      2022-03-14 10:16:56.941  - info: host.iobroker iobroker npm-rebuild: Successfully migrated 23520 objects to Redis Sets
                      2022-03-14 10:16:57.386  - info: host.iobroker iobroker npm-rebuild: object _design/system updated
                      2022-03-14 10:16:58.225  - info: host.iobroker iobroker npm-rebuild: {
                      2022-03-14 10:16:58.228  - info: host.iobroker iobroker npm-rebuild:   "defaultPrivate": "-----BEGIN RSA PRIVATE KEY-----\r
                      2022-03-14 10:16:58.235  - info: host.iobroker iobroker npm-rebuild: The object "system.certificates" was updated successfully.Update certificate defaultPublic
                      2022-03-14 10:16:58.239  - info: host.iobroker iobroker npm-rebuild: The object "system.certificates" was updated successfully.
                      2022-03-14 10:16:59.630  - info: host.iobroker iobroker npm-rebuild: 
                      2022-03-14 10:16:59.631  - info: host.iobroker iobroker npm-rebuild: > esbuild@0.11.23 postinstall /opt/iobroker/node_modules/esbuild> node install.js
                      2022-03-14 10:17:02.675  - info: host.iobroker iobroker npm-rebuild: > iobroker.vis@1.4.12 install /opt/iobroker/node_modules/iobroker.vis> node main.js --install
                      

                      Ist ein gekürztes Log, weil das Forum nicht mehr zulässt.

                      apollon77 1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @oFbEQnpoLKKl6mbY5e13 last edited by

                        @ofbeqnpolkkl6mby5e13 SD Karten System? Wenn ja schau mal nach der SD Karte. Das plötzlich ein File fehlt ist strange.

                        ggf mal das homebridge-hs100 Plugin entfernen und neu beim Adapter einfügen das es neu installiert wird. Kann an sich mit dem Update nichts zu tun haben.
                        Gleiches dann bei homebridge-ewelink ... das scheint es ja irgendwie auch getroffen zu haben. Und irgendeine ausgabe scheint das system denken zu lassen das ein rebuild nötig ist. Schaden am ende nicht 🙂

                        O 1 Reply Last reply Reply Quote 0
                        • O
                          oFbEQnpoLKKl6mbY5e13 @apollon77 last edited by

                          @apollon77

                          Container auf NAS (RAID5).

                          Es läuft ohne mein Zutun alles wieder, nachdem alle Rebuilds durchgelaufen sind. Aber da wurden unglaublich viele Abhängigkeiten neu gebaut...

                          apollon77 1 Reply Last reply Reply Quote 0
                          • apollon77
                            apollon77 @oFbEQnpoLKKl6mbY5e13 last edited by

                            @ofbeqnpolkkl6mby5e13 Strange ... aber Selbstheilung ist doch cool gg

                            1 Reply Last reply Reply Quote 1
                            • Basti97
                              Basti97 Most Active last edited by Basti97

                              Auf meinem Master ging die Installation Fehlerfrei aber auf meinem Slave bekomme ich diese Meldung. Und der JS wird nicht von 3.3.22 auf 4.0.21 aktualisiert.

                              pi@Media04:~ $ iob upgrade self
                              Update js-controller from @3.3.22 to @4.0.21
                              NPM version: 6.14.16
                              npm install iobroker.js-controller@4.0.21 --loglevel error --unsafe-perm --prefi                                          x "/opt/iobroker" (System call)
                              npm ERR! Unexpected token  in JSON at position 966657 while parsing near '...6Gg                                          iGOvl7CY/KNh8rxS�'�&�&�'�&�&�'�...'
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     /home/iobroker/.npm/_logs/2022-03-14T14_06_53_816Z-debug.log
                              
                              

                              Ich probiere mal mit den Befehl npm install iobroker.js-controller@4.0.21 --production

                              apollon77 1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 @Basti97 last edited by

                                @basti97 Das sieht nah einesm FileSystem Error aus ... mal npm cache clean --force bzw sudo -u iobroker -H npm cache clean --force versuchen. Und dann nochmals

                                Basti97 2 Replies Last reply Reply Quote 0
                                • Basti97
                                  Basti97 Most Active @apollon77 last edited by

                                  @apollon77 ok ich probiere es. Danke

                                  1 Reply Last reply Reply Quote 1
                                  • Basti97
                                    Basti97 Most Active @apollon77 last edited by Basti97

                                    @apollon77
                                    das kommt raus

                                    pi@Media04:~ $ npm cache clean --force
                                    npm WARN using --force I sure hope you know what you are doing.
                                    pi@Media04:~ $ sudo -u iobroker -H npm cache clean --force
                                    npm WARN using --force I sure hope you know what you are doing.
                                    pi@Media04:~ $
                                    
                                    

                                    update

                                    pi@Media04:~ $ sudo -u iobroker -H npm cache clean --force
                                    npm WARN using --force I sure hope you know what you are doing.
                                    
                                    
                                       ╭───────────────────────────────────────────────────────────────╮
                                       │                                                               │
                                       │      New major version of npm available! 6.14.16 → 8.5.4      │
                                       │   Changelog: https://github.com/npm/cli/releases/tag/v8.5.4   │
                                       │               Run npm install -g npm to update!               │
                                       │                                                               │
                                       ╰───────────────────────────────────────────────────────────────╯
                                    
                                    pi@Media04:~ $ npm install -g npm
                                    
                                    
                                    apollon77 1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @Basti97 last edited by

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

                                      pi@Media04:~ $ npm install -g npm

                                      Wer hat gesagt Du sollst das tun? Naja egal ...

                                      Jetzt neu versuchen

                                      Basti97 1 Reply Last reply Reply Quote 0
                                      • Basti97
                                        Basti97 Most Active @apollon77 last edited by

                                        @apollon77 na das habe ich nicht gemacht. Die Meldung kam beim zweiten mal Ausführen von.

                                        sudo -u iobroker -H npm cache clean --force
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • Basti97
                                          Basti97 Most Active last edited by

                                          Funktoniert trotzdem irgendwie nicht

                                          pi@Media04:~ $ iob update
                                          Used repository: stable
                                          hash changed or no sources cached => force download of new sources
                                          update done
                                          Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.backitup/io-package.json: /opt/iobroker/node_modules/iobroker.backitup/io-package.json: Unexpected token � in JSON at position 0
                                          Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.backitup/io-package.json: /opt/iobroker/node_modules/iobroker.backitup/io-package.json: Unexpected token � in JSON at position 0
                                          Adapter    "admin"         : 5.3.1    , installed 5.2.3 [Updateable]
                                          Adapter    "discovery"     : 2.7.5    , installed 2.7.5
                                          Adapter    "ds18b20"       : 1.6.0    , installed 1.6.0
                                          Adapter    "javascript"    : 5.2.21   , installed 5.3.1
                                          Controller "js-controller" : 4.0.21   , installed 3.3.22 [Updateable]
                                          Adapter    "radar2"        : 2.0.3    , installed 2.0.3
                                          Adapter    "rpi2"          : 1.3.1    , installed 1.3.1
                                          pi@Media04:~ $ iob upgrade self
                                          Update js-controller from @3.3.22 to @4.0.21
                                          NPM version: 6.14.16
                                          npm install iobroker.js-controller@4.0.21 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                                          npm ERR! Unexpected token  in JSON at position 966657 while parsing near '...6GgiGOvl7CY/KNh8rxS�'�&�&�'�&�&�'�...'
                                          
                                          npm ERR! A complete log of this run can be found in:
                                          npm ERR!     /home/iobroker/.npm/_logs/2022-03-14T15_40_52_691Z-debug.log
                                          pi@Media04:~ $
                                          
                                          
                                          apollon77 1 Reply Last reply Reply Quote 0
                                          • apollon77
                                            apollon77 @Basti97 last edited by

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

                                            /home/iobroker/.npm/_logs/2022-03-14T15_40_52_691Z-debug.log

                                            Dann schau mal da welches File es betrifft ... irgendwas hat es dir das zersemmelt ... Wenn SD Kartenbasiert dann stirbt die Karte gerade

                                            Basti97 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

                                            392
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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