Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. gelöst: Javascript Adapter 5.8.8

    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

    gelöst: Javascript Adapter 5.8.8

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robbsen last edited by robbsen

      Hallo Zusammen,

      musste ggf. beim Update auf Version 5.8.8 irgendwas umgestellt werden. Mein Adapter bleibt bei rot hängen. Ich könnte natürlich ein Backup zurückspielen, aber ggf. musste ich ja nur ne Kleinigkeit ändern?

      host.ioBroker
      2022-07-14 07:03:02.672	info	Rebuild for adapter system.adapter.javascript.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
      host.ioBroker
      2022-07-14 07:03:02.672	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.ioBroker
      2022-07-14 07:03:02.671	error	Caught by controller[0]: }
      host.ioBroker
      2022-07-14 07:03:02.671	error	Caught by controller[0]: ]
      host.ioBroker
      2022-07-14 07:03:02.671	error	Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.javascript/main.js'
      host.ioBroker
      2022-07-14 07:03:02.671	error	Caught by controller[0]: '/opt/iobroker/node_modules/coffee-compiler/coffee-compiler.js',
      host.ioBroker
      2022-07-14 07:03:02.671	error	Caught by controller[0]: requireStack: [
      host.ioBroker
      2022-07-14 07:03:02.671	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      host.ioBroker
      2022-07-14 07:03:02.670	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:974:19) {
      host.ioBroker
      2022-07-14 07:03:02.670	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:790:12)
      host.ioBroker
      2022-07-14 07:03:02.670	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:950:32)
      host.ioBroker
      2022-07-14 07:03:02.670	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
      host.ioBroker
      2022-07-14 07:03:02.670	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1085:14)
      host.ioBroker
      2022-07-14 07:03:02.670	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/coffee-compiler/coffee-compiler.js:7:10)
      host.ioBroker
      2022-07-14 07:03:02.669	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:101:18)
      host.ioBroker
      2022-07-14 07:03:02.669	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:974:19)
      host.ioBroker
      2022-07-14 07:03:02.669	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:746:27)
      host.ioBroker
      2022-07-14 07:03:02.669	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
      host.ioBroker
      2022-07-14 07:03:02.669	error	Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.javascript/main.js
      host.ioBroker
      2022-07-14 07:03:02.669	error	Caught by controller[0]: - /opt/iobroker/node_modules/coffee-compiler/coffee-compiler.js
      host.ioBroker
      2022-07-14 07:03:02.668	error	Caught by controller[0]: Require stack:
      host.ioBroker
      2022-07-14 07:03:02.668	error	Caught by controller[0]: Error: Cannot find module 'coffee-script'
      host.ioBroker
      2022-07-14 07:03:02.668	error	Caught by controller[0]: ^
      host.ioBroker
      2022-07-14 07:03:02.668	error	Caught by controller[0]: throw err;
      host.ioBroker
      2022-07-14 07:03:02.667	error	Caught by controller[0]: internal/modules/cjs/loader.js:905
      host.ioBroker
      2022-07-14 07:03:02.462	info	instance system.adapter.javascript.0 started with pid 1200147
      
      J N Thomas Braun 3 Replies Last reply Reply Quote 0
      • J
        Jan1 @robbsen last edited by

        @robbsen
        hast das schon gemacht was der Adapter selber in der ersten Zeile des Log vorschlägt?

        1 Reply Last reply Reply Quote 0
        • N
          Nordischerjung @robbsen last edited by

          @robbsen

          Guck hier

          Please execute "npm install --production" in adapter directory manually
          
          1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @robbsen last edited by

            @robbsen sagte in Javascript Adapter 5.8.8:

            Bei npm@8:

            cd /opt/iobroker/node_modules/iobroker.javascript
            sudo -H -u iobroker npm install --omit=dev
            
            /opt/iobroker/node_modules/coffee-compiler
            sudo -H -u iobroker npm install --omit=dev
            
            R frankthegreat 2 Replies Last reply Reply Quote 0
            • R
              robbsen @Thomas Braun last edited by

              @thomas-braun das hat geholfen.

              @Nordischerjung tatsächlich hatte ich das nicht gemacht.

              Danke euch beiden! Auch wenn ich keine Ahnung habe, was ich da eigentlich warum grade gemacht habe 😉

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

                @robbsen

                Du hast die beiden Adapter mit den richtigen Dependencies neugebaut.

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

                  @thomas-braun

                  heißt aber, die Abhängigkeiten hatten sich durch das JavaScript Update so stark verändert? Wie kommt man auf sowas 🤗

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

                    @robbsen

                    Ich weiß zufällig, das die Dependency zu coffee-script auf die richtige Bezeichnung coffeescript geändert wurde. Und das die beiden Module rebuilded werden wollten steht im Log drin. Muss man dann 'nur noch machen'

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

                      @thomas-braun sagte in gelöst: Javascript Adapter 5.8.8:

                      @robbsen sagte in Javascript Adapter 5.8.8:

                      Bei npm@8:

                      cd /opt/iobroker/node_modules/iobroker.javascript
                      sudo -H -u iobroker npm install --omit=dev
                      
                      /opt/iobroker/node_modules/coffee-compiler
                      sudo -H -u iobroker npm install --omit=dev
                      

                      Hab die gleiche Fehlermeldung wie @robbsen
                      beim aktualisieren vom Javascript Adapter.

                      Wären denn bei npm@6 auch diese Befehle richtig?

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

                        @frankthegreat sagte in gelöst: Javascript Adapter 5.8.8:

                        Wären denn bei npm@6 auch diese Befehle richtig?

                        Gegenfrage: Warum nicht nodejs16 inkl. npm8 verwenden? Ist eh die vorgesehene Version.

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

                          @thomas-braun Bin noch nicht soweit (Produktivsystem) 😢
                          Aber wenn du sagst, das es stabil läuft werd' ich es mal angreifen?

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

                            @frankthegreat

                            https://forum.iobroker.net/topic/55678/node-js-16-x-neue-empfehlung-für-iobroker

                            In 'meinem' HowTo (s. Signatur) gibt es auch noch ein paar Tips gerade in Bezug auf node16/npm8 und dessen neuem Format für die package*-Files.

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

                              @thomas-braun OK, danke.
                              Mal schauen, ob ich es am WE schaffe 😎

                              1 Reply Last reply Reply Quote 0
                              • B
                                Beowolf last edited by

                                Ich habe das Problem auch

                                bei mir kommt die Meldung

                                host.raspberrypi
                                	2022-09-05 12:51:15.176	info	Rebuild for adapter system.adapter.javascript.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
                                host.raspberrypi
                                	2022-09-05 12:51:15.176	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                                host.raspberrypi
                                	2022-09-05 12:51:15.176	error	Caught by controller[0]: }
                                host.raspberrypi
                                	2022-09-05 12:51:15.176	error	Caught by controller[0]: requestPath: 'coffeescript'
                                host.raspberrypi
                                	2022-09-05 12:51:15.176	error	Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/package.json',
                                host.raspberrypi
                                	2022-09-05 12:51:15.175	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
                                host.raspberrypi
                                	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32) {
                                host.raspberrypi
                                	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                                host.raspberrypi
                                	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1126:14)
                                host.raspberrypi
                                	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:21:24)
                                host.raspberrypi
                                	2022-09-05 12:51:15.175	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18)
                                host.raspberrypi
                                	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1028:19)
                                host.raspberrypi
                                	2022-09-05 12:51:15.175	error	Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:804:27)
                                host.raspberrypi
                                	2022-09-05 12:51:15.174	error	Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:942:27)
                                host.raspberrypi
                                	2022-09-05 12:51:15.174	error	Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:577:18)
                                host.raspberrypi
                                	2022-09-05 12:51:15.174	error	Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:364:19)
                                host.raspberrypi
                                	2022-09-05 12:51:15.174	error	Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/lib/coffee-script/coffee-script'. Please verify that the package.json has a valid "main" entry
                                host.raspberrypi
                                	2022-09-05 12:51:15.174	error	Caught by controller[0]: ^
                                host.raspberrypi
                                	2022-09-05 12:51:15.174	error	Caught by controller[0]: throw err;
                                host.raspberrypi
                                	2022-09-05 12:51:15.173	error	Caught by controller[0]: node:internal/modules/cjs/loader:372
                                

                                Ich bin mir nicht sicher was ich machen soll.

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

                                  @beowolf sagte in gelöst: Javascript Adapter 5.8.8:

                                  Ich bin mir nicht sicher was ich machen soll.

                                  Welcher Befehl führte zu den Ausgaben?
                                  Welche nodejs-Version?

                                  sudo ln -s /usr/bin/node /usr/bin/nodejs
                                  uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                  

                                  Welche Versionen der Adapter?

                                  iobroker update -i
                                  
                                  B 2 Replies Last reply Reply Quote 0
                                  • B
                                    Beowolf @Thomas Braun last edited by

                                    @thomas-braun

                                    Bei

                                    uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                    

                                    kommt

                                    pi@raspberrypi:/ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                    armv7l
                                    /usr/bin/nodejs
                                    /usr/bin/node
                                    /usr/bin/npm
                                    v16.17.0
                                    v16.17.0
                                    8.15.0
                                    pi
                                    /
                                    OK:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                                    OK:2 http://archive.raspberrypi.org/debian bullseye InRelease
                                    OK:3 https://deb.nodesource.com/node_14.x bullseye InRelease
                                    OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
                                    Paketlisten werden gelesen… Fertig
                                    Abhängigkeitsbaum wird aufgebaut… Fertig
                                    Statusinformationen werden eingelesen… Fertig
                                    Alle Pakete sind aktuell.
                                    nodejs:
                                      Installiert:           16.17.0-deb-1nodesource1
                                      Installationskandidat: 16.17.0-deb-1nodesource1
                                      Versionstabelle:
                                     *** 16.17.0-deb-1nodesource1 500
                                            500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                            100 /var/lib/dpkg/status
                                         14.20.0-deb-1nodesource1 500
                                            500 https://deb.nodesource.com/node_14.x bullseye/main armhf Packages
                                         12.22.12~dfsg-1~deb11u1 500
                                            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                                    pi@raspberrypi:/ $
                                    
                                    

                                    Bei

                                    iobroker update -i
                                    

                                    kommt

                                    pi@raspberrypi:/ $ iobroker update -i
                                    Used repository: stable
                                    Adapter    "admin"        : 6.2.20   , installed 6.2.20
                                    Adapter    "alexa2"       : 3.11.2   , installed 3.11.2
                                    Adapter    "alias-manager": 1.2.4    , installed 1.2.4
                                    Adapter    "backitup"     : 2.4.10   , installed 2.4.10
                                    Adapter    "discovery"    : 3.0.5    , installed 3.0.5
                                    Adapter    "email"        : 1.1.3    , installed 1.1.3
                                    Adapter    "hm-rega"      : 3.0.40   , installed 3.0.40
                                    Adapter    "hm-rpc"       : 1.15.12  , installed 1.15.12
                                    Adapter    "ical"         : 1.13.1   , installed 1.13.1
                                    Adapter    "influxdb"     : 3.1.7    , installed 3.1.7
                                    Adapter    "info"         : 1.9.19   , installed 1.9.19
                                    Adapter    "iot"          : 1.11.8   , installed 1.11.8
                                    Adapter    "iqontrol"     : 2.0.0    , installed 2.0.1
                                    Adapter    "javascript"   : 6.0.0    , installed 6.0.0
                                    Controller "js-controller": 4.0.23   , installed 4.0.23
                                    Adapter    "luftdaten"    : 2.2.4    , installed 2.2.4
                                    Adapter    "mqtt"         : 4.0.7    , installed 4.0.7
                                    Adapter    "ping"         : 1.5.3    , installed 1.5.3
                                    Adapter    "pushover"     : 3.0.2    , installed 3.0.2
                                    Adapter    "scenes"       : 2.3.9    , installed 2.3.9
                                    Adapter    "simple-api"   : 2.7.0    , installed 2.7.0
                                    Adapter    "socketio"     : 4.2.0    , installed 4.2.0
                                    Adapter    "sonoff"       : 2.5.1    , installed 2.5.1
                                    Adapter    "vis"          : 1.4.15   , installed 1.4.15
                                    Adapter    "vis-bars"     : 0.1.4    , installed 0.1.4
                                    Adapter    "vis-canvas-gauges": 0.1.5, installed 0.1.5
                                    Adapter    "vis-fancyswitch": 1.1.0  , installed 1.1.0
                                    Adapter    "vis-history"  : 1.0.0    , installed 1.0.0
                                    Adapter    "vis-hqwidgets": 1.2.0    , installed 1.2.0
                                    Adapter    "web"          : 4.3.0    , installed 4.3.0
                                    Adapter    "wiffi-wz"     : 2.2.1    , installed 2.2.1
                                    Adapter    "wled"         : 0.6.7    , installed 0.6.7
                                    Adapter    "ws"           : 1.3.0    , installed 1.3.0
                                    pi@raspberrypi:/ $
                                    
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • B
                                      Beowolf @Thomas Braun last edited by

                                      @thomas-braun sagte in gelöst: Javascript Adapter 5.8.8:

                                      Welcher Befehl führte zu den Ausgaben?

                                      Bei diesem

                                      Please execute "npm install --production" in adapter directory manually.
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Beowolf last edited by

                                        @beowolf
                                        Stell dich in dein /home-Verzeichnis. Warum steht du da in / herum?

                                        cd ~
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Beowolf last edited by

                                          @beowolf sagte in gelöst: Javascript Adapter 5.8.8:

                                          npm install --production

                                          Hast du das auch in / ausgeführt?
                                          Bitte IMMER vollständige Ein- und Ausgaben inkl. login prompt zeigen, dann sieht man sowas direkt.

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

                                            @thomas-braun

                                            Habe es dort gemacht.

                                            pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript/node_modules $ npm install --production
                                            npm WARN config production Use `--omit=dev` instead.
                                            
                                            > iobroker.javascript@6.0.0 postinstall
                                            > node ./install/installTypings.js
                                            
                                            Installing NodeJS typings...
                                            latest @types: 18, installed node: 16
                                            
                                            up to date, audited 107 packages in 12s
                                            
                                            9 packages are looking for funding
                                              run `npm fund` for details
                                            
                                            found 0 vulnerabilities
                                            pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript/node_modules $
                                            
                                            
                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            666
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            31
                                            1479
                                            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