Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 3.0/3.1 jetzt im Latest!

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    js-controller 3.0/3.1 jetzt im Latest!

    This topic has been deleted. Only users with topic management privileges can see it.
    • UweRLP
      UweRLP @apollon77 last edited by

      @apollon77 Danke für deine Antwort.
      Welches Vorgehen empfiehlst du? Einfach ein

      iobroder add javascript
      

      oder erst löschen

      iobroker del javascript
      iobroker add javascript
      

      Bleiben bei dem Vorgehen die Objekte in javascript.0 und javascript.1 erhalten oder werden die mit gelöscht?

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

        @UweRLP Am besten wäre es

        • Ins Verzeichnis des adapter swechseln ... also vom ioBroker verzeichnis aus in node_modules/iobroker.javascript wechseln
        • "npm install --production"

        gehts danach

        UweRLP 1 Reply Last reply Reply Quote 0
        • JackDaniel
          JackDaniel last edited by JackDaniel

          bei mir das selbe nach dem js-controller update mit dem javascript adapter aber unter linux
          das "npm install --production" hat bei mir keine verbesserung gebracht

          host.raspberrypi	2020-06-08 19:28:53.785	info	Restart adapter system.adapter.javascript.0 because enabled
          host.raspberrypi	2020-06-08 19:28:53.785	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
          host.raspberrypi	2020-06-08 19:28:53.784	error	Caught by controller[0]: }
          host.raspberrypi	2020-06-08 19:28:53.784	error	Caught by controller[0]: ]
          host.raspberrypi	2020-06-08 19:28:53.784	error	Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.javascript/main.js'
          host.raspberrypi	2020-06-08 19:28:53.783	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/index.js',
          host.raspberrypi	2020-06-08 19:28:53.783	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/compiler.js',
          host.raspberrypi	2020-06-08 19:28:53.783	error	Caught by controller[0]: requireStack: [
          host.raspberrypi	2020-06-08 19:28:53.782	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
          host.raspberrypi	2020-06-08 19:28:53.782	error	Caught by controller[0]: {
          host.raspberrypi	2020-06-08 19:28:53.782	error	Caught by controller[0]: at internal/main/run_main_module.js:17:47
          host.raspberrypi	2020-06-08 19:28:53.782	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
          host.raspberrypi	2020-06-08 19:28:53.781	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14)
          host.raspberrypi	2020-06-08 19:28:53.781	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32)
          host.raspberrypi	2020-06-08 19:28:53.781	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
          host.raspberrypi	2020-06-08 19:28:53.780	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30)
          host.raspberrypi	2020-06-08 19:28:53.780	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:35:24)
          host.raspberrypi	2020-06-08 19:28:53.780	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:72:18)
          host.raspberrypi	2020-06-08 19:28:53.779	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19)
          host.raspberrypi	2020-06-08 19:28:53.779	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14)
          host.raspberrypi	2020-06-08 19:28:53.779	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32)
          host.raspberrypi	2020-06-08 19:28:53.778	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
          host.raspberrypi	2020-06-08 19:28:53.778	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30)
          host.raspberrypi	2020-06-08 19:28:53.778	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/index.js:3:18)
          host.raspberrypi	2020-06-08 19:28:53.777	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:72:18)
          host.raspberrypi	2020-06-08 19:28:53.777	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19)
          host.raspberrypi	2020-06-08 19:28:53.777	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14)
          host.raspberrypi	2020-06-08 19:28:53.776	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32)
          host.raspberrypi	2020-06-08 19:28:53.776	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
          host.raspberrypi	2020-06-08 19:28:53.776	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30)
          host.raspberrypi	2020-06-08 19:28:53.775	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/compiler.js:3:10)
          host.raspberrypi	2020-06-08 19:28:53.775	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:72:18)
          host.raspberrypi	2020-06-08 19:28:53.775	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19)
          host.raspberrypi	2020-06-08 19:28:53.774	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:842:27)
          host.raspberrypi	2020-06-08 19:28:53.773	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
          host.raspberrypi	2020-06-08 19:28:53.773	error	Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.javascript/main.js
          host.raspberrypi	2020-06-08 19:28:53.773	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/index.js
          host.raspberrypi	2020-06-08 19:28:53.772	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/compiler.js
          host.raspberrypi	2020-06-08 19:28:53.772	error	Caught by controller[0]: Require stack:
          host.raspberrypi	2020-06-08 19:28:53.771	error	Caught by controller[0]: Error: Cannot find module 'typescript'
          host.raspberrypi	2020-06-08 19:28:53.771	error	Caught by controller[0]: ^
          host.raspberrypi	2020-06-08 19:28:53.770	error	Caught by controller[0]: throw err;
          host.raspberrypi	2020-06-08 19:28:53.769	error	Caught by controller[0]: internal/modules/cjs/loader.js:969
          host.raspberrypi	2020-06-08 19:28:53.443	info	instance system.adapter.javascript.0 started with pid 6547
          host.raspberrypi	2020-06-08 19:28:53.384	info	"system.adapter.javascript.0" enabled
          

          edit:
          hab den adapter nochmal beendet und dann erneut mit:

          cd /opt/iobroker/node_modules/iobroker.javascript
          npm install --production
          

          jetzt läuft er wieder 👍

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

            @apollon77 sagte in js-controller 3.0/3.1 jetzt im Latest!:

            @UweRLP Am besten wäre es

            • Ins Verzeichnis des adapter swechseln ... also vom ioBroker verzeichnis aus in node_modules/iobroker.javascript wechseln
            • "npm install --production"

            gehts danach

            Ja, das hat bei mir geholfen. javascript läuft wieder und alle Adapter sind aktuell.
            Vielen Dank.

            Bei diesem Versuch habe ich die Adapter einzeln mit

            iobroker upgrade adaptername
            

            bei laufendem iobroker geupdatet, ohne späteres

            iobroker upload all
            

            Nach einem stoppen vom iobroker und wieder starten hatte ich dann wieder den Fehler mit dem javascript Adapter.

            Nach dem

            npm install --production
            

            im ../node_module/iobroker.javascript läuft es nun wieder.

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

              Der Fehler tritt immer wieder bei Adapterupdates auf.

              1 Reply Last reply Reply Quote 0
              • H
                hannoi last edited by

                Hatte auch gerade nach dem JS-controller Update von 3.1.4 auf 3.1.5 folgende Fehlermeldung und der Javascript Adapter hat nicht mehr gestartet:

                2020-06-11 10:30:15.045	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                2020-06-11 10:30:15.045	error	Caught by controller[0]: }
                2020-06-11 10:30:15.045	error	Caught by controller[0]: ]
                2020-06-11 10:30:15.045	error	Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.javascript/main.js'
                2020-06-11 10:30:15.045	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/index.js',
                2020-06-11 10:30:15.045	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-tsc/build/compiler.js',
                2020-06-11 10:30:15.044	error	Caught by controller[0]: requireStack: [
                2020-06-11 10:30:15.044	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
                2020-06-11 10:30:15.044	error	Caught by controller[0]: {
                2020-06-11 10:30:15.044	error	Caught by controller[0]: at internal/main/run_main_module.js:17:47
                2020-06-11 10:30:15.044	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
                2020-06-11 10:30:15.044	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14)
                2020-06-11 10:30:15.044	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32)
                2020-06-11 10:30:15.043	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
                2020-06-11 10:30:15.043	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30)
                2020-06-11 10:30:15.043	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:35:24)
                2020-06-11 10:30:15.043	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:72:18)
                2020-06-11 10:30:15.043	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19)
                2020-06-11 10:30:15.043	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14)
                2020-06-11 10:30:15.043	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32)
                2020-06-11 10:30:15.043	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
                2020-06-11 10:30:15.042	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30)
                2020-06-11 10:30:15.042	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/index.js:3:18)
                2020-06-11 10:30:15.042	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:72:18)
                2020-06-11 10:30:15.042	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19)
                2020-06-11 10:30:15.042	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14)
                2020-06-11 10:30:15.042	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32)
                2020-06-11 10:30:15.042	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
                2020-06-11 10:30:15.041	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30)
                2020-06-11 10:30:15.041	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-tsc/build/compiler.js:3:10)
                2020-06-11 10:30:15.041	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:72:18)
                2020-06-11 10:30:15.041	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19)
                2020-06-11 10:30:15.041	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:842:27)
                2020-06-11 10:30:15.041	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
                2020-06-11 10:30:15.041	error	Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.javascript/main.js
                2020-06-11 10:30:15.040	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/index.js
                2020-06-11 10:30:15.040	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-tsc/build/compiler.js
                2020-06-11 10:30:15.040	error	Caught by controller[0]: Require stack:
                2020-06-11 10:30:15.040	error	Caught by controller[0]: Error: Cannot find module 'typescript'
                2020-06-11 10:30:15.040	error	Caught by controller[0]: ^
                2020-06-11 10:30:15.040	error	Caught by controller[0]: throw err;
                2020-06-11 10:30:15.039	error	Caught by controller[0]: internal/modules/cjs/loader.js:969
                

                Nach einem "npm install typescript" im iobroker dir hat die ScriptEngine wieder funktioniert.

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

                  Hallo zusammen,

                  habe mir bereits einmal mein IOBROKER WIN SYSTEM geschrottet 😵 ....Klappt das Update nun?

                  haselchen 1 Reply Last reply Reply Quote 0
                  • haselchen
                    haselchen Most Active @FragMike last edited by haselchen

                    @FragMike

                    Unsere Forums- Glaskugel hat heute leider frei.....also wären ein paar Infos nicht schlecht.
                    Systeminfos
                    Welches Update (von wo nach wo)

                    und und und....

                    einfach mal ein wenig Input.

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

                      Hi Sorry....
                      Habe IOBROKER auf WIN 10 SYSTEM mit Atom Dualcore 4 gig RAM mit SSD
                      Sytemauslastung liegt normalerweise bei 55% wenn alle Skripte laufen.

                      Das ist aktuell :
                      Typ: js-controller
                      Titel: JS controller
                      OS: win32
                      Verfügbar: 3.1.5
                      Installiert: 2.1.0
                      Ereignisse: ⇥10 / ↦12

                      Ein update des JS Controllers hatte bereits in der Vergangenheit katastrophale Folgen.
                      Hatte hier gelesen, dass es ein gesondertes Installationspaket für WIN geben wird...

                      Thomas Braun Garfonso 2 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @FragMike last edited by

                        @FragMike Ja, da soll was kommen für Windows.

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

                          @Thomas-Braun sagte in js-controller 3.0/3.1 jetzt im Latest!:

                          @FragMike Ja, da soll was kommen für Windows.

                          schon seid 6 Monaten 😉

                          Muss ich wieder auf Linux System umziehen?

                          Raspi hat seinerzeit nur rumgezickt und 2 SD Karten zernichtet.
                          VM mit Linux unter WIN ...dann kann ich auch ein SNAPSHOT als Backup machen...

                          macht das Sinn?

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

                            @FragMike sagte in js-controller 3.0/3.1 jetzt im Latest!:

                            Muss ich wieder auf Linux System umziehen?

                            Keine Ahnung. Mein Linux läuft jedenfalls klag- und problemlos.
                            iobroker auf einen Raspbian Buster. Ich persönlich bin kein Fan von VMs.

                            1 Reply Last reply Reply Quote 0
                            • Garfonso
                              Garfonso Developer @FragMike last edited by

                              @FragMike
                              Das mit dem "speziellen Paket" hab ich auch gelesen. Irgendwo hatte ich auch mal nachgefragt, da hieß es dann, man soll "einfach nochmal den Installer runterladen und ausführen" -> wobei mir dann total unklar ist, was man da machen soll... ein "update" gibt es da leider nicht, nur neuanlegen (beschwert sich, dass es den Instanznamen schon gibt), Löschen und importieren. Vermutlich könnte Instanz Löschen, dann neu anlegen mit Import der "richtige" Weg sein... war mir aber zu unsicher das so zu machen, ohne dass ich da eine offzielle Bestätigung hab (und fände ich auch einen ganz schön umständlichen weg).

                              Daher habe ich das Update auch unter Windows "von Hand" gemacht, ging gut.
                              Also:

                              • mit Startmenü Eintrag die ioBroker Konsole starten
                              • ioBroker stoppen (iob stop bzw. Dienst manuell anhalten)
                              • iob upgrade self (oder, wenn er "nervt" npm install iobroker.js-controller, weiß nicht mehr, welches ging) -> upgrade wird ausgeführt
                              • ioBroker wieder starten iob start / Dienst manuell starten)
                              FragMike 1 Reply Last reply Reply Quote 0
                              • FragMike
                                FragMike @Garfonso last edited by

                                @Garfonso
                                Hi..danke für deine Antwort...ich glaube genau so habe ich das seinerzeit gemacht. Ging leider in die Hose...danach half nur noch den Rechner komplett neu aufzusetzen und das Backup wieder einzuspielen. Mal schauen, ob es diesmal klappt 😳🤷

                                JB_Sullivan 1 Reply Last reply Reply Quote 0
                                • JB_Sullivan
                                  JB_Sullivan @FragMike last edited by JB_Sullivan

                                  @FragMike
                                  Wir haben das Thema Windows und ioBroker in einem anderen Thread ausführlich durchgekaut.

                                  Der Knackpunkt ist diese Vorgehensweise wie sie AlCalzone dort beschreibt.
                                  Dann gibt es auch keine Probleme mehr mit dem zerschießen, wenn ein Adapter aktualisiert / neu installiert oder gelöscht wird.

                                  https://forum.iobroker.net/topic/33421/iobroker-unter-windows-installieren-ohne-installer/125

                                  FragMike 1 Reply Last reply Reply Quote 0
                                  • FragMike
                                    FragMike @JB_Sullivan last edited by

                                    @JB_Sullivan
                                    Danke...Lesestoff👍

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

                                      Aus gegebenem Anlass hier noch ein Controller Update auf 3.1.6 ab bald im Latest:

                                      3.1.6 (2020-06-18) Release Francesca

                                      • (foxriver76) fix output of iobroker plugin status command
                                      • (foxriver76) fix deletion of states on instance-deletion
                                      • (Apollon77) add additional checks to prevent Errors (Sentry)
                                      • (Apollon77) Make sure Sentry activation info is also shown on upgrade self command
                                      • (Apollon77) Upgrade winston-daily-rotate-file library to prevent a crash case
                                      ? UweRLP 2 Replies Last reply Reply Quote 0
                                      • ?
                                        A Former User @apollon77 last edited by

                                        @apollon77 Hi, hier verträgt sich die Francesca mit der Silvia und dem Buster einwandfrei. 🙂

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

                                          @apollon77 Das Problem https://forum.iobroker.net/post/445338 ist mit js-controller 3.1.6 leider noch nicht behoben. Sowohl nach update vom js-controller auf die 3.1.6 trat das Problem auf, habe ich dann repariert. Aber werden mit der 3.1.6 dann Adapter geupdatet starte der javascript Adaper wieder nicht und eine Reparatur des Adapters ist erneut notwendig.

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

                                            @UweRLP Da kann der Controller nichts dran ändern, das hat mit npm und damit wie die Windows Systeme teilweise installiert sind zu tun ...

                                            UweRLP 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

                                            758
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller
                                            127
                                            1340
                                            424705
                                            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