Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Zigbee Instanz rot nach node.js Update auf v12.18.4 [Gelöst]

    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

    UNSOLVED Zigbee Instanz rot nach node.js Update auf v12.18.4 [Gelöst]

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

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Raspberry Pi3
      Arbeitsspeicher: 1GB
      Festplattenart: HDD
      Betriebssystem: Raspbian Stretch
      Node-Version: v12.18.4
      Nodejs-Version: v12.18.4
      NPM-Version: v6.14.6
      Installationsart:
      Image genutzt: Nein

      Liebe Forengemeinde,

      habe meine iobroker System nach langer zeit aktualisiert und habe dazu auch auf die empfohlene node.js Version v12.18.4 geupdatet und bin nun bei js-controller 3.1.6. Hat soweit auch alles funktioniert. Alle Adapter laufen, bis auf den Zigbee Adapter, der nicht mehr starten will. Habe die üblichen Tipps mit npm rebuild und dem Installationsfixer versucht, aber ich bekomme den Adapter nicht mehr zum Laufen. Der Errorlog im iobroker:

      2020-09-20 14:52:33.833 - info: host.raspberrypi Restart adapter system.adapter.zigbee.0 because enabled
      2020-09-20 14:53:03.856 - info: host.raspberrypi instance system.adapter.zigbee.0 started with pid 20206
      2020-09-20 14:53:05.276 - error: host.raspberrypi Caught by controller[0]: /opt/iobroker/node_modules/iobroker.zigbee/node_modules/bindings/bindings.js:96
      2020-09-20 14:53:05.277 - error: host.raspberrypi Caught by controller[0]: throw err
      2020-09-20 14:53:05.277 - error: host.raspberrypi Caught by controller[0]: ^
      2020-09-20 14:53:05.278 - error: host.raspberrypi Caught by controller[0]: Error: Could not locate the bindings file. Tried:
      2020-09-20 14:53:05.278 - error: host.raspberrypi Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/build/serialport.node
      2020-09-20 14:53:05.279 - error: host.raspberrypi Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/build/Debug/serialport.node
      2020-09-20 14:53:05.279 - error: host.raspberrypi Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/build/Release/serialport.node
      2020-09-20 14:53:05.279 - error: host.raspberrypi Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/out/Debug/serialport.node
      2020-09-20 14:53:05.280 - error: host.raspberrypi Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/Debug/serialport.node
      2020-09-20 14:53:05.280 - error: host.raspberrypi Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/out/Release/serialport.node
      2020-09-20 14:53:05.280 - error: host.raspberrypi Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/Release/serialport.node
      2020-09-20 14:53:05.281 - error: host.raspberrypi Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/build/default/serialport.node
      2020-09-20 14:53:05.281 - error: host.raspberrypi Caught by controller[0]: → /opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/compiled/12.18.4/linux/arm/serialport.node
      2020-09-20 14:53:05.282 - error: host.raspberrypi Caught by controller[0]: at bindings (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/bindings/bindings.js:93:9)
      2020-09-20 14:53:05.282 - error: host.raspberrypi Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/lib/bindings/linux.js:2:36)
      2020-09-20 14:53:05.282 - error: host.raspberrypi Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1137:30)
      2020-09-20 14:53:05.283 - error: host.raspberrypi Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
      2020-09-20 14:53:05.283 - error: host.raspberrypi Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:985:32)
      2020-09-20 14:53:05.284 - error: host.raspberrypi Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:878:14)
      2020-09-20 14:53:05.284 - error: host.raspberrypi Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1025:19)
      2020-09-20 14:53:05.284 - error: host.raspberrypi Caught by controller[0]: at require (internal/modules/cjs/helpers.js:72:18)
      2020-09-20 14:53:05.285 - error: host.raspberrypi Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/lib/bindings/auto-detect.js:16:22)
      2020-09-20 14:53:05.285 - error: host.raspberrypi Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1137:30) {
      2020-09-20 14:53:05.285 - error: host.raspberrypi Caught by controller[0]: tries: [
      2020-09-20 14:53:05.286 - error: host.raspberrypi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/build/serialport.node',
      2020-09-20 14:53:05.286 - error: host.raspberrypi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/build/Debug/serialport.node',
      2020-09-20 14:53:05.289 - error: host.raspberrypi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/build/Release/serialport.node',
      2020-09-20 14:53:05.289 - error: host.raspberrypi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/out/Debug/serialport.node',
      2020-09-20 14:53:05.289 - error: host.raspberrypi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/Debug/serialport.node',
      2020-09-20 14:53:05.293 - error: host.raspberrypi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/out/Release/serialport.node',
      2020-09-20 14:53:05.294 - error: host.raspberrypi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/Release/serialport.node',
      2020-09-20 14:53:05.294 - error: host.raspberrypi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/build/default/serialport.node',
      2020-09-20 14:53:05.294 - error: host.raspberrypi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.zigbee/node_modules/serialport/compiled/12.18.4/linux/arm/serialport.node'
      2020-09-20 14:53:05.295 - error: host.raspberrypi Caught by controller[0]: ]
      2020-09-20 14:53:05.295 - error: host.raspberrypi Caught by controller[0]: }
      2020-09-20 14:53:05.296 - error: host.raspberrypi instance system.adapter.zigbee.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      

      Habe auch versucht, den Adapter upzudaten, aber er bleibt immer auf der Version 0.10.2. Habe mittlerweile keine Ahnung mehr, was ich tun könnte. Vielleicht hat ja jemand von euch einen Tipp.

      Besten Dank im Voraus!

      P. S.: @Thomas-Braun hat mit unglaublicher Geduld und Hartnäckigkeit in stundenlanger Arbeit mein Problem Schritt für Schritt gelöst und dabei noch das System auf den aktuellsten Stand gebracht. Dafür nochmals vielen Dank!

      Thomas Braun Asgothian 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @birdy last edited by

        @birdy Bitte die Ausgaben in CodeTags setzen.

        iobroker update
        iobroker upgrade
        
        birdy 1 Reply Last reply Reply Quote 0
        • Asgothian
          Asgothian Developer @birdy last edited by

          @birdy
          Bitte "npm rebuild" auf der Konsole (im Verzeichnis /opt/iobroker) durchführen.

          A.

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

            @Thomas-Braun

            Besten dank für die rasche Antwort!

            Update und upgrade habe ich schon gemacht, um den js-controller auf 3.1.6 zu bringen. Oder soll ich's nochmal anstoßen?

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

              @birdy Vor allen Dingen wären die Ausgaben interessant.

              1 Reply Last reply Reply Quote 0
              • birdy
                birdy @Asgothian last edited by

                @Asgothian

                pi@raspberrypi:/opt/iobroker $ npm rebuild
                
                > serialport@6.2.2 install /opt/iobroker/node_modules/iobroker.discovery/node_modules/serialport
                > prebuild-install || node-gyp rebuild
                
                prebuild-install WARN install No prebuilt binaries found (target=12.18.4 runtime=node arch=arm platform=linux)
                make: Verzeichnis „/opt/iobroker/node_modules/iobroker.discovery/node_modules/serialport/build“ wird betreten
                  CXX(target) Release/obj.target/serialport/src/serialport.o
                ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
                ../src/serialport.cpp:41:48: error: no matching function for call to ‘v8::Value::ToString()’
                   v8::String::Utf8Value path(info[0]->ToString());
                                                                ^
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67:0,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
                   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                                            ^~~~~~~~
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2668:44: note:   candidate expects 1 argument, 0 provided
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8-internal.h:14:0,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:27,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2684:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                                 Local<String> ToString(Isolate* isolate) const);
                                               ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2684:31: note:   candidate expects 1 argument, 0 provided
                                 Local<String> ToString(Isolate* isolate) const);
                                               ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                ../src/serialport.cpp:48:53: error: no matching function for call to ‘v8::Value::ToObject()’
                   v8::Local<v8::Object> options = info[1]->ToObject();
                                                                     ^
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67:0,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
                   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                                            ^~~~~~~~
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8-internal.h:14:0,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:27,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2686:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
                                 Local<Object> ToObject(Isolate* isolate) const);
                                               ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
                                 Local<Object> ToObject(Isolate* isolate) const);
                                               ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
                ../src/serialport.cpp:95: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:1740:3: note: declared here
                   Call(int argc, v8::Local<v8::Value> argv[]) const {
                   ^~~~
                ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
                ../src/serialport.cpp:113:53: error: no matching function for call to ‘v8::Value::ToObject()’
                   v8::Local<v8::Object> options = info[1]->ToObject();
                                                                     ^
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67:0,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
                   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                                            ^~~~~~~~
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8-internal.h:14:0,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:27,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2686:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
                                 Local<Object> ToObject(Isolate* isolate) const);
                                               ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
                                 Local<Object> ToObject(Isolate* isolate) const);
                                               ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
                ../src/serialport.cpp:150: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:1740:3: note: declared here
                   Call(int argc, v8::Local<v8::Value> argv[]) const {
                   ^~~~
                ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
                ../src/serialport.cpp:188: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:1740:3: note: declared here
                   Call(int argc, v8::Local<v8::Value> argv[]) const {
                   ^~~~
                ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
                ../src/serialport.cpp:231: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:1740:3: note: declared here
                   Call(int argc, v8::Local<v8::Value> argv[]) const {
                   ^~~~
                ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
                ../src/serialport.cpp:250:53: error: no matching function for call to ‘v8::Value::ToObject()’
                   v8::Local<v8::Object> options = info[1]->ToObject();
                                                                     ^
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67:0,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
                   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                                            ^~~~~~~~
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8-internal.h:14:0,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:27,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2686:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
                                 Local<Object> ToObject(Isolate* isolate) const);
                                               ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
                                 Local<Object> ToObject(Isolate* isolate) const);
                                               ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
                ../src/serialport.cpp:285: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:1740:3: note: declared here
                   Call(int argc, v8::Local<v8::Value> argv[]) const {
                   ^~~~
                ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’:
                ../src/serialport.cpp:329:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                 an::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
                                                                                              ^
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8-internal.h:14:0,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:27,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:3499:22: note: declared here
                                 bool Set(Local<Value> key, Local<Value> value));
                                      ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                ../src/serialport.cpp:330:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                 an::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
                                                                                              ^
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8-internal.h:14:0,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:27,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:3499:22: note: declared here
                                 bool Set(Local<Value> key, Local<Value> value));
                                      ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                ../src/serialport.cpp:331:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                 an::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
                                                                                              ^
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8-internal.h:14:0,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:27,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:3499:22: note: declared here
                                 bool Set(Local<Value> key, Local<Value> value));
                                      ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                ../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:1740: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: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                 ::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
                                                                                              ^
                In file included from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8-internal.h:14:0,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:27,
                                 from /home/iobroker/.cache/node-gyp/12.18.4/include/node/node.h:67,
                                 from ../../nan/nan.h:54,
                                 from ../src/./serialport.h:6,
                                 from ../src/serialport.cpp:1:
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8.h:3499:22: note: declared here
                                 bool Set(Local<Value> key, Local<Value> value));
                                      ^
                /home/iobroker/.cache/node-gyp/12.18.4/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                ../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:1740: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:1740: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:13: error: ‘Handle’ is not a member of ‘v8’
                   void init(v8::Handle<v8::Object> target) {
                             ^~
                ../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) {
                                                    ^~~~~~
                In file included from ../../nan/nan.h:54: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/12.18.4/include/node/node.h:608: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:112: die Regel für Ziel „Release/obj.target/serialport/src/serialport.o“ scheiterte
                make: *** [Release/obj.target/serialport/src/serialport.o] Fehler 1
                make: Verzeichnis „/opt/iobroker/node_modules/iobroker.discovery/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/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:275:12)
                gyp ERR! System Linux 4.19.66-v7+
                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/iobroker.discovery/node_modules/serialport
                gyp ERR! node -v v12.18.4
                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-09-20T13_36_22_955Z-debug.log
                

                Das kommt bei npm rebuild...

                Thomas Braun Glasfaser 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @birdy last edited by

                  @birdy Bring mal dein Grundsystem auf Stand. Da läuft ein alter Kernel, sofern du da Buster laufen hast.

                  birdy 1 Reply Last reply Reply Quote 0
                  • Glasfaser
                    Glasfaser @birdy last edited by

                    @birdy

                    installiere Ihn über die Katzte neu :

                    https://github.com/ioBroker/ioBroker.zigbee
                    

                    1.JPG

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

                      @Thomas-Braun

                      pi@raspberrypi:/opt/iobroker $ cat /etc/os-release
                      PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
                      NAME="Raspbian GNU/Linux"
                      VERSION_ID="9"
                      VERSION="9 (stretch)"
                      VERSION_CODENAME=stretch
                      ID=raspbian
                      ID_LIKE=debian
                      HOME_URL="http://www.raspbian.org/"
                      SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
                      BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
                      
                      

                      Habe ich vor der npm Aktualisierung mit sudu apt-get update und upgrade auf den letzten Stand gebracht.

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

                        @birdy Bei Stretch kann das mit dem alten Kernel sein.
                        Was liefert denn das

                        iobroker update
                        iobroker upgrade
                        

                        nun zurück?
                        npm hast du selber aktualisiert? Das kommt eigentlich in einer passenden Version beim Paket nodejs mit.
                        Hast du nodeJS sauber im System?

                        birdy 1 Reply Last reply Reply Quote 0
                        • birdy
                          birdy @Glasfaser last edited by

                          @Glasfaser

                          Funktioniert leider auch nicht...

                          $ ./iobroker url "https://github.com/ioBroker/ioBroker.zigbee/tarball/master" zigbee --debug
                          install https://github.com/ioBroker/ioBroker.zigbee/tarball/master
                          NPM version: 6.14.6
                          npm install https://github.com/ioBroker/ioBroker.zigbee/tarball/master --loglevel error --prefix "/opt/iobroker" (System call)
                          npm ERR! code ENOTSUP
                          npm ERR! notsup Unsupported engine for dissolve@0.3.3: wanted: {"node":"~0.10.0"} (current: {"node":"12.18.4","npm":"6.14.6"})npm ERR! notsup Not compatible with your version of node/npm: dissolve@0.3.3npm ERR! notsup Not compatible with your version of node/npm: dissolve@0.3.3npm ERR! notsup Required: {"node":"~0.10.0"}npm ERR! notsup Actual:   {"npm":"6.14.6","node":"12.18.4"}
                          npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2020-09-20T13_51_38_768Z-debug.log
                          upload [100] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/index_m.html index_m.html text/html
                          upload [90] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/sylvania_rt.png img/sylvania_rt.png image/png
                          upload [80] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/sensor_ht.png img/sensor_ht.png image/png
                          upload [70] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/philips_hue_lightbar.png img/philips_hue_lightbar.png image/png
                          upload [60] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/osram_ceiling_tw.png img/osram_ceiling_tw.png image/png
                          upload [50] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/lightify-plug.png img/lightify-plug.png image/png
                          upload [40] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/innr.png img/innr.png image/png
                          upload [30] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/gledopto_bulb.png img/gledopto_bulb.png image/png
                          upload [20] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/cube.png img/cube.png image/png
                          upload [19] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/ctrl_neutral2.png img/ctrl_neutral2.png image/png
                          upload [18] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/ctrl_neutral1.png img/ctrl_neutral1.png image/png
                          upload [17] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/ctrl_ln2.png img/ctrl_ln2.png image/png
                          upload [16] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/ctrl_ln1.png img/ctrl_ln1.png image/png
                          upload [15] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/contact.png img/contact.png image/png
                          upload [14] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/bitron_plug.png img/bitron_plug.png image/png
                          upload [13] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/battery_v.png img/battery_v.png image/png
                          upload [12] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/battery_p.png img/battery_p.png image/png
                          upload [11] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/aqara_temperature_sensor.png img/aqara_temperature_sensor.png image/png
                          upload [10] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/aqara_numan_body_sensor.png img/aqara_numan_body_sensor.png image/png
                          upload [9] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/aqara_bulb.png img/aqara_bulb.png image/png
                          upload [8] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/aqara.switch.png img/aqara.switch.png image/png
                          upload [7] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/TRADFRI.remote.control.png img/TRADFRI.remote.control.png image/png
                          upload [6] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/TRADFRI.bulb.E27.png img/TRADFRI.bulb.E27.png image/png
                          upload [5] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/FLOALT.panel.WS.png img/FLOALT.panel.WS.png image/png
                          upload [4] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/Eurotronic_Spirit_04.png img/Eurotronic_Spirit_04.png image/png
                          upload [3] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/86sw2.png img/86sw2.png image/png
                          upload [2] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/86sw1.png img/86sw1.png image/png
                          upload [1] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/img/86plug.png img/86plug.png image/png
                          upload [0] zigbee.admin /opt/iobroker/node_modules/iobroker.zigbee/admin/admin.js admin.js application/javascript
                          Update "system.adapter.zigbee.0"
                          process exited with code 0
                          
                          Glasfaser 1 Reply Last reply Reply Quote 0
                          • Glasfaser
                            Glasfaser @birdy last edited by

                            @birdy

                            Zeige mal @Thomas-Braun diese Ausgabe :

                            which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                            
                            birdy 1 Reply Last reply Reply Quote 0
                            • birdy
                              birdy @Thomas Braun last edited by

                              @Thomas-Braun

                              Ich denke, da müsste alles passen.

                              pi@raspberrypi:/opt/iobroker $ npm -v
                              6.14.6
                              pi@raspberrypi:/opt/iobroker $ nodejs -v
                              v12.18.4
                              pi@raspberrypi:/opt/iobroker $ node -v
                              v12.18.4
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • birdy
                                birdy @Glasfaser last edited by

                                @Glasfaser

                                pi@raspberrypi:/opt/iobroker $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                /usr/bin/nodejs
                                v12.18.4
                                /usr/bin/node
                                v12.18.4
                                /usr/bin/npm
                                6.14.6
                                nodejs:
                                  Installiert:           12.18.4-1nodesource1
                                  Installationskandidat: 12.18.4-1nodesource1
                                  Versionstabelle:
                                 *** 12.18.4-1nodesource1 500
                                        500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
                                        100 /var/lib/dpkg/status
                                     8.11.1~dfsg-2~bpo9+1 500
                                        500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
                                     4.8.2~dfsg-1 500
                                        500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
                                
                                Glasfaser 1 Reply Last reply Reply Quote 0
                                • Glasfaser
                                  Glasfaser @birdy last edited by

                                  @Thomas-Braun

                                  /home/iobroker/.npm/_logs/2020-09-20T13_51_38_768Z-debug.log
                                  

                                  Verzeichnis

                                  .npm
                                  

                                  ist da nicht was quer installiert !?

                                  birdy Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • birdy
                                    birdy @Glasfaser last edited by

                                    @Glasfaser

                                    Äääh... Keine Berechtigung? Sorry, ich habe nur rudimentäre Linux-Kenntnisse...

                                    pi@raspberrypi:/opt/iobroker $ /home/iobroker/.npm/_logs/2020-09-20T13_51_38_768Z-debug.log
                                    -bash: /home/iobroker/.npm/_logs/2020-09-20T13_51_38_768Z-debug.log: Keine Berechtigung
                                    
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @birdy last edited by

                                      @birdy Das passt, der User pi darf nicht in die Dateien vom User iobroker schauen.
                                      Mich würde ja immer noch die Ausgabe von

                                      iobroker update
                                      iobroker upgrade
                                      

                                      interessieren. Aber die unterliegt offenbar der Geheimhaltung.

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

                                        @Thomas-Braun

                                        Kommt gleich, ein paar adapter werden aktualisiert. Ist danach wieder ein npm rebuild zu machen?

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

                                          @birdy Erstmal nicht. Wenn das durch ist schauen wir ggf. weiter.

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

                                            @Glasfaser Nö, ist nicht quer. Wenn der User iobroker was mir npm macht dann landet das natürlich auch in dessen home-Verzeichnis. Wo auch sonst, außer in /opt/iobroker (wegen sudoer) darf der ja nix machen

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            404
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            zigbee
                                            5
                                            95
                                            5583
                                            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