Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Host-Update fehlgeschlagen, ioBroker 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

    Host-Update fehlgeschlagen, ioBroker läuft nicht mehr

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

      Guten Morgen zusammen,

      ich wollte heute morgen meinen Host update (nach der offiziellen Anleitung). Die Befehle "iob stop" und "iob backup" konnten wunderbar ausgeführt werden. Beim Befehl "iob update" bin ich dann auf die Nase gefallen.

      Die ursprüngliche Meldung war "No connection to databases ...". Also habe ich mich mal auf die Suche hier im Forum gemacht und ein paar Dinge ausprobiert. Letzten Endes bin ich zu dem Punkt gekommen, dass der js-controller wohl nicht korrekt installiert ist und sich auch nicht mehr installieren lässt.

      Hier der aktuelle Stand:

      max@zelmer:/opt/iobroker$ iob status
      internal/modules/cjs/loader.js:905
        throw err;
        ^
      
      Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
          at Function.Module._load (internal/modules/cjs/loader.js:746:27)
          at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
          at internal/main/run_main_module.js:17:47 {
        code: 'MODULE_NOT_FOUND',
        requireStack: []
      }
      

      Danach habe ich folgenden Befehl mit folgendem Resultat ausgeführt:

      max@zelmer:/opt/iobroker$ sudo -H -u iobroker npm install iobroker.js-controller
      npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
      
      > iobroker.js-controller@4.0.23 preinstall /opt/iobroker/node_modules/iobroker.js-controller
      > node lib/preinstallCheck.js
      
      NPM version: 6.14.16
      
      > unix-dgram@2.0.4 install /opt/iobroker/node_modules/unix-dgram
      > node-gyp rebuild
      
      make: Entering directory '/opt/iobroker/node_modules/unix-dgram/build'
        CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
      In file included from ../../nan/nan.h:58,
                       from ../src/unix_dgram.cc:5:
      /home/iobroker/.cache/node-gyp/14.19.1/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
        793 |       (node::addon_register_func) (regfunc),                          \
            |                                           ^
      /home/iobroker/.cache/node-gyp/14.19.1/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
        827 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
            |   ^~~~~~~~~~~~~
      ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
        404 | NODE_MODULE(unix_dgram, Initialize)
            | ^~~~~~~~~~~
        SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
        COPY Release/unix_dgram.node
      make: Leaving directory '/opt/iobroker/node_modules/unix-dgram/build'
      
      > ursa-optional@0.9.10 install /opt/iobroker/node_modules/ursa-optional
      > node rebuild.js
      
      ursaNative bindings compilation fail. This is not an issue. Modules that depend on it will use fallbacks.
      
      > diskusage@1.1.3 install /opt/iobroker/node_modules/diskusage
      > node-gyp rebuild
      
      make: Entering directory '/opt/iobroker/node_modules/diskusage/build'
        CXX(target) Release/obj.target/diskusage/src/main.o
      In file included from ../../nan/nan.h:58,
                       from ../src/main.cpp:3:
      /home/iobroker/.cache/node-gyp/14.19.1/include/node/node.h:793:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
        793 |       (node::addon_register_func) (regfunc),                          \
            |                                           ^
      /home/iobroker/.cache/node-gyp/14.19.1/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
        827 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
            |   ^~~~~~~~~~~~~
      ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
         42 | NODE_MODULE(diskusage, Init)
            | ^~~~~~~~~~~
        CXX(target) Release/obj.target/diskusage/src/diskusage_posix.o
        SOLINK_MODULE(target) Release/obj.target/diskusage.node
        COPY Release/diskusage.node
      make: Leaving directory '/opt/iobroker/node_modules/diskusage/build'
      
      > iobroker.js-controller@4.0.23 install /opt/iobroker/node_modules/iobroker.js-controller
      > node iobroker.js setup first
      
      Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"!
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/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":"x64"})
      
      npm ERR! code ELIFECYCLE
      npm ERR! errno 24
      npm ERR! iobroker.js-controller@4.0.23 install: `node iobroker.js setup first`
      npm ERR! Exit status 24
      npm ERR!
      npm ERR! Failed at the iobroker.js-controller@4.0.23 install script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/iobroker/.npm/_logs/2022-04-27T09_15_19_262Z-debug.log
      

      Ich wollte doch nur meinen Host update 😞
      Ich hoffe, jemand kann mir helfen.

      Viele Grüße!

      Max Zelmer 1 Reply Last reply Reply Quote 0
      • Max Zelmer
        Max Zelmer @Max Zelmer last edited by

        Was auch immer das Problem war, ich konnte es lösen, auch wenn ich nicht wirklich glücklich darüber bin.

        • Ich habe zuerst das iobroker-Verzeichnis in iobroker_ umbenannt.
        • Dann habe ich gemäß Installationsanleitung iobroker neuinstalliert.
        • Zum Schluss habe ich mein Backup von letzter Nacht eingespielt.

        Aktuell sieht es gut aus.

        Viele Grüße!

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

        Support us

        ioBroker
        Community Adapters
        Donate

        878
        Online

        31.9k
        Users

        80.1k
        Topics

        1.3m
        Posts

        1
        2
        317
        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