Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. js-controller 3.0/3.1 jetzt im Latest!

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.8k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.2k

js-controller 3.0/3.1 jetzt im Latest!

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
js-controller
1.3k Beiträge 127 Kommentatoren 497.0k Aufrufe 89 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • E e-s

    @Thomas-Braun
    ok, danke erstmal. den npm Fehler habe ich jetzt weg. Dafür habe ich einen Fehler im npm rebuild vom serialport, wofür auch immer der ist.

       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                         ^~~
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
    ../src/serialport.cpp:331:96: error: no matching function for call to âv8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)â
         results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
                                                                                                    ^
    In file included from /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:67:0,
                     from ../../nan/nan.h:56,
                     from ../src/./serialport.h:6,
                     from ../src/serialport.cpp:1:
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                         ^~~
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note:   candidate expects 3 arguments, 2 provided
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                         ^~~
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
    ../src/serialport.cpp:336:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
       data->callback.Call(2, argv);
                                  ^
    In file included from ../src/./serialport.h:6:0,
                     from ../src/serialport.cpp:1:
    ../../nan/nan.h:1742:3: note: declared here
       Call(int argc, v8::Local<v8::Value> argv[]) const {
       ^~~~
    ../src/serialport.cpp: In function âvoid EIO_AfterGetBaudRate(uv_work_t*)â:
    ../src/serialport.cpp:378:106: error: no matching function for call to âv8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)â
         results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
                                                                                                              ^
    In file included from /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:67:0,
                     from ../../nan/nan.h:56,
                     from ../src/./serialport.h:6,
                     from ../src/serialport.cpp:1:
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                         ^~~
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note:   candidate expects 3 arguments, 2 provided
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                         ^~~
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
    ../src/serialport.cpp:383:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
       data->callback.Call(2, argv);
                                  ^
    In file included from ../src/./serialport.h:6:0,
                     from ../src/serialport.cpp:1:
    ../../nan/nan.h:1742:3: note: declared here
       Call(int argc, v8::Local<v8::Value> argv[]) const {
       ^~~~
    ../src/serialport.cpp: In function âvoid EIO_AfterDrain(uv_work_t*)â:
    ../src/serialport.cpp:424:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
       data->callback.Call(1, argv);
                                  ^
    In file included from ../src/./serialport.h:6:0,
                     from ../src/serialport.cpp:1:
    ../../nan/nan.h:1742:3: note: declared here
       Call(int argc, v8::Local<v8::Value> argv[]) const {
       ^~~~
    ../src/serialport.cpp: At global scope:
    ../src/serialport.cpp:460:17: error: variable or field âinitâ declared void
       void init(v8::Handle<v8::Object> target) {
                     ^~~~~~
    ../src/serialport.cpp:460:17: error: âHandleâ is not a member of âv8â
    ../src/serialport.cpp:460:34: error: expected primary-expression before â>â token
       void init(v8::Handle<v8::Object> target) {
                                      ^
    ../src/serialport.cpp:460:36: error: âtargetâ was not declared in this scope
       void init(v8::Handle<v8::Object> target) {
                                        ^~~~~~
    ../src/serialport.cpp:460:36: note: suggested alternative: âtzsetâ
       void init(v8::Handle<v8::Object> target) {
                                        ^~~~~~
                                        tzset
    In file included from ../../nan/nan.h:56:0,
                     from ../src/./serialport.h:6,
                     from ../src/serialport.cpp:1:
    ../src/serialport.cpp:485:25: error: âinitâ was not declared in this scope
     NODE_MODULE(serialport, init);
                             ^
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:731:36: note: in definition of macro âNODE_MODULE_Xâ
           (node::addon_register_func) (regfunc),                          \
                                        ^~~~~~~
    ../src/serialport.cpp:485:1: note: in expansion of macro âNODE_MODULEâ
     NODE_MODULE(serialport, init);
     ^~~~~~~~~~~
    ../src/serialport.cpp:485:25: note: suggested alternative: âintâ
     NODE_MODULE(serialport, init);
                             ^
    /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:731:36: note: in definition of macro âNODE_MODULE_Xâ
           (node::addon_register_func) (regfunc),                          \
                                        ^~~~~~~
    ../src/serialport.cpp:485:1: note: in expansion of macro âNODE_MODULEâ
     NODE_MODULE(serialport, init);
     ^~~~~~~~~~~
    serialport.target.mk:114: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
    make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
    make: Verzeichnis â/opt/iobroker/node_modules/serialport/buildâ wird verlassen
    gyp ERR! build error
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
    gyp ERR! System Linux 4.15.0-96-generic
    gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /opt/iobroker/node_modules/serialport
    gyp ERR! node -v v14.0.0
    gyp ERR! node-gyp -v v5.1.0
    gyp ERR! not ok
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the serialport@6.2.2 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/2020-04-27T21_15_55_218Z-debug.log
    
    
    K Online
    K Online
    Kueppert
    schrieb am zuletzt editiert von
    #498

    @e-s könnte zB der Zigbee-Adapter sein. Ich hab den auch drauf und auch WARN Meldungen gehabt beim Update von Node. Allerdings keine ERR-Meldungen.

    UDM Pro, Intel NUC - ioBroker in Proxmox-VM, PiHole+Grafana&Influx+TasmoAdmin in LXCs, Raspberry Pi3 (als CCU), Zigbee-Stick Sonoff, Synology DS918+

    1 Antwort Letzte Antwort
    0
    • apollon77A apollon77

      @e-s Da scheint irgendeiner Deiner Adapter noch serialpot 6 zu nutzen was mit Node 12 schon nicht mehr geescheit tut. Also hier wäre der Tipp mal die Adapter zu prüfen die Seriell arbeiten ob es Updates gibt

      E Abwesend
      E Abwesend
      e-s
      schrieb am zuletzt editiert von
      #499

      @apollon77
      Einer von euch ist Schuld... :blush:

      serialport nutzt keiner meiner Adapter, aber ich habe herausgefunden, das discovery das braucht.
      Da ich aber den Adapter gelöscht habe, wurden die Abhängigkeiten nicht mehr angepasst bzw überprüft.
      Also hätte beim löschen des Adapters auch die zusätzlichen deps gelöscht werden müssen, das wiederum ist auch blöd wenn mehrere Adapter die Abhängigkeit brauchen.

      Ein Teufelskreis, ich werde jetzt kurz discovery installieren und somit hoffen das serialport dann auf 8.0.7 angehoben wird, so wie es im git steht.

      Oder habt Ihr eine bessere Idee?

      ? 1 Antwort Letzte Antwort
      0
      • E e-s

        @apollon77
        Einer von euch ist Schuld... :blush:

        serialport nutzt keiner meiner Adapter, aber ich habe herausgefunden, das discovery das braucht.
        Da ich aber den Adapter gelöscht habe, wurden die Abhängigkeiten nicht mehr angepasst bzw überprüft.
        Also hätte beim löschen des Adapters auch die zusätzlichen deps gelöscht werden müssen, das wiederum ist auch blöd wenn mehrere Adapter die Abhängigkeit brauchen.

        Ein Teufelskreis, ich werde jetzt kurz discovery installieren und somit hoffen das serialport dann auf 8.0.7 angehoben wird, so wie es im git steht.

        Oder habt Ihr eine bessere Idee?

        ? Offline
        ? Offline
        Ein ehemaliger Benutzer
        schrieb am zuletzt editiert von
        #500

        @e-s @apollon77

        genau das Problem hab ich auch...
        Der Discovery wird ja nur nach dem Einrichten gebraucht, daher gelöscht.. 2 Jahre her.. :face_palm:

        E 1 Antwort Letzte Antwort
        0
        • MiGollerM Offline
          MiGollerM Offline
          MiGoller
          Developer
          schrieb am zuletzt editiert von
          #501

          Hallo zusammen.

          Vielen Dank für die gute Arbeit! Das möchte ich erst einmal loswerden.

          Beim Upgrade des js-controllers von 2.2.9 auf 3.0.19 auf meiner Prod-Umgebung habe ich allerdings folgende Meldung bei der Installation gesehen.

          $ sudo iobroker upgrade self
          Update js-controller from @2.2.9 to @3.0.19
          NPM version: 6.14.4
          npm install iobroker.js-controller@3.0.19 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
          (node:14431) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
              at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
              at processTicksAndRejections (internal/process/task_queues.js:97:5)
          (node:14431) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
          (node:14431) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
          

          Müsste da nicht wahrscheinlich callback statt allback stehen? Habe mir den Code noch nicht angeschaut.

          Viele Grüße, MiGoller

          ioBroker auf Intel Atom x5-Z8350 mit KNX, Gardena, Roomba, MQTT, Sonoff, Life360

          MiGollerM B 2 Antworten Letzte Antwort
          0
          • ? Ein ehemaliger Benutzer

            @e-s @apollon77

            genau das Problem hab ich auch...
            Der Discovery wird ja nur nach dem Einrichten gebraucht, daher gelöscht.. 2 Jahre her.. :face_palm:

            E Abwesend
            E Abwesend
            e-s
            schrieb am zuletzt editiert von e-s
            #502

            @ilovegym @apollon77

            Mach das bloß nicht manuell...
            discovery installíeren hat nichts gebracht, also habe ich mit

            npm i serialport@8.0.7

            aktualisiert.
            Dann kam aber der nächste Fehler, bluetooth -hci-socket wollte nicht, also auch den aktualiert obwohl ich den nicht benötige.

            npm i @abandonware/bluetooth-hci-socket@0.5.3-5

            jetzt kam ein Fehler von @serialport/bindings

            npm i @serialport/bindings@@8.0.7

            anschließend gab es keine Fehler mehr bei npm rebuild

            ? 1 Antwort Letzte Antwort
            0
            • MiGollerM MiGoller

              Hallo zusammen.

              Vielen Dank für die gute Arbeit! Das möchte ich erst einmal loswerden.

              Beim Upgrade des js-controllers von 2.2.9 auf 3.0.19 auf meiner Prod-Umgebung habe ich allerdings folgende Meldung bei der Installation gesehen.

              $ sudo iobroker upgrade self
              Update js-controller from @2.2.9 to @3.0.19
              NPM version: 6.14.4
              npm install iobroker.js-controller@3.0.19 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
              (node:14431) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
                  at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
                  at processTicksAndRejections (internal/process/task_queues.js:97:5)
              (node:14431) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
              (node:14431) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
              

              Müsste da nicht wahrscheinlich callback statt allback stehen? Habe mir den Code noch nicht angeschaut.

              Viele Grüße, MiGoller

              MiGollerM Offline
              MiGollerM Offline
              MiGoller
              Developer
              schrieb am zuletzt editiert von
              #503

              @MiGoller sagte in js-controller 3.0 jetzt im Latest!:

              Hallo zusammen.

              Vielen Dank für die gute Arbeit! Das möchte ich erst einmal loswerden.

              Beim Upgrade des js-controllers von 2.2.9 auf 3.0.19 auf meiner Prod-Umgebung habe ich allerdings folgende Meldung bei der Installation gesehen.

              $ sudo iobroker upgrade self
              Update js-controller from @2.2.9 to @3.0.19
              NPM version: 6.14.4
              npm install iobroker.js-controller@3.0.19 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
              (node:14431) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
                  at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
                  at processTicksAndRejections (internal/process/task_queues.js:97:5)
              (node:14431) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
              (node:14431) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
              

              Müsste da nicht wahrscheinlich callback statt allback stehen? Habe mir den Code noch nicht angeschaut.

              Viele Grüße, MiGoller

              Hallo zusammen, nachdem auch die Version 3.0.18 in Verbindung mit Redis kein lauffähiges System mehr hervorgebracht hat, habe ich einen "Rücksturz" auf 2.2.9 durchgeführt. Letzt läuft es erst einmal wieder.

              Könnte da ein Zusammenhang mit meiner Redis-Konfiguration bestehen, die unter Version 2 des Controllers problemlos läuft?

              Viele Grüße, MiGoller

              ioBroker auf Intel Atom x5-Z8350 mit KNX, Gardena, Roomba, MQTT, Sonoff, Life360

              1 Antwort Letzte Antwort
              0
              • MiGollerM MiGoller

                Hallo zusammen.

                Vielen Dank für die gute Arbeit! Das möchte ich erst einmal loswerden.

                Beim Upgrade des js-controllers von 2.2.9 auf 3.0.19 auf meiner Prod-Umgebung habe ich allerdings folgende Meldung bei der Installation gesehen.

                $ sudo iobroker upgrade self
                Update js-controller from @2.2.9 to @3.0.19
                NPM version: 6.14.4
                npm install iobroker.js-controller@3.0.19 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
                (node:14431) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
                    at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
                    at processTicksAndRejections (internal/process/task_queues.js:97:5)
                (node:14431) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
                (node:14431) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
                

                Müsste da nicht wahrscheinlich callback statt allback stehen? Habe mir den Code noch nicht angeschaut.

                Viele Grüße, MiGoller

                B Offline
                B Offline
                blackeagle998
                schrieb am zuletzt editiert von
                #504

                @MiGoller sagte in js-controller 3.0 jetzt im Latest!:

                Hallo zusammen.

                Vielen Dank für die gute Arbeit! Das möchte ich erst einmal loswerden.

                Beim Upgrade des js-controllers von 2.2.9 auf 3.0.19 auf meiner Prod-Umgebung habe ich allerdings folgende Meldung bei der Installation gesehen.

                $ sudo iobroker upgrade self
                Update js-controller from @2.2.9 to @3.0.19
                NPM version: 6.14.4
                npm install iobroker.js-controller@3.0.19 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
                (node:14431) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
                    at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
                    at processTicksAndRejections (internal/process/task_queues.js:97:5)
                (node:14431) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
                (node:14431) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
                

                Müsste da nicht wahrscheinlich callback statt allback stehen? Habe mir den Code noch nicht angeschaut.

                Viele Grüße, MiGoller

                Hallo, ich habe gerade exakt den gleichen Fehler, ebenfalls von Version 2.2.9 zu 3.0.19.

                khgK 1 Antwort Letzte Antwort
                0
                • apollon77A Offline
                  apollon77A Offline
                  apollon77
                  schrieb am zuletzt editiert von
                  #505

                  Der controller 3.0.20 ist auf Github - der fixt das ... sorry ...

                  Sollte bald im Latest Repo sein, alternativ IM IOBROKER-VERZEICHNIS(!!) ein "npm install iobroker.js-controller@3.0.20" ausführen

                  Changelog:
                  3.0.20 (2020-04-28) Release Elena

                  • (Apollon77) make sure disabling instances while installation is running do not crash the controller (Sentry IOBROKER-JS-CONTROLLER-Z)
                  • (From Forum) prevent error on backup restore
                  • (Apollon77) Make sure error handing do not throw exception
                  • (Apollon77) Catch all errors when trying to store the File DB (Sentry IOBROKER-JS-CONTROLLER-14/15)
                  • (Apollon77) Make sure also edge cases on start adapter are handled correctly (Sentry IOBROKER-JS-CONTROLLER-12)
                  • (Apollon77) Use 3.3.4 of objects library to prevent an error from 3.3.3

                  Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                  • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                  • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                  ? sigi234S 2 Antworten Letzte Antwort
                  4
                  • B blackeagle998

                    @MiGoller sagte in js-controller 3.0 jetzt im Latest!:

                    Hallo zusammen.

                    Vielen Dank für die gute Arbeit! Das möchte ich erst einmal loswerden.

                    Beim Upgrade des js-controllers von 2.2.9 auf 3.0.19 auf meiner Prod-Umgebung habe ich allerdings folgende Meldung bei der Installation gesehen.

                    $ sudo iobroker upgrade self
                    Update js-controller from @2.2.9 to @3.0.19
                    NPM version: 6.14.4
                    npm install iobroker.js-controller@3.0.19 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
                    (node:14431) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
                        at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
                        at processTicksAndRejections (internal/process/task_queues.js:97:5)
                    (node:14431) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
                    (node:14431) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
                    

                    Müsste da nicht wahrscheinlich callback statt allback stehen? Habe mir den Code noch nicht angeschaut.

                    Viele Grüße, MiGoller

                    Hallo, ich habe gerade exakt den gleichen Fehler, ebenfalls von Version 2.2.9 zu 3.0.19.

                    khgK Offline
                    khgK Offline
                    khg
                    schrieb am zuletzt editiert von
                    #506

                    update js-controller 3.0.18 --> 30.19 nicht möglich.
                    Node.js v12.16.2
                    NPM 6.14.4

                    Detail:
                    int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                    ^
                    In file included from ../src/epoll.cc:11:
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Localv8::Context) const’
                    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
                    ^~~~~~~~~~
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
                    ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Remove(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/epoll.cc:247:47: error: no matching function for call to ‘v8::Value::Int32Value()’
                    int err = epoll->Remove(info[0]->Int32Value());
                    ^
                    In file included from ../src/epoll.cc:11:
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Localv8::Context) const’
                    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
                    ^~~~~~~~~~
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
                    In file included from ../src/epoll.cc:12:
                    ../src/epoll.cc: At global scope:
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
                    (node::addon_register_func) (regfunc),
                    ^
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:642:3: note: in expansion of macro ‘NODE_MODULE_X’
                    NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
                    ^~~~~~~~~~~~~
                    ../src/epoll.cc:381:1: note: in expansion of macro ‘NODE_MODULE’
                    NODE_MODULE(epoll, Epoll::Init)
                    ^~~~~~~~~~~
                    In file included from ../src/epoll.cc:11:
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/node_object_wrap.h:85:78: required from here
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
                    )(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                    reinterpret_cast<Callback>(callback), type);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P
                    , typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
                    ../../nan/nan_object_wrap.h:66:61: required from here
                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
                    )(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                    make: *** [epoll.target.mk:111: Release/obj.target/epoll/src/epoll.o] Fehler 1
                    gyp ERR! build error
                    gyp ERR! stack Error: make failed with exit code: 2
                    gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
                    gyp ERR! stack at ChildProcess.emit (events.js:310:20)
                    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
                    gyp ERR! System Linux 5.4.28-rockchip
                    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                    gyp ERR! cwd /opt/iobroker/node_modules/rpi-gpio/node_modules/epoll
                    gyp ERR! node -v v12.16.2
                    gyp ERR! node-gyp -v v5.1.0
                    gyp ERR! not ok
                    (node:19963) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
                    at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
                    at processTicksAndRejections (internal/process/task_queues.js:97:5)
                    (node:19963) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
                    (node:19963) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code

                    bleibt hier händen und Abbruch mit Ctrl-C.

                    iobroker start
                    iobroker status

                    (node:26663) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
                    at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
                    at processTicksAndRejections (internal/process/task_queues.js:97:5)
                    (node:26663) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
                    (node:26663) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

                    sigi234S 1 Antwort Letzte Antwort
                    0
                    • khgK khg

                      update js-controller 3.0.18 --> 30.19 nicht möglich.
                      Node.js v12.16.2
                      NPM 6.14.4

                      Detail:
                      int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                      ^
                      In file included from ../src/epoll.cc:11:
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Localv8::Context) const’
                      V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
                      ^~~~~~~~~~
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
                      ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Remove(Nan::NAN_METHOD_ARGS_TYPE)’:
                      ../src/epoll.cc:247:47: error: no matching function for call to ‘v8::Value::Int32Value()’
                      int err = epoll->Remove(info[0]->Int32Value());
                      ^
                      In file included from ../src/epoll.cc:11:
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Localv8::Context) const’
                      V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
                      ^~~~~~~~~~
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
                      In file included from ../src/epoll.cc:12:
                      ../src/epoll.cc: At global scope:
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
                      (node::addon_register_func) (regfunc),
                      ^
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:642:3: note: in expansion of macro ‘NODE_MODULE_X’
                      NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
                      ^~~~~~~~~~~~~
                      ../src/epoll.cc:381:1: note: in expansion of macro ‘NODE_MODULE’
                      NODE_MODULE(epoll, Epoll::Init)
                      ^~~~~~~~~~~
                      In file included from ../src/epoll.cc:11:
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/node_object_wrap.h:85:78: required from here
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
                      )(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                      reinterpret_cast<Callback>(callback), type);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P
                      , typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
                      ../../nan/nan_object_wrap.h:66:61: required from here
                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
                      )(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                      make: *** [epoll.target.mk:111: Release/obj.target/epoll/src/epoll.o] Fehler 1
                      gyp ERR! build error
                      gyp ERR! stack Error: make failed with exit code: 2
                      gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
                      gyp ERR! stack at ChildProcess.emit (events.js:310:20)
                      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
                      gyp ERR! System Linux 5.4.28-rockchip
                      gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                      gyp ERR! cwd /opt/iobroker/node_modules/rpi-gpio/node_modules/epoll
                      gyp ERR! node -v v12.16.2
                      gyp ERR! node-gyp -v v5.1.0
                      gyp ERR! not ok
                      (node:19963) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
                      at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
                      at processTicksAndRejections (internal/process/task_queues.js:97:5)
                      (node:19963) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
                      (node:19963) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code

                      bleibt hier händen und Abbruch mit Ctrl-C.

                      iobroker start
                      iobroker status

                      (node:26663) UnhandledPromiseRejectionWarning: ReferenceError: allback is not defined
                      at _0x411ccb._applyViewFunc (/opt/iobroker/node_modules/iobroker.objects-redis/index.js:1:115051)
                      at processTicksAndRejections (internal/process/task_queues.js:97:5)
                      (node:26663) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
                      (node:26663) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

                      sigi234S Online
                      sigi234S Online
                      sigi234
                      Forum Testing Most Active
                      schrieb am zuletzt editiert von
                      #507

                      @khg

                      Bitte benutzt die Code Tags Funktion -> </>
                      Hier gehts zur Hilfe.

                      Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                      Immer Daten sichern!

                      khgK 1 Antwort Letzte Antwort
                      0
                      • E e-s

                        @ilovegym @apollon77

                        Mach das bloß nicht manuell...
                        discovery installíeren hat nichts gebracht, also habe ich mit

                        npm i serialport@8.0.7

                        aktualisiert.
                        Dann kam aber der nächste Fehler, bluetooth -hci-socket wollte nicht, also auch den aktualiert obwohl ich den nicht benötige.

                        npm i @abandonware/bluetooth-hci-socket@0.5.3-5

                        jetzt kam ein Fehler von @serialport/bindings

                        npm i @serialport/bindings@@8.0.7

                        anschließend gab es keine Fehler mehr bei npm rebuild

                        ? Offline
                        ? Offline
                        Ein ehemaliger Benutzer
                        schrieb am zuletzt editiert von
                        #508

                        @e-s Hi, Danke, hat geholfen. Musste noch node-gyp drüberbügeln, dann war da auch Ruhe.

                        1 Antwort Letzte Antwort
                        0
                        • sigi234S sigi234

                          @khg

                          Bitte benutzt die Code Tags Funktion -> </>
                          Hier gehts zur Hilfe.

                          khgK Offline
                          khgK Offline
                          khg
                          schrieb am zuletzt editiert von khg
                          #509

                          @sigi234 sagte in js-controller 3.0 jetzt im Latest!:

                          Bitte benutzt die Code Tags Funktion -> </>

                          ok, schaue ich mir an,
                          eben wurde der js-controller 3.0.20 erstellt und das Problem ist damit behoben.

                          1 Antwort Letzte Antwort
                          0
                          • apollon77A apollon77

                            Der controller 3.0.20 ist auf Github - der fixt das ... sorry ...

                            Sollte bald im Latest Repo sein, alternativ IM IOBROKER-VERZEICHNIS(!!) ein "npm install iobroker.js-controller@3.0.20" ausführen

                            Changelog:
                            3.0.20 (2020-04-28) Release Elena

                            • (Apollon77) make sure disabling instances while installation is running do not crash the controller (Sentry IOBROKER-JS-CONTROLLER-Z)
                            • (From Forum) prevent error on backup restore
                            • (Apollon77) Make sure error handing do not throw exception
                            • (Apollon77) Catch all errors when trying to store the File DB (Sentry IOBROKER-JS-CONTROLLER-14/15)
                            • (Apollon77) Make sure also edge cases on start adapter are handled correctly (Sentry IOBROKER-JS-CONTROLLER-12)
                            • (Apollon77) Use 3.3.4 of objects library to prevent an error from 3.3.3
                            ? Offline
                            ? Offline
                            Ein ehemaliger Benutzer
                            schrieb am zuletzt editiert von
                            #510

                            @apollon77

                            Also, die Elena verträgt sich wohl ganz gut mit der Silvia, Tessa und Buster. Mit der Debbie schau ich die Tage dann noch.. :-)

                            1 Antwort Letzte Antwort
                            1
                            • apollon77A apollon77

                              Der controller 3.0.20 ist auf Github - der fixt das ... sorry ...

                              Sollte bald im Latest Repo sein, alternativ IM IOBROKER-VERZEICHNIS(!!) ein "npm install iobroker.js-controller@3.0.20" ausführen

                              Changelog:
                              3.0.20 (2020-04-28) Release Elena

                              • (Apollon77) make sure disabling instances while installation is running do not crash the controller (Sentry IOBROKER-JS-CONTROLLER-Z)
                              • (From Forum) prevent error on backup restore
                              • (Apollon77) Make sure error handing do not throw exception
                              • (Apollon77) Catch all errors when trying to store the File DB (Sentry IOBROKER-JS-CONTROLLER-14/15)
                              • (Apollon77) Make sure also edge cases on start adapter are handled correctly (Sentry IOBROKER-JS-CONTROLLER-12)
                              • (Apollon77) Use 3.3.4 of objects library to prevent an error from 3.3.3
                              sigi234S Online
                              sigi234S Online
                              sigi234
                              Forum Testing Most Active
                              schrieb am zuletzt editiert von sigi234
                              #511

                              @apollon77 sagte in js-controller 3.0 jetzt im Latest!:

                              Der controller 3.0.20 ist auf Github - der fixt das ... sorry ...

                              Diesmal geht es bei mir nicht.

                              C:\Program Files\iobroker\Test>iobroker upgrade self
                              Update js-controller from @3.0.19 to @3.0.20
                              NPM version: 6.9.0
                              npm install iobroker.js-controller@3.0.20 --loglevel error --unsafe-perm (System call)
                              npm ERR! path C:\Program Files\iobroker\Test\node_modules\iobroker.js-controller
                              npm ERR! code EBUSY
                              npm ERR! errno -4082
                              npm ERR! syscall rename
                              npm ERR! EBUSY: resource busy or locked, rename 'C:\Program Files\iobroker\Test\node_modules\iobroker.js-controller' -> 'C:\Program Files\iobroker\Test\node_modules\.iobroker.js-controller.DELETE'
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     C:\Program Files\iobroker\Test\env\npm-cache\_logs\2020-04-28T11_49_52_485Z-debug.log
                              host.Medion(Test) Cannot install iobroker.js-controller@3.0.20: 4294963214
                              

                              npm ERR! EBUSY: resource busy or locked

                              Wollen zu viele gleichzeitig updaten?

                              Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                              Immer Daten sichern!

                              apollon77A 1 Antwort Letzte Antwort
                              0
                              • DiginixD Offline
                                DiginixD Offline
                                Diginix
                                schrieb am zuletzt editiert von
                                #512

                                @apollon77 Seit 3.0.19 werden die Logs wieder gezippt rotiert. Mein Logrotate max 14 days hat das Update von Version 2 auf 3 überlebt aber warum das nicht-zippen nicht? Wie konnte man das in der iobroker.json abstellen?

                                ..:: So long! Tom ::..

                                NUC7i3 (Ubuntu Proxmox VM) | Echo Dots 2+3. Gen | Xiaomi Sensoren | Mi Robot 1S | Yeelight | Sonoff | Shelly | H801 RGB | Gosund SP1 | NodeMCU+ESP32 | Kostal Plenticore PV+BYD | openWB

                                apollon77A MaufloM 2 Antworten Letzte Antwort
                                0
                                • DiginixD Diginix

                                  @apollon77 Seit 3.0.19 werden die Logs wieder gezippt rotiert. Mein Logrotate max 14 days hat das Update von Version 2 auf 3 überlebt aber warum das nicht-zippen nicht? Wie konnte man das in der iobroker.json abstellen?

                                  apollon77A Offline
                                  apollon77A Offline
                                  apollon77
                                  schrieb am zuletzt editiert von
                                  #513

                                  @Diginix Seit der 3.0.0 ist das wieder so - war eigentlich ein Fehler das es in der 2.2 doch nicht drin war. Ausschalten in der iobroker-data/iobroker.json siehe https://github.com/ioBroker/ioBroker.js-controller/blob/master/README.md#file-based-logging

                                  Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                  • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                  • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                  E 1 Antwort Letzte Antwort
                                  1
                                  • apollon77A apollon77

                                    @Diginix Seit der 3.0.0 ist das wieder so - war eigentlich ein Fehler das es in der 2.2 doch nicht drin war. Ausschalten in der iobroker-data/iobroker.json siehe https://github.com/ioBroker/ioBroker.js-controller/blob/master/README.md#file-based-logging

                                    E Abwesend
                                    E Abwesend
                                    e-s
                                    schrieb am zuletzt editiert von
                                    #514

                                    @apollon77
                                    Hattest du dir meine vorherigen posts durchgelesen, hätte iobroker die veralteten und ungenutzten deps aktualisieren oder löschen sollen, oder muss man das weiter per Hand machen?
                                    Oder sollte man wenn man doch häufig testet und löscht, den data Ordner in einer Neuinstallation restoren um sich von alter last zu trennen?

                                    apollon77A 1 Antwort Letzte Antwort
                                    0
                                    • C Offline
                                      C Offline
                                      cybertron
                                      schrieb am zuletzt editiert von cybertron
                                      #515

                                      Das Update auf 3.0.19 hat heute morgen zwar geklapt, alledings rannten der Master und auch alle Slaves danach in einer Art Dauer-Reboot-Schleife.
                                      In der Anzeige über htop starteten die einzelnen Adapter, waren aber danach direkt wieder verschwunden.

                                      Da der Master gar nicht mehr auf die Füsse kam, hab ich diesen über den Snapshot wieder zurück auf 3.0.14 geholt.
                                      Einen Slave habe ich über ein erneutes Update dann vorhin auf 3.0.20 gebracht.
                                      Einen weiteren über eine Neuinstallation erst auf 2.x.x und daraus auf 3.0.20.

                                      Jetzt wollte ich den Master und einen 3. Slave noch machen.
                                      Dabei bekomme ich jedoch folgende Meldung:

                                      root@mh-iobroker-00:/opt/iobroker# iobroker upgrade self
                                      Update js-controller from @3.0.14 to @3.0.20
                                      NPM version: 6.14.4
                                      npm install iobroker.js-controller@3.0.20 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                                      readFile will not read this file (tts.userfiles/scifi.mp3) in future versions: sayit.0 is not an object of type "meta"
                                      readFile will not read this file (tts.userfiles/gong.mp3) in future versions: sayit.0 is not an object of type "meta"
                                      npm ERR! Unexpected end of JSON input while parsing near '...0","@sentry/utils":"5'
                                      
                                      npm ERR! A complete log of this run can be found in:
                                      npm ERR!     /home/iobroker/.npm/_logs/2020-04-28T13_30_05_795Z-debug.log
                                      Starting node restart.js
                                      
                                      

                                      Eine komplette Neuinstallation beim Slave endet ebenfals fehlerhaft.

                                      ==========================================================================
                                      
                                          Welcome to the ioBroker installer!
                                          Installer version: 2020-04-12
                                      
                                      ==========================================================================
                                      
                                      
                                      ==========================================================================
                                          Installing prerequisites (1/4)
                                      ==========================================================================
                                      
                                      OK:1 http://archive.raspberrypi.org/debian buster InRelease
                                      OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                      OK:3 https://deb.nodesource.com/node_12.x buster InRelease
                                      Paketlisten werden gelesen... Fertig
                                      Changing npm registry to https://registry.npmjs.org
                                      Installed gcc-c++
                                      
                                      ==========================================================================
                                          Creating ioBroker user and directory (2/4)
                                      ==========================================================================
                                      
                                      Created /etc/sudoers.d/iobroker
                                      Directory /opt/iobroker created
                                      
                                      ==========================================================================
                                          Installing ioBroker (3/4)
                                      ==========================================================================
                                      
                                      npm ERR! Unexpected end of JSON input while parsing near '...yIFwMzo/6PwmhXvvwYnEz'
                                      
                                      npm ERR! A complete log of this run can be found in:
                                      npm ERR!     /root/.npm/_logs/2020-04-28T13_17_27_855Z-debug.log
                                      
                                      ==========================================================================
                                          Finalizing installation (4/4)
                                      ==========================================================================
                                      
                                      Enabling autostart...
                                      Autostart enabled!
                                      Fixing directory permissions...
                                      
                                      ==========================================================================
                                      
                                          ioBroker was installed successfully
                                          Open http://192.168.30.242:8081 in a browser and start configuring!
                                      
                                      ==========================================================================
                                      
                                      
                                      You need to re-login before doing anything else on the console!
                                      
                                      
                                      apollon77A 1 Antwort Letzte Antwort
                                      0
                                      • sigi234S sigi234

                                        @apollon77 sagte in js-controller 3.0 jetzt im Latest!:

                                        Der controller 3.0.20 ist auf Github - der fixt das ... sorry ...

                                        Diesmal geht es bei mir nicht.

                                        C:\Program Files\iobroker\Test>iobroker upgrade self
                                        Update js-controller from @3.0.19 to @3.0.20
                                        NPM version: 6.9.0
                                        npm install iobroker.js-controller@3.0.20 --loglevel error --unsafe-perm (System call)
                                        npm ERR! path C:\Program Files\iobroker\Test\node_modules\iobroker.js-controller
                                        npm ERR! code EBUSY
                                        npm ERR! errno -4082
                                        npm ERR! syscall rename
                                        npm ERR! EBUSY: resource busy or locked, rename 'C:\Program Files\iobroker\Test\node_modules\iobroker.js-controller' -> 'C:\Program Files\iobroker\Test\node_modules\.iobroker.js-controller.DELETE'
                                        
                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR!     C:\Program Files\iobroker\Test\env\npm-cache\_logs\2020-04-28T11_49_52_485Z-debug.log
                                        host.Medion(Test) Cannot install iobroker.js-controller@3.0.20: 4294963214
                                        

                                        npm ERR! EBUSY: resource busy or locked

                                        Wollen zu viele gleichzeitig updaten?

                                        apollon77A Offline
                                        apollon77A Offline
                                        apollon77
                                        schrieb am zuletzt editiert von
                                        #516

                                        @sigi234 Da ist auf deinem Filesystem was geblockt. Versuch nochmal

                                        Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                        • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                        • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                        sigi234S 1 Antwort Letzte Antwort
                                        0
                                        • E e-s

                                          @apollon77
                                          Hattest du dir meine vorherigen posts durchgelesen, hätte iobroker die veralteten und ungenutzten deps aktualisieren oder löschen sollen, oder muss man das weiter per Hand machen?
                                          Oder sollte man wenn man doch häufig testet und löscht, den data Ordner in einer Neuinstallation restoren um sich von alter last zu trennen?

                                          apollon77A Offline
                                          apollon77A Offline
                                          apollon77
                                          schrieb am zuletzt editiert von
                                          #517

                                          @e-s Naja an sich wirft NPM Dinge weg wenn Sie nicht mehr referenziert werden, sollte also automatisch passieren. AM Ende "Finde den Adapter des das braucht"

                                          Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                          • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                          • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          375

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe