Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Javascript adapter geht plötzlich nicht mehr. (gelöst)

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Javascript adapter geht plötzlich nicht mehr. (gelöst)

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

      Urplötzlich geht mein Javascript Adapter nicht mehr, ohne das ich bewusst was geändert hätte.

      Iobroker läuft in einem Docker Image auf einem Synology NAS, bis jetzt äusserst stabil.
      Hab relativ viele eigene Javascript Scripts am laufen.

      Hab versucht, Javascript neu zu installieren ohne zusätzliche NPM Module, gleiches Resultat.

      'iobroker.inst': '3.0.0',                                                      
        npm: '9.7.2',                                                                  
        node: '18.16.1',                                                               
        acorn: '8.8.2',                                                                
        ada: '1.0.4',                                                                  
        ares: '1.19.1',                                                                
        brotli: '1.0.9',                                                               
        cldr: '42.0',                                                                  
        icu: '72.1',                                                                   
        llhttp: '6.0.11',                                                              
        modules: '108',                                                                
        napi: '8',                                                                     
        nghttp2: '1.52.0',                                                             
        nghttp3: '0.7.0',                                                              
        ngtcp2: '0.8.1',                                                               
        openssl: '3.0.9+quic',                                                         
        simdutf: '3.2.2',                                                              
        tz: '2022g',                                                                   
        undici: '5.21.0',                                                              
        unicode: '15.0',                                                               
        uv: '1.44.2',                                                                  
        uvwasi: '0.0.15',                                                              
        v8: '10.2.154.26-node.26',                                                     
      
      

      LOG:

      host.IoBroker
      2023-09-04 17:23:22.270	info	"system.adapter.javascript.0" disabled
      host.IoBroker
      2023-09-04 17:23:19.242	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
      2023-09-04 17:23:19.242	error	instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.IoBroker
      2023-09-04 17:23:19.241	error	Caught by controller[0]: }
      host.IoBroker
      2023-09-04 17:23:19.241	error	Caught by controller[0]: path: '/opt/iobroker/node_modules/iobroker.javascript/node_modules/coffeescript/package.json',
      host.IoBroker
      2023-09-04 17:23:19.240	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
      host.IoBroker
      2023-09-04 17:23:19.240	error	Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
      host.IoBroker
      2023-09-04 17:23:19.241	error	Caught by controller[0]: requestPath: 'coffeescript'
      host.IoBroker
      2023-09-04 17:23:19.241	error	Caught by controller[0]: Node.js v18.16.1
      host.IoBroker
      2023-09-04 17:23:19.240	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1256:14)
      host.IoBroker
      2023-09-04 17:23:19.239	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:110:18)
      host.IoBroker
      2023-09-04 17:23:19.239	error	Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:922:27)
      host.IoBroker
      2023-09-04 17:23:19.239	error	Caught by controller[0]: at Module._findPath (node:internal/modules/cjs/loader:680:18)
      host.IoBroker
      2023-09-04 17:23:19.240	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1119:32) {
      host.IoBroker
      2023-09-04 17:23:19.238	error	Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:438:19)
      host.IoBroker
      2023-09-04 17:23:19.238	error	Caught by controller[0]: ^
      host.IoBroker
      2023-09-04 17:23:19.239	error	Caught by controller[0]: at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
      host.IoBroker
      2023-09-04 17:23:19.239	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19)
      host.IoBroker
      2023-09-04 17:23:19.239	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:21:23)
      host.IoBroker
      2023-09-04 17:23:19.238	error	Caught by controller[0]: throw err;
      host.IoBroker
      2023-09-04 17:23:19.238	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.IoBroker
      2023-09-04 17:23:19.237	error	Caught by controller[0]: node:internal/modules/cjs/loader:446
      

      Folgendes hab ich im Javascript Module ausgeführt, hat nichts gebracht:

      npm install --production
      

      Hab auch im Forum gelesen, dass coffeescript gar nicht mehr unterstützt wird, weiss nur nicht, weshalb er dies braucht...

      bahnuhr 1 Reply Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active @Dominic Reber last edited by

        @dominic-reber

        Hatte ich auch schon.
        probier mal:
        javascript instanz und adapter komplett löschen.

        Und danach
        adapter und instanz javascript neu installieren.

        Dominic Reber 1 Reply Last reply Reply Quote 2
        • Dominic Reber
          Dominic Reber @bahnuhr last edited by

          @bahnuhr Hey super das hat das Problem gelöst, herzlichen Dank!

          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

          773
          Online

          32.1k
          Users

          80.7k
          Topics

          1.3m
          Posts

          2
          3
          376
          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