Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. JavaScript Paket läuft nicht mehr

    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

    JavaScript Paket läuft nicht mehr

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

      Hallo zusammen,
      ich bekomme die Javascript-Instanz nicht mehr zum laufen. Ich habe keine Skripte verändert oder hinzugefügt - nur das Szenen-Paket installiert und verstehe die LOG-Ausgaben nicht. Kann mir jemand bitte helfen oder einen Tipp geben?

      Plattform: Dockerumgebung auf Synology DS415+
      JS-controller: 4.0.23
      Skriptausführung: 6.0.3

      Instanzen:
      65b591d7-b27c-4a76-bd33-3fa07cac12f4-image.png

      Error:

      2022-11-29 22:38:51.338 - info: host.ioBroker instance system.adapter.javascript.0 started with pid 3073
      2022-11-29 22:38:51.473 - error: host.ioBroker Caught by controller[0]: node:internal/modules/cjs/loader:372
      2022-11-29 22:38:51.474 - error: host.ioBroker Caught by controller[0]: throw err;
      2022-11-29 22:38:51.474 - error: host.ioBroker Caught by controller[0]: ^
      2022-11-29 22:38:51.474 - error: host.ioBroker 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
      2022-11-29 22:38:51.474 - error: host.ioBroker Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:364:19)
      2022-11-29 22:38:51.474 - error: host.ioBroker Caught by controller[0]: at Function.Module._findPath (node:internal/modules/cjs/loader:577:18)
      2022-11-29 22:38:51.474 - error: host.ioBroker Caught by controller[0]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:942:27)
      2022-11-29 22:38:51.475 - error: host.ioBroker Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:804:27)
      2022-11-29 22:38:51.475 - error: host.ioBroker Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1028:19)
      2022-11-29 22:38:51.475 - error: host.ioBroker Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18)
      2022-11-29 22:38:51.475 - error: host.ioBroker Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.javascript/main.js:21:24)
      2022-11-29 22:38:51.475 - error: host.ioBroker Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1126:14)
      2022-11-29 22:38:51.475 - error: host.ioBroker Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
      2022-11-29 22:38:51.475 - error: host.ioBroker Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32) {
      2022-11-29 22:38:51.476 - error: host.ioBroker Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      2022-11-29 22:38:51.476 - error: host.ioBroker Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/package.json',
      2022-11-29 22:38:51.476 - error: host.ioBroker Caught by controller[0]: requestPath: 'coffeescript'
      2022-11-29 22:38:51.476 - error: host.ioBroker Caught by controller[0]: }
      2022-11-29 22:38:51.476 - error: host.ioBroker instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      2022-11-29 22:38:51.476 - info: host.ioBroker 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.
      

      Bisher habe ich die Javascript Instanz mehrfach neu gestartet, gelöscht und wieder neu installiert --> ohne Erfolg. Bin relativ neu und habe zB keine Ahnung wie ich "nem install --production" ausführen soll.

      Vielen Dank!

      Codierknecht Thomas Braun 2 Replies Last reply Reply Quote 0
      • Codierknecht
        Codierknecht Developer Most Active @onki1 last edited by

        @onki1 sagte in JavaScript Paket läuft nicht mehr:

        Plattform: Dockerumgebung auf Synology DS415+

        Mit welchem Image?
        Welche Versionen von Node und NPM?

        O 1 Reply Last reply Reply Quote 1
        • Thomas Braun
          Thomas Braun Most Active @onki1 last edited by Thomas Braun

          @onki1

          echad@chet:~ $ cd /opt/iobroker/
          echad@chet:/opt/iobroker $ npm ls coffeescript
          iobroker.inst@3.0.0 /opt/iobroker
          └─┬ iobroker.javascript@6.1.4
            └── coffeescript@1.12.7
          
          echad@chet:/opt/iobroker $
          

          Wie schaut das entsprechend bei dir aus?

          1 Reply Last reply Reply Quote 0
          • O
            onki1 @Codierknecht last edited by

            @codierknecht Danke für die Antwort!
            image: buanet
            Node.js: v16.17.1
            NPM: 8.15.0

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

              @onki1

              cd /opt/iobroker/node_modules/iobroker.javascript/
              npm install --omit=dev
              
              1 Reply Last reply Reply Quote 0
              • O
                onki1 last edited by

                @thomas-braun Danke! Und das gebe ich per SSH ein?

                Thomas Braun haus-automatisierung Codierknecht 3 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @onki1 last edited by

                  @onki1

                  Wie auch immer du an eine Kommandozeile auf der Kiste kommst. SSH ist der übliche Weg.

                  1 Reply Last reply Reply Quote 0
                  • haus-automatisierung
                    haus-automatisierung Developer Most Active @onki1 last edited by

                    @onki1 sagte in JavaScript Paket läuft nicht mehr:

                    @thomas-braun Danke! Und das gebe ich per SSH ein?

                    Im Falle von Docker auf einer Synology einfach über ein neues Terminal im Docker-Container (über die Synology Weboberfläche).

                    1 Reply Last reply Reply Quote 0
                    • Codierknecht
                      Codierknecht Developer Most Active @onki1 last edited by Codierknecht

                      @onki1 sagte in JavaScript Paket läuft nicht mehr:

                      @thomas-braun Danke! Und das gebe ich per SSH ein?

                      131c917c-4b37-41ab-a9b6-394e089bc9a9-image.png

                      "Mit Befehl starten" => "bash"
                      ... produziert Dir eine wunderschöne Konsole 😉

                      O 1 Reply Last reply Reply Quote 1
                      • O
                        onki1 @Codierknecht last edited by

                        @codierknecht Terminal-Benutzen hat funktioniert 🙂
                        @Thomas-Braun das hat eher nicht geholfen:

                        root@ioBroker:/opt/iobroker# /opt/iobroker/node_modules/iobroker.javascript/                                    
                        bash: /opt/iobroker/node_modules/iobroker.javascript/: Is a directory                                           
                        root@ioBroker:/opt/iobroker# npm install --omit=dev                                                             
                        npm ERR! code ENOTEMPTY                                                                                         
                        npm ERR! syscall rename                                                                                         
                        npm ERR! path /opt/iobroker/node_modules/iobroker.javascript/node_modules/@types/node                           
                        npm ERR! dest /opt/iobroker/node_modules/iobroker.javascript/node_modules/@types/.node-f0Rqzy2m                 
                        npm ERR! errno -39                                                                                              
                        npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.javascript/node_modules/@ty
                        pes/node' -> '/opt/iobroker/node_modules/iobroker.javascript/node_modules/@types/.node-f0Rqzy2m'                
                                                                                                                                        
                        npm ERR! A complete log of this run can be found in:                                                            
                        npm ERR!     /opt/iobroker/.npm/_logs/2022-12-19T19_48_12_802Z-debug-0.log                                      
                        root@ioBroker:/opt/iobroker
                        

                        Ganz komisch - ich kann auch keine Adapter-Updates mehr machen (alexa2, etc)... besser neu installieren? Aber die VIS und bestehenden Adapter funktionieren alle...

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

                          @onki1

                          Lösung ist oben im Forum angepinnt.

                          https://forum.iobroker.net/topic/57337/fehler-25-oder-217-bei-adapter-install-update-mit-npm8

                          Und die Befehle auch im richtigen Verzeichnis eingeben hilft auch.

                          1 Reply Last reply Reply Quote 1
                          • OliverIO
                            OliverIO @onki1 last edited by

                            @onki1
                            du hast beim ersten befehl das cd vergessen

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            856
                            Online

                            31.8k
                            Users

                            80.0k
                            Topics

                            1.3m
                            Posts

                            5
                            12
                            272
                            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