Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Update Javascript auf 5.2.21 - Fehler im Log

    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

    Update Javascript auf 5.2.21 - Fehler im Log

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

      @apollon77
      Ich habe auf dem Slave nun das hier eingegeben.

      pi@Media04:~ $ iobroker del javascript.1
      Delete adapter "javascript.1"
      host.Media04 Counted 1 instances of javascript.1
      host.Media04 Counted 2 channels of javascript.1
      host.Media04 Counted 6 states of javascript.1
      host.Media04 Counted 14 states of system.adapter.javascript.1
      host.Media04 Counted 4 states (system.adapter.javascript.1.*) from states
      host.Media04 Deleting 23 object(s).
      host.Media04 Deleting 4 state(s).
      pi@Media04:~ $ iobroker install javascript.1
      adapter "javascript" already installed. Use "upgrade" to upgrade to a newer version.
      
      

      Und danach über den Reiter Adapter nochmal neuinstalliert. Beim starten des Adapters kommt wieder diese Fehlermeldung.

      host.Media04
      	2022-03-06 12:24:11.686	info	Restart adapter system.adapter.javascript.1 because enabled
      host.Media04
      	2022-03-06 12:24:11.685	error	instance system.adapter.javascript.1 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.Media04
      	2022-03-06 12:24:11.684	error	Caught by controller[0]: at internal/main/run_main_module.js:17:47
      host.Media04
      	2022-03-06 12:24:11.683	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:790:12)
      host.Media04
      	2022-03-06 12:24:11.682	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:950:32)
      host.Media04
      	2022-03-06 12:24:11.683	error	Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
      host.Media04
      	2022-03-06 12:24:11.682	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
      host.Media04
      	2022-03-06 12:24:11.681	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:73:5)
      host.Media04
      	2022-03-06 12:24:11.680	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:101:18)
      host.Media04
      	2022-03-06 12:24:11.681	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1085:14)
      host.Media04
      	2022-03-06 12:24:11.680	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:974:19)
      host.Media04
      	2022-03-06 12:24:11.679	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:950:32)
      host.Media04
      	2022-03-06 12:24:11.678	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
      host.Media04
      	2022-03-06 12:24:11.679	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:790:12)
      host.Media04
      	2022-03-06 12:24:11.677	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1085:14)
      host.Media04
      	2022-03-06 12:24:11.677	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:5:12)
      host.Media04
      	2022-03-06 12:24:11.676	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:974:19)
      host.Media04
      	2022-03-06 12:24:11.675	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:790:12)
      host.Media04
      	2022-03-06 12:24:11.676	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:101:18)
      host.Media04
      	2022-03-06 12:24:11.675	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:950:32)
      host.Media04
      	2022-03-06 12:24:11.674	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1049:27)
      host.Media04
      	2022-03-06 12:24:11.673	error	Caught by controller[0]: at wrapSafe (internal/modules/cjs/loader.js:1001:16)
      host.Media04
      	2022-03-06 12:24:11.674	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
      host.Media04
      	2022-03-06 12:24:11.673	error	Caught by controller[0]: SyntaxError: Invalid or unexpected token
      host.Media04
      	2022-03-06 12:24:11.672	error	Caught by controller[0]: 
      

      Aber trotzdem funktioniert es nicht.

      0a36b3af-2af2-49cc-aaa5-35f20549da66-grafik.png

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

        @basti97 Naja du must wenn javascript komplett entfernen nicht nur instanz 1 ... Die Skripte werden an sich nicht gelöscht, also iob del javascript (vorher backup sicherheitshalber)

        Alternativ kannst du vorher ein ´cd /opt/iobrokerundnpm i iobroker.javasscript` versuchen obs hilft

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

          @apollon77 Ich habe aber auf meinem Master noch zwei Javascript Instanzen laufen. Nicht das sie mit gelöscht werden.
          Wenn ich den Master herunterfahre und das iobroker del javascript ausführe kommt das hier.
          Oder soll ich das mal als sudo probieren.

          pi@Media04:~ $ iobroker del javascript
          No connection to databases possible ...
          
          Thomas Braun apollon77 2 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Basti97 last edited by

            @basti97 sagte in Update Javascript auf 5.2.21 - Fehler im Log:

            Oder soll ich das mal als sudo probieren.

            Nein, iobroker nie mit sudo beackern.

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

              @thomas-braun ok also führe ich auf den Slave mal das hier aus?
              bleiben die andere Instanzen unberührt oder soll ich den Master herunterfahren.

              cd /opt/iobrokerundnpm i iobroker.javasscript
              
              1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @Basti97 last edited by

                @basti97 dann mach lieber das mit npm install ... zu dem "no connection to db": Welcher controller? Welche db?

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

                  @apollon77

                      Plattform: linux
                      Betriebssystem: linux
                      Architektur: arm
                      CPUs: 4
                      Geschwindigkeit: 600 MHz
                      Modell: ARMv7 Processor rev 4 (v7l)
                      RAM: 922.8 MB
                      System-Betriebszeit: 1 T. 22:21:40
                      Node.js: v14.19.0
                      NPM: 6.14.16
                      Datenträgergröße: 14.5 GB
                      freier Festplattenspeicher: 4.9 GB
                      Adapter-Anzahl: 400
                      Betriebszeit: 04:10:41
                      Aktive Instanzen: 4
                      Pfad: /opt/iobroker/
                      JS Controller: 3.3.2
                  

                  Javascript Adapter hat die Version 5.2.21
                  Brauchst du noch mehr infos?

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

                    @apollon77 sollte ich das ausführen? Weil irgendwie ging es nicht.

                    pi@Media04:~ $ cd /opt/iobrokerundnpm i iobroker.javasscript
                    -bash: cd: Zu viele Argumente.
                    pi@Media04:~ $ cd /opt/iobroker undnpm i iobroker.javasscript
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Basti97 last edited by Thomas Braun

                      @basti97 sagte in Update Javascript auf 5.2.21 - Fehler im Log:

                      cd /opt/iobrokerundnpm i iobroker.javasscript

                      Das soll so lauten:

                      cd /opt/iobroker/ 
                      npm i iobroker.javasscript
                      
                      Basti97 1 Reply Last reply Reply Quote 0
                      • Basti97
                        Basti97 Most Active @Thomas Braun last edited by

                        @thomas-braun
                        Das kommt raus

                        pi@Media04:/opt/iobroker $  npm i iobroker.javasscript
                        npm ERR! code E404
                        npm ERR! 404 Not Found - GET https://registry.npmjs.org/iobroker.javasscript - N                                                                                                                     ot found
                        npm ERR! 404
                        npm ERR! 404  'iobroker.javasscript@latest' is not in the npm registry.
                        npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
                        npm ERR! 404
                        npm ERR! 404 Note that you can also install from a
                        npm ERR! 404 tarball, folder, http url, or git url.
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/iobroker/.npm/_logs/2022-03-06T16_02_24_230Z-debug.log
                        pi@Media04:/opt/iobroker $
                        
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Basti97 last edited by

                          @basti97

                          Da ist ein s zu viel.

                          npm i iobroker.javascript
                          
                          1 Reply Last reply Reply Quote 0
                          • Basti97
                            Basti97 Most Active last edited by

                            @thomas-braun said in Update Javascript auf 5.2.21 - Fehler im Log:

                            npm i iobroker.javascript

                            Super vielen Dank das hat funktoniert ich bin glücklich.
                            Das kam im übrigen.

                            pi@Media04:/opt/iobroker $ npm i iobroker.javascript
                            npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
                            npm WARN deprecated node-inspect@2.0.0: This module is part of Node.js core and does not need to be installed separately. It is now unmaintained.
                            
                            > iobroker.javascript@5.3.1 postinstall /opt/iobroker/node_modules/iobroker.javascript
                            > node ./install/installTypings.js
                            
                            Installing NodeJS typings...
                            latest @types: 17, installed node: 14
                            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
                            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/fsevents):
                            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/fsevents):
                            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman/node_modules/fsevents):
                            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                            
                            + iobroker.javascript@5.3.1
                            added 3 packages from 3 contributors, removed 3 packages and updated 6 packages in 377.051s
                            
                            90 packages are looking for funding
                              run `npm fund` for details
                            
                            
                            apollon77 1 Reply Last reply Reply Quote 0
                            • apollon77
                              apollon77 @Basti97 last edited by

                              @basti97 uund hats was gebracht?

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

                                @apollon77 Ja der Adapter funktioniert wieder. Wenn man die Lösung weiß ist es einfach. Ich habe mir gleich den Lösungsweg gespeichert. 🙂

                                Würde der Befehl npm i iobroker.javascript auch funktionieren wenn ein anderer Adapter kaputt wäre. Natürlich müsste ich dann javascript ersetzen.

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

                                  @basti97

                                  Eigentlich vermeidet man den Einsatz von npm auf direktem Weg.
                                  Besser:

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

                                    @basti97 ja und nein. Als pauschale Nummer nicht ganz so geeignet. Kommt immer darauf an

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

                                      @thomas-braun Danke gut zu wissen. 🙂

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

                                        @apollon77 Ok dann lieber immer nachfragen bevor man was falsches macht. Aber so lange man ein Backup hat was man im Notfall einspielen könnte. Wenn es dann nicht mehr funktioniert. Aber nicht so schlimm wenn man wie hier gute Hilfe bekommt. 🙂
                                        Ausfälle sind zwar ärgerlich und zeitaufwändig aber wenn es dann funktioniert ist man glücklicher.

                                        1 Reply Last reply Reply Quote 1
                                        • First post
                                          Last post

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        933
                                        Online

                                        31.9k
                                        Users

                                        80.1k
                                        Topics

                                        1.3m
                                        Posts

                                        6
                                        53
                                        3003
                                        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