NEWS
UNSOLVED [GELÖST] Javascript Adapter Neustart
-
Systemdata Bitte Ausfüllen Hardwaresystem: Pi4 Arbeitsspeicher: 4GB Festplattenart: SD/SSD Betriebssystem: Ubuntu Node-Version: 12.18.0 Nodejs-Version: 12.18.0 NPM-Version: 6.14.4 Installationsart: Skript/Manuell Image genutzt: Nein Ich habe eben meine Javascript Adapter neugestartet und dabei sind im LOG einige Fehler aufgetreten.
Ich hoffe ihr könnt mir helfen die Fehler zu beseitigen.Hier der erwähnte auszug aus dem Log:
2020-06-14 09:07:14.012 - info: host.raspberrypi stopInstance system.adapter.javascript.0 send kill signal 2020-06-14 09:07:14.019 - info: javascript.0 (2733) Stop script script.js.Anwesenheit.Anwesenheitserkennung 2020-06-14 09:07:14.019 - info: javascript.0 (2733) Stop script script.js.Benachrichtigung.Waschmaschine 2020-06-14 09:07:14.020 - info: javascript.0 (2733) Stop script script.js.Waschmaschine.Waschmaschine_Status 2020-06-14 09:07:14.023 - info: javascript.0 (2733) terminating 2020-06-14 09:07:14.025 - info: javascript.0 (2733) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2020-06-14 09:07:14.571 - info: host.raspberrypi instance system.adapter.javascript.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2020-06-14 09:07:17.117 - info: host.raspberrypi instance system.adapter.javascript.0 started with pid 2483 2020-06-14 09:07:18.655 - info: web.0 (2875) <==Disconnect system.user.admin from 192.168.178.29 flot 2020-06-14 09:07:18.660 - info: web.0 (2875) <==Disconnect system.user.admin from 192.168.178.29 flotEdit 2020-06-14 09:07:18.662 - info: web.0 (2875) <==Disconnect system.user.admin from 192.168.178.29 flotEditDialog 2020-06-14 09:07:19.114 - info: web.0 (2875) <==Disconnect system.user.admin from 192.168.178.29 flot 2020-06-14 09:07:20.467 - info: javascript.0 (2483) starting. Version 4.6.17 in /opt/iobroker/node_modules/iobroker.javascript, node: v12.18.0, js-controller: 3.1.4 2020-06-14 09:07:20.511 - info: javascript.0 (2483) npm install noble --production --prefix "/opt/iobroker/node_modules/iobroker.javascript" (System call) 2020-06-14 09:07:28.953 - info: javascript.0 (2483) > usb@1.6.3 install /opt/iobroker/node_modules/iobroker.javascript/node_modules/usb > prebuild-install --verbose || node-gyp rebuild 2020-06-14 09:07:29.456 - error: javascript.0 (2483) prebuild-install 2020-06-14 09:07:29.459 - error: javascript.0 (2483) info begin Prebuild-install version 5.3.4 2020-06-14 09:07:29.468 - error: javascript.0 (2483) prebuild-install 2020-06-14 09:07:29.469 - error: javascript.0 (2483) info looking for cached prebuild @ /home/iobroker/.npm/_prebuilds/470134-usb-v1.6.3-node-v72-linux-arm.tar.gz prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz 2020-06-14 09:07:29.797 - error: javascript.0 (2483) prebuild-install 2020-06-14 09:07:29.799 - error: javascript.0 (2483) http 404 https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz 2020-06-14 09:07:29.810 - error: javascript.0 (2483) prebuild-install 2020-06-14 09:07:29.812 - error: javascript.0 (2483) WARN install No prebuilt binaries found (target=12.18.0 runtime=node arch=arm libc= platform=linux) 2020-06-14 09:07:31.230 - info: javascript.0 (2483) make: Verzeichnis „/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/build“ wird betreten 2020-06-14 09:07:31.234 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/core.o 2020-06-14 09:07:32.189 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o 2020-06-14 09:07:32.941 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o 2020-06-14 09:07:33.221 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/io.o 2020-06-14 09:07:34.060 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o 2020-06-14 09:07:34.251 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/sync.o 2020-06-14 09:07:34.508 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o 2020-06-14 09:07:34.676 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o 2020-06-14 09:07:34.830 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o 2020-06-14 09:07:36.491 - info: javascript.0 (2483) CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o 2020-06-14 09:07:36.828 - info: javascript.0 (2483) AR(target) Release/obj.target/usb.a 2020-06-14 09:07:36.852 - info: javascript.0 (2483) COPY Release/usb.a 2020-06-14 09:07:36.872 - info: javascript.0 (2483) CXX(target) Release/obj.target/usb_bindings/src/node_usb.o 2020-06-14 09:07:38.277 - error: javascript.0 (2483) In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../node_modules/nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast(AsyncExecuteComplete) ^ 2020-06-14 09:07:38.342 - error: javascript.0 (2483) In file included from ../src/node_usb.h:14, from ../src/node_usb.cc:1: ../src/node_usb.cc: At global scope: /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void (*)(v8::Local)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /home/iobroker/.cache/node-gyp/12.18.0/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/node_usb.cc:95:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(usb_bindings, Initialize) ^~~~~~~~~~~ 2020-06-14 09:07:38.355 - error: javascript.0 (2483) ../src/node_usb.cc: In function ‘void handleHotplug(std::pair)’: ../src/node_usb.cc:151:58: warning: ‘v8::Local Nan::MakeCallback(v8::Local, const char*, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv); ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../node_modules/nan/nan.h:1001:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 09:07:38.356 - error: javascript.0 (2483) ../src/node_usb.cc:151:58: warning: ‘v8::Local Nan::MakeCallback(v8::Local, const char*, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv); ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../node_modules/nan/nan.h:1001:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 09:07:38.486 - error: javascript.0 (2483) In file included from ../src/node_usb.h:12, from ../src/node_usb.cc:1: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_object_wrap.h:85:78: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-06-14 09:07:38.511 - error: javascript.0 (2483) /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: ../node_modules/nan/nan_object_wrap.h:65:61: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] 2020-06-14 09:07:39.996 - info: javascript.0 (2483) CXX(target) Release/obj.target/usb_bindings/src/device.o 2020-06-14 09:07:41.376 - error: javascript.0 (2483) In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/device.cc:1: ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../node_modules/nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast(AsyncExecuteComplete) ^ 2020-06-14 09:07:41.510 - error: javascript.0 (2483) ../src/device.cc: In member function ‘void Req::submit(Device*, v8::Local, uv_work_cb, uv_work_cb)’: ../src/device.cc:220:70: warning: cast between incompatible function types from ‘uv_work_cb’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), &req, backend, (uv_after_work_cb) after); ^~~~~ 2020-06-14 09:07:41.512 - error: javascript.0 (2483) ../src/device.cc: In static member function ‘static void Req::default_after(uv_work_t*)’: ../src/device.cc:237:64: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv); ^ 2020-06-14 09:07:41.514 - error: javascript.0 (2483) In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/device.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ ../src/device.cc:237:64: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv); ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/device.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 09:07:41.588 - error: javascript.0 (2483) In file included from ../src/node_usb.h:12, from ../src/device.cc:1: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_object_wrap.h:85:78: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-06-14 09:07:41.612 - error: javascript.0 (2483) /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: ../node_modules/nan/nan_object_wrap.h:65:61: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] 2020-06-14 09:07:44.736 - info: javascript.0 (2483) CXX(target) Release/obj.target/usb_bindings/src/transfer.o 2020-06-14 09:07:46.129 - error: javascript.0 (2483) In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../node_modules/nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast(AsyncExecuteComplete) ^ 2020-06-14 09:07:46.199 - error: javascript.0 (2483) ../src/transfer.cc: In function ‘void handleCompletion(Transfer*)’: ../src/transfer.cc:126:72: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv); ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 09:07:46.201 - error: javascript.0 (2483) ../src/transfer.cc:126:72: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv); ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 09:07:46.256 - error: javascript.0 (2483) In file included from ../src/node_usb.h:12, from ../src/transfer.cc:1: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_object_wrap.h:85:78: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-06-14 09:07:46.280 - error: javascript.0 (2483) /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: ../node_modules/nan/nan_object_wrap.h:65:61: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] 2020-06-14 09:07:47.303 - info: javascript.0 (2483) SOLINK_MODULE(target) Release/obj.target/usb_bindings.node 2020-06-14 09:07:47.539 - info: javascript.0 (2483) COPY Release/usb_bindings.node 2020-06-14 09:07:47.558 - info: javascript.0 (2483) make: Verzeichnis „/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/build“ wird verlassen 2020-06-14 09:07:47.574 - info: javascript.0 (2483) > bluetooth-hci-socket@0.5.1 install /opt/iobroker/node_modules/iobroker.javascript/node_modules/bluetooth-hci-socket > node-gyp rebuild 2020-06-14 09:07:48.993 - info: javascript.0 (2483) make: Verzeichnis „/opt/iobroker/node_modules/iobroker.javascript/node_modules/bluetooth-hci-socket/build“ wird betreten 2020-06-14 09:07:48.996 - info: javascript.0 (2483) CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o 2020-06-14 09:07:50.600 - error: javascript.0 (2483) In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast(AsyncExecuteComplete) ^ 2020-06-14 09:07:50.750 - error: javascript.0 (2483) ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:128:82: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction()); ^ 2020-06-14 09:07:50.752 - error: javascript.0 (2483) In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided 2020-06-14 09:07:50.765 - error: javascript.0 (2483) ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’: ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 09:07:50.766 - error: javascript.0 (2483) ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 09:07:50.768 - error: javascript.0 (2483) ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: ../src/BluetoothHciSocket.cpp:269:109: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local errorConstructor = Local::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked())); ^ In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local [1])’ Local error = errorConstructor->NewInstance(1, constructorArgs); ^ 2020-06-14 09:07:50.770 - error: javascript.0 (2483) In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:4281:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local*) const’ V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:4281:44: note: candidate expects 3 arguments, 2 provided /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:4284:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local) const’ V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:4284:44: note: candidate expects 1 argument, 2 provided ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 09:07:50.779 - error: javascript.0 (2483) ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:395:34: error: no matching function for call to ‘v8::Value::IntegerValue()’ devId = arg0->IntegerValue(); ^ 2020-06-14 09:07:50.781 - error: javascript.0 (2483) In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided 2020-06-14 09:07:50.783 - error: javascript.0 (2483) ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:417:34: error: no matching function for call to ‘v8::Value::IntegerValue()’ devId = arg0->IntegerValue(); ^ In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided 2020-06-14 09:07:50.787 - error: javascript.0 (2483) In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: ../src/BluetoothHciSocket.cpp: At global scope: /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /home/iobroker/.cache/node-gyp/12.18.0/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/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(binding, BluetoothHciSocket::Init); ^~~~~~~~~~~ 2020-06-14 09:07:51.129 - error: javascript.0 (2483) make: *** [binding.target.mk:109: Release/obj.target/binding/src/BluetoothHciSocket.o] Fehler 1 2020-06-14 09:07:51.130 - info: javascript.0 (2483) make: Verzeichnis „/opt/iobroker/node_modules/iobroker.javascript/node_modules/bluetooth-hci-socket/build“ wird verlassen 2020-06-14 09:07:51.132 - error: javascript.0 (2483) gyp 2020-06-14 09:07:51.133 - error: javascript.0 (2483) ERR! build error 2020-06-14 09:07:51.135 - error: javascript.0 (2483) gyp ERR! stack 2020-06-14 09:07:51.137 - error: javascript.0 (2483) 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) 2020-06-14 09:07:51.138 - error: javascript.0 (2483) gyp ERR! System Linux 4.19.118-v7l+ 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.javascript/node_modules/bluetooth-hci-socket gyp ERR! node -v v12.18.0 gyp ERR! node-gyp -v v5.1.0 gyp 2020-06-14 09:07:51.140 - error: javascript.0 (2483) ERR! not ok 2020-06-14 09:07:51.627 - error: javascript.0 (2483) npm 2020-06-14 09:07:51.628 - error: javascript.0 (2483) WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 2020-06-14 09:07:51.629 - error: javascript.0 (2483) 2020-06-14 09:07:51.637 - info: javascript.0 (2483) + noble@1.9.1 added 12 packages from 36 contributors and audited 82 packages in 29.817s 2020-06-14 09:07:51.774 - info: javascript.0 (2483) 2 packages are looking for funding run `npm fund` for details 2020-06-14 09:07:51.777 - info: javascript.0 (2483) found 2 low severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details 2020-06-14 09:07:51.903 - info: javascript.0 (2483) requesting all states 2020-06-14 09:07:51.905 - info: javascript.0 (2483) requesting all objects 2020-06-14 09:07:53.559 - info: javascript.0 (2483) received all objects 2020-06-14 09:07:53.763 - info: javascript.0 (2483) received all states 2020-06-14 09:07:54.235 - info: javascript.0 (2483) Start javascript script.js.Waschmaschine.Waschmaschine_Status 2020-06-14 09:07:54.285 - info: javascript.0 (2483) script.js.Waschmaschine.Waschmaschine_Status: registered 2 subscriptions and 0 schedules 2020-06-14 09:07:54.287 - info: javascript.0 (2483) Start javascript script.js.Benachrichtigung.Waschmaschine 2020-06-14 09:07:54.292 - info: javascript.0 (2483) script.js.Benachrichtigung.Waschmaschine: registered 2 subscriptions and 0 schedules 2020-06-14 09:07:54.293 - info: javascript.0 (2483) Start javascript script.js.Anwesenheit.Anwesenheitserkennung 2020-06-14 09:07:54.298 - info: javascript.0 (2483) script.js.Anwesenheit.Anwesenheitserkennung: registered 2 subscriptions and 0 schedules 2020-06-14 09:08:01.089 - info: tankerkoenig.0 (20423) Reading data from tankerkoenig ...
-
Edit: Ich habe den Adapter gerade wieder neugestartet. Dabei traten keine Fehler mehr auf. Ich gehe nun davon aus, das der Adapter sich des problems selbst angenommen hat.
-
Ok, eben IoBroker neugestartet und da kamen die fehler wieder. Hier wieder die auszüge:
2020-06-14 15:57:39.391 - info: radar2.0 (10637) will scan UWZ with code UWZDE30657 every 120 minutes 2020-06-14 15:57:39.401 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.1.LEVEL_STATUS to "Wohnzimmer Heizung INT0000007:1.LEVEL_STATUS" 2020-06-14 15:57:39.395 - info: radar2.0 (10637) radar2 found 2 devices in config (Corinna,Oliver) 2020-06-14 15:57:39.396 - info: radar2.0 (10637) radar2 set use of noble(false), doArp(false), btid(0) and doUwz(UWZDE30657,120,NaN,de,true). 2020-06-14 15:57:39.434 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.1.PARTY_MODE to "Wohnzimmer Heizung INT0000007:1.PARTY_MODE" 2020-06-14 15:57:39.445 - error: javascript.0 (10343) ../src/device.cc: In member function ‘void Req::submit(Device*, v8::Local, uv_work_cb, uv_work_cb)’: ../src/device.cc:220:70: warning: cast between incompatible function types from ‘uv_work_cb’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), &req, backend, (uv_after_work_cb) after); ^~~~~ 2020-06-14 15:57:39.448 - error: javascript.0 (10343) ../src/device.cc: In static member function ‘static void Req::default_after(uv_work_t*)’: ../src/device.cc:237:64: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv); ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/device.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 15:57:39.450 - error: javascript.0 (10343) ../src/device.cc:237:64: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv); ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/device.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 15:57:39.456 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.1.VALVE_ADAPTION to "Wohnzimmer Heizung INT0000007:1.VALVE_ADAPTION" 2020-06-14 15:57:39.470 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.1 to "Wohnzimmer Heizung INT0000007:1" 2020-06-14 15:57:39.484 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.0.UPDATE_PENDING to "Wohnzimmer Heizung INT0000007:0.UPDATE_PENDING" 2020-06-14 15:57:39.498 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.0.ERROR_CODE to "Wohnzimmer Heizung INT0000007:0.ERROR_CODE" 2020-06-14 15:57:39.513 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.0.ACTUAL_TEMPERATURE_STATUS to "Wohnzimmer Heizung INT0000007:0.ACTUAL_TEMPERATURE_STATUS" 2020-06-14 15:57:39.516 - info: radar2.0 (10637) UWZ found the following (changed) warnings: Am Sonntag bis in die Nacht zum Montag sind teils kräftige Gewitter möglich. Dabei besteht vor allem die Gefahr von gewittrigem Starkregen, wobei Niederschlagsmengen von 15 bis 25 mm in einer Stunde, örtlich auch noch etwas mehr, möglich sind. Zudem ist die Blitzaktivität teils sehr hoch. Auch kleiner Hagel und einzelne Sturmböen sind nicht ganz ausgeschlossen.: alert_forewarn_red 2020-06-14 15:57:39.550 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.0.OPERATING_VOLTAGE_STATUS to "Wohnzimmer Heizung INT0000007:0.OPERATING_VOLTAGE_STATUS" 2020-06-14 15:57:39.563 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.0.ERROR_OVERHEAT to "Wohnzimmer Heizung INT0000007:0.ERROR_OVERHEAT" 2020-06-14 15:57:39.584 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.0.UNREACH to "Wohnzimmer Heizung INT0000007:0.UNREACH" 2020-06-14 15:57:39.601 - info: hm-rega.0 (10254) renamed hm-rpc.2.INT0000007.0.INSTALL_TEST to "Wohnzimmer Heizung INT0000007:0.INSTALL_TEST" 2020-06-14 15:57:39.612 - error: javascript.0 (10343) In file included from ../src/node_usb.h:12, from ../src/device.cc:1: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_object_wrap.h:85:78: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-06-14 15:57:39.642 - error: javascript.0 (10343) /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: ../node_modules/nan/nan_object_wrap.h:65:61: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
2020-06-14 15:57:45.666 - error: javascript.0 (10343) In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../node_modules/nan/nan.h:2232:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast(AsyncExecuteComplete) ^ 2020-06-14 15:57:45.777 - info: web.0 (10782) Secure socket.io server listening on port 8086 2020-06-14 15:57:45.781 - info: web.0 (10782) https server listening on port 8086 2020-06-14 15:57:45.810 - error: javascript.0 (10343) ../src/transfer.cc: In function ‘void handleCompletion(Transfer*)’: ../src/transfer.cc:126:72: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv); ^ 2020-06-14 15:57:45.816 - error: javascript.0 (10343) In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 15:57:45.819 - error: javascript.0 (10343) ../src/transfer.cc:126:72: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv); ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 15:57:45.890 - error: javascript.0 (10343) In file included from ../src/node_usb.h:12, from ../src/transfer.cc:1: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_object_wrap.h:85:78: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-06-14 15:57:45.915 - error: javascript.0 (10343) /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void (*)(const v8::WeakCallbackInfo&)]’: ../node_modules/nan/nan_object_wrap.h:65:61: required from here /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] 2020-06-14 15:57:47.089 - info: javascript.0 (10343) SOLINK_MODULE(target) Release/obj.target/usb_bindings.node 2020-06-14 15:57:47.302 - info: host.raspberrypi instance system.adapter.sayit.0 started with pid 10840 2020-06-14 15:57:47.333 - info: javascript.0 (10343) COPY Release/usb_bindings.node 2020-06-14 15:57:47.352 - info: javascript.0 (10343) make: Verzeichnis „/opt/iobroker/node_modules/iobroker.javascript/node_modules/usb/build“ wird verlassen 2020-06-14 15:57:47.370 - info: javascript.0 (10343) > bluetooth-hci-socket@0.5.1 install /opt/iobroker/node_modules/iobroker.javascript/node_modules/bluetooth-hci-socket > node-gyp rebuild 2020-06-14 15:57:48.738 - info: sayit.0 (10840) starting. Version 1.9.4 in /opt/iobroker/node_modules/iobroker.sayit, node: v12.18.0, js-controller: 3.1.4 2020-06-14 15:57:48.767 - info: sayit.0 (10840) Upload announce mp3 files 2020-06-14 15:57:48.826 - info: sayit.0 (10840) All files uploaded 2020-06-14 15:57:48.904 - info: javascript.0 (10343) make: Verzeichnis „/opt/iobroker/node_modules/iobroker.javascript/node_modules/bluetooth-hci-socket/build“ wird betreten 2020-06-14 15:57:48.906 - info: javascript.0 (10343) CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o 2020-06-14 15:57:50.245 - error: javascript.0 (10343) In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast(AsyncExecuteComplete) ^ 2020-06-14 15:57:50.364 - error: javascript.0 (10343) ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:128:82: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction()); ^ 2020-06-14 15:57:50.365 - error: javascript.0 (10343) In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided 2020-06-14 15:57:50.376 - error: javascript.0 (10343) ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’: ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 15:57:50.378 - error: javascript.0 (10343) ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 15:57:50.380 - error: javascript.0 (10343) ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: ../src/BluetoothHciSocket.cpp:269:109: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local errorConstructor = Local::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked())); ^ In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local [1])’ Local error = errorConstructor->NewInstance(1, constructorArgs); ^ In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:4281:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local*) const’ V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:4281:44: note: candidate expects 3 arguments, 2 provided 2020-06-14 15:57:50.381 - error: javascript.0 (10343) /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:4284:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local) const’ V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:4284:44: note: candidate expects 1 argument, 2 provided ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ 2020-06-14 15:57:50.390 - error: javascript.0 (10343) ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:395:34: error: no matching function for call to ‘v8::Value::IntegerValue()’ devId = arg0->IntegerValue(); ^ 2020-06-14 15:57:50.392 - error: javascript.0 (10343) In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:417:34: error: no matching function for call to ‘v8::Value::IntegerValue()’ devId = arg0->IntegerValue(); ^ In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67, from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided 2020-06-14 15:57:50.397 - error: javascript.0 (10343) In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: ../src/BluetoothHciSocket.cpp: At global scope: /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /home/iobroker/.cache/node-gyp/12.18.0/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/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(binding, BluetoothHciSocket::Init); ^~~~~~~~~~~ 2020-06-14 15:57:50.728 - error: javascript.0 (10343) make: *** [binding.target.mk:109: Release/obj.target/binding/src/BluetoothHciSocket.o] Fehler 1 2020-06-14 15:57:50.732 - error: javascript.0 (10343) gyp ERR! build error 2020-06-14 15:57:50.733 - info: javascript.0 (10343) make: Verzeichnis „/opt/iobroker/node_modules/iobroker.javascript/node_modules/bluetooth-hci-socket/build“ wird verlassen 2020-06-14 15:57:50.736 - error: javascript.0 (10343) 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.118-v7l+ 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.javascript/node_modules/bluetooth-hci-socket gyp ERR! node -v v12.18.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok 2020-06-14 15:57:51.254 - error: javascript.0 (10343) npm 2020-06-14 15:57:51.255 - error: javascript.0 (10343) WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 2020-06-14 15:57:51.257 - error: javascript.0 (10343) 2020-06-14 15:57:51.260 - info: javascript.0 (10343) + noble@1.9.1 added 12 packages from 36 contributors and audited 82 packages in 36.131s 2020-06-14 15:57:51.420 - info: javascript.0 (10343) 2 packages are looking for funding run `npm fund` for details 2020-06-14 15:57:51.422 - info: javascript.0 (10343) found 2 low severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details 2020-06-14 15:57:51.520 - info: javascript.0 (10343) requesting all states 2020-06-14 15:57:51.522 - info: javascript.0 (10343) requesting all objects 2020-06-14 15:57:53.352 - info: vis.0 (10895) starting. Version 1.2.4 in /opt/iobroker/node_modules/iobroker.vis, node: v12.18.0, js-controller: 3.1.4 2020-06-14 15:57:53.505 - info: javascript.0 (10343) received all objects 2020-06-14 15:57:53.547 - info: vis.0 (10895) vis license is OK. 2020-06-14 15:57:53.746 - info: javascript.0 (10343) received all states 2020-06-14 15:57:54.139 - info: javascript.0 (10343) Start javascript script.js.Waschmaschine.Waschmaschine_Status 2020-06-14 15:57:54.194 - info: javascript.0 (10343) script.js.Waschmaschine.Waschmaschine_Status: registered 2 subscriptions and 0 schedules 2020-06-14 15:57:54.196 - info: javascript.0 (10343) Start javascript script.js.Benachrichtigung.Waschmaschine 2020-06-14 15:57:54.201 - info: javascript.0 (10343) script.js.Benachrichtigung.Waschmaschine: registered 2 subscriptions and 0 schedules 2020-06-14 15:57:54.202 - info: javascript.0 (10343) Start javascript script.js.Anwesenheit.Anwesenheitserkennung 2020-06-14 15:57:54.207 - info: javascript.0 (10343) script.js.Anwesenheit.Anwesenheitserkennung: registered 2 subscriptions and 0 schedules 2020-06-14 15:57:55.056 - info: vis.0 (10895) Terminated (NO_ERROR): Without reason 2020-06-14 15:57:55.306 - info: host.raspberrypi instance system.adapter.iot.0 started with pid 10910 2020-06-14 15:57:55.596 - info: host.raspberrypi instance system.adapter.vis.0 terminated while should be started once 2020-06-14 15:57:57.633 - info: iot.0 (10910) starting. Version 1.5.3 in /opt/iobroker/node_modules/iobroker.iot, node: v12.18.0, js-controller: 3.1.4 2020-06-14 15:57:57.671 - info: iot.0 (10910) Connecting with a18wym7vjdl22g.iot.eu-west-1.amazonaws.com 2020-06-14 15:57:59.314 - info: host.raspberrypi instance system.adapter.nina.0 started with pid 10925 2020-06-14 15:57:59.652 - info: iot.0 (10910) Connection changed: connect 2020-06-14 15:58:00.820 - info: host.raspberrypi Update repository "stable" under "http://download.iobroker.net/sources-dist.json" 2020-06-14 15:58:03.313 - info: host.raspberrypi instance system.adapter.moma.0 started with pid 10938 2020-06-14 15:58:03.654 - info: nina.0 (10925) starting. Version 0.0.22 in /opt/iobroker/node_modules/iobroker.nina, node: v12.18.0, js-controller: 3.1.4 2020-06-14 15:58:04.073 - info: nina.0 (10925) Found AGS for: Region Hannover 2020-06-14 15:58:06.790 - info: moma.0 (10938) starting. Version 1.2.6 in /opt/iobroker/node_modules/iobroker.moma, node: v12.18.0, js-controller: 3.1.4 2020-06-14 15:58:07.192 - info: moma.0 (10938) library systeminformation version 4.26.9 2020-06-14 15:58:07.475 - info: host.raspberrypi instance system.adapter.alexa2.0 started with pid 10969 2020-06-14 15:58:09.485 - info: alexa2.0 (10969) starting. Version 3.1.2 in /opt/iobroker/node_modules/iobroker.alexa2, node: v12.18.0, js-controller: 3.1.4 2020-06-14 15:58:10.006 - error: alexa2.0 (10969) Error: 2020-06-14 15:58:10.007 - error: alexa2.0 (10969) Error: You can try to get the cookie manually by opening http://192.168.178.45:36551/ with your browser. 2020-06-14 15:58:11.326 - info: host.raspberrypi instance system.adapter.hue-extended.0 started with pid 10985 2020-06-14 15:58:11.887 - info: host.raspberrypi Update repository "stable" under "http://download.iobroker.net/sources-dist.json" 2020-06-14 15:58:14.689 - info: hue-extended.0 (10985) starting. Version 1.2.3 in /opt/iobroker/node_modules/iobroker.hue-extended, node: v12.18.0, js-controller: 3.1.4 2020-06-14 15:58:14.720 - info: hue-extended.0 (10985) Establishing secure connection to bridge.. 2020-06-14 15:58:22.923 - info: cloud.0 (10381) Trying to connect as system.user.admin 2020-06-14 15:58:23.066 - info: cloud.0 (10381) Connection changed: connect
-
@Eulo
Fang mal 'unten' an.npm cache clean --force which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs sudo apt update && sudo apt dist-upgrade
-
@Thomas-Braun sagte in Javascript Adapter Neustart:
@Eulo
Fang mal 'unten' an.npm cache clean --force which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs sudo apt update && sudo apt dist-upgrade
danke, ich hab das gemacht dann hab ich den iobroker wieder neugestartet und es kamen keine Fehler seitens des Javascript Adapters mehr.
Woran hat es gelegen? War der Cache "zu voll"?
-
@Eulo
Nee, da lag vermutlich ein 'krummer' Download im Cache. npm versucht dann immer wieder das Modul zu bauen. -
ah Danke für die Info