Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 2.2 jetzt für Alle 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 2.2 jetzt für Alle im Stable

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

      @apollon77

      ich wollte gerade meinen slave updaten, aber ich bekomme folgende Fehlermeldung. Muss ich vorher node 10 installieren?

      root@iobroker-slave:~# iobroker upgrade self
      Update js-controller from @1.4.2 to @2.2.8
      NPM version: 6.10.2
      npm install iobroker.js-controller@2.2.8 --unsafe-perm --production --save --pre                                                                                                                                                             fix "/opt/iobroker" (System call)
      npm ERR! code ENOTSUP
      npm ERR! notsup Unsupported engine for semver@7.1.2: wanted: {"node":">=10"} (current: {"node":"8.16.0","npm":"6.10.2"})
      npm ERR! notsup Not compatible with your version of node/npm: semver@7.1.2
      npm ERR! notsup Not compatible with your version of node/npm: semver@7.1.2
      npm ERR! notsup Required: {"node":">=10"}
      npm ERR! notsup Actual:   {"npm":"6.10.2","node":"8.16.0"}
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/iobroker/.npm/_logs/2020-02-09T19_25_45_387Z-debug.log
      Host "iobroker-slave" (linux) updated
      Execute: chmod -R 777 /opt/iobroker
      Chmod finished. Restart controller
      Starting node restart.js
      root@iobroker-slave:~#
      
      
      apollon77 1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 @saeft_2003 last edited by

        @saeft_2003 das sollte nicht passieren scheinbar hat eine dependency was kaputt gemacht

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

          @apollon77

          Und jetzt? Die Meldung war von meinem slave, den ich aber nicht mehr weiter nutzen will.

          Muss ich auf meinem master vor dem controller update node 10 installieren?

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

            @saeft_2003 so gefunden ... Denver hat in einem Minor Update die nodejs Anforderung erhöht. Krieg ne Macke. ... https://github.com/npm/node-semver/issues/312 ...

            Wir überlegen mal. Am besten nodejs Updaten.

            mobilutz created this issue in npm/node-semver

            closed [QUESTION] semver >= 7.1.0 forces node >= 10 #312

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

              @apollon77

              OK danke dann muss ich wohl da erstmal rann...

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

                Die echte Ursache ist was anderes. Der neue ioBroker-Installer aktiviert striktere Checks bei npm.

                Du kannst ggf schauen und beim user iobroker in .npmrc das "strict: true" auf "false" setzen

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

                  @apollon77

                  Zu spät... 😬 Node 10 und controller 2.2.8 ist jetzt schon drauf.

                  Jetzt muss ich noch ein paar updates machen und schauen ob alles läuft, der fritzbox adapter hat schon rumgezickt. Ist da etwas bekannt?

                  Es funktioniert soweit alles auf den ersten Blick, bis auf den tr-064 Adapter. Folgendes steht im log, Adapter bleibt natürlich rot...

                  host.iobroker	2020-02-09 21:59:51.699	info	Restart adapter system.adapter.tr-064.0 because enabled
                  host.iobroker	2020-02-09 21:59:51.699	error	instance system.adapter.tr-064.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                  host.iobroker	2020-02-09 21:59:51.698	error	Caught by controller[0]: at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
                  host.iobroker	2020-02-09 21:59:51.698	error	Caught by controller[0]: at startup (internal/bootstrap/node.js:283:19)
                  host.iobroker	2020-02-09 21:59:51.698	error	Caught by controller[0]: at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
                  host.iobroker	2020-02-09 21:59:51.698	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)
                  host.iobroker	2020-02-09 21:59:51.698	error	Caught by controller[0]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
                  host.iobroker	2020-02-09 21:59:51.697	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:653:32)
                  host.iobroker	2020-02-09 21:59:51.697	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                  host.iobroker	2020-02-09 21:59:51.697	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:778:30)
                  host.iobroker	2020-02-09 21:59:51.696	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.tr-064/tr-064.js:16:20)
                  host.iobroker	2020-02-09 21:59:51.696	error	Caught by controller[0]: at Object.exports.Adapter (/opt/iobroker/node_modules/soef/soef.js:1383:23)
                  host.iobroker	2020-02-09 21:59:51.696	error	Caught by controller[0]: TypeError: fns.adapter is not a function
                  host.iobroker	2020-02-09 21:59:51.696	error	Caught by controller[0]: ^
                  host.iobroker	2020-02-09 21:59:51.695	error	Caught by controller[0]: fns.adapter = fns.adapter(options);
                  host.iobroker	2020-02-09 21:59:51.694	error	Caught by controller[0]: /opt/iobroker/node_modules/soef/soef.js:1383
                  host.iobroker	2020-02-09 21:59:50.670	info	instance system.adapter.tr-064.0 started with pid 10424
                  host.iobroker	2020-02-09 21:59:50.631	info	"system.adapter.tr-064.0" enabled
                  

                  Was ich sehr komisch finde ist das die Version 0.4.14 (Beta) verfügbar ist, ich aber die 0.4.18 installiert habe?!

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

                    @saeft_2003 tr-064 sind wir inzwischen bei 3.x ... update mal

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

                      @apollon77

                      hab ich gerade über github auf 3.2.0. Jetzt hab ich den Fehler...

                      host.iobroker	2020-02-09 22:20:36.175	info	Restart adapter system.adapter.tr-064.0 because enabled
                      host.iobroker	2020-02-09 22:20:36.175	info	instance system.adapter.tr-064.0 terminated with code 0 (NO_ERROR)
                      host.iobroker	2020-02-09 22:20:36.174	error	Caught by controller[0]: at process._tickCallback (internal/process/next_tick.js:68:7)
                      host.iobroker	2020-02-09 22:20:36.174	error	Caught by controller[0]: at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
                      host.iobroker	2020-02-09 22:20:36.174	error	Caught by controller[0]: at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
                      host.iobroker	2020-02-09 22:20:36.173	error	Caught by controller[0]: at (anonymous function).(anonymous function) (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:71697)
                      host.iobroker	2020-02-09 22:20:36.173	error	Caught by controller[0]: at objects.getObject (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2491:65)
                      host.iobroker	2020-02-09 22:20:36.173	error	Caught by controller[0]: at adapter.getForeignObject (/opt/iobroker/node_modules/iobroker.tr-064/main.js:115:13)
                      host.iobroker	2020-02-09 22:20:36.172	error	Caught by controller[0]: at main (/opt/iobroker/node_modules/iobroker.tr-064/main.js:1119:49)
                      host.iobroker	2020-02-09 22:20:36.172	error	Caught by controller[0]: ReferenceError: secret is not defined
                      tr-064.0	2020-02-09 22:20:35.626	info	(11818) Terminated (NO_ERROR): Without reason
                      tr-064.0	2020-02-09 22:20:35.624	info	(11818) terminating
                      tr-064.0	2020-02-09 22:20:35.564	error	at process._tickCallback (internal/process/next_tick.js:68:7)
                      tr-064.0	2020-02-09 22:20:35.564	error	at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
                      tr-064.0	2020-02-09 22:20:35.564	error	at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
                      tr-064.0	2020-02-09 22:20:35.564	error	at (anonymous function).(anonymous function) (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:17:71697)
                      tr-064.0	2020-02-09 22:20:35.564	error	at objects.getObject (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2491:65)
                      tr-064.0	2020-02-09 22:20:35.564	error	at adapter.getForeignObject (/opt/iobroker/node_modules/iobroker.tr-064/main.js:115:13)
                      tr-064.0	2020-02-09 22:20:35.564	error	at main (/opt/iobroker/node_modules/iobroker.tr-064/main.js:1119:49)
                      tr-064.0	2020-02-09 22:20:35.564	error	(11818) ReferenceError: secret is not defined
                      tr-064.0	2020-02-09 22:20:35.562	error	(11818) uncaught exception: secret is not defined
                      tr-064.0	2020-02-09 22:20:35.431	info	(11818) starting. Version 3.2.0 in /opt/iobroker/node_modules/iobroker.tr-064, node: v10.19.0
                      host.iobroker	2020-02-09 22:20:32.564	info	instance system.adapter.tr-064.0 started with pid 11818
                      host.iobroker	2020-02-09 22:20:32.526	info	"system.adapter.tr-064.0" enabled
                      
                      apollon77 1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @saeft_2003 last edited by

                        @saeft_2003 Ich hab ja auch nicht gesagt du sollst auf die GitHub Version updaten ... Ja ok im Stable ist die 3.xer noch nicht ... hm ... stell mal auf "Latest" um und nimm die 3.1.4 von da

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

                          @apollon77

                          Ok mach ich

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

                            @apollon77

                            Noch was ich würde gerne javascript updaten auf 4.3.4. Geht aber nicht da falsche version von admin. Installiert ist aber 3.7.8

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

                              @saeft_2003 Hm ... JS 4.3.4 geht mit Admin 3.7.x ... das sollte kein problem sein ... nur für js 4.4 brauchst Du Admin 4..0.1

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

                                @apollon77

                                ist das jetzt ein problem für mich? weil im protokoll steht das erst die 4.3.7 den js-controller 2.2.x unterstüzt.

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

                                  @saeft_2003 Ok, nochmal ... was hast DU installiert und welche meldung kommt wo?

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

                                    @apollon77

                                    ich kann js nicht updaten deswegen...

                                    js.jpg

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

                                      @saeft_2003 Komisch. Das sollte an sich ok sein ... Starte mal neu ... den ganzen iobroker

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

                                        @apollon77

                                        habe grad eh neugestartet nach dem downgrad von tr-064 auf 3.1.4. der läuft jetzt aber js kann ich immer noch nicht aktualisieren 😞

                                        dslraser 1 Reply Last reply Reply Quote 0
                                        • dslraser
                                          dslraser Forum Testing Most Active @saeft_2003 last edited by dslraser

                                          @saeft_2003
                                          @apollon77
                                          habe ich heute schon mal gelesen (mit Lösung über console und npm)
                                          @apollon77
                                          Sollte man das nicht ohne sudo machen ?
                                          also nur

                                           npm install iobroker.javascript@4.3.4
                                          

                                          https://forum.iobroker.net/topic/29893/js-script-engine-update-nicht-möglich-trotz-admin-3-7-8

                                          S 1 Reply Last reply Reply Quote 1
                                          • S
                                            saeft_2003 Most Active @dslraser last edited by

                                            @dslraser @apollon77

                                            Danke für die Info! Ich habs über die Konsole gemacht und hat funktioniert. Trotzdem müsste jemand von euch mal klären warum das so ist...

                                            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

                                            917
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller
                                            28
                                            142
                                            15703
                                            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