NEWS
Testinstallation unter Node 12.6.0
-
@MathiasJ sagte in Testinstallation unter Node 12.6.0:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @abandonware/bluetooth-hci-socket@0.5.3-1 install:node-pre-gyp instal l --fallback-to-build
npm ERR! Exit status 1Dann müsste vorher ein Fehler im Log stehen. Hier steht nur dass es nicht geklappt hat.
-
@AlCalzone
Die sichtbaren Fehler im Log hast Du schon bzw ich gucke heute abend nochmal nach.
Bin auf dem Weg zur Arbeit -
@MathiasJ Alles klar. Wir wissen jetzt schon mal, dass es an der fehlgeschlagenen Installation von
@abandonware/bluetooth-hci-socket
liegt. Wenn die klappt, sollten auch beide Adapter laufen. -
hier noch mal der Log:
instanz BLE = debug
Log = debughost.tinkerboard 2019-07-16 07:36:32.053 info Do not restart adapter system.adapter.ble.1 because desired by instance host.tinkerboard 2019-07-16 07:36:32.053 error instance system.adapter.ble.1 terminated by request of the instance itself and will not be restarted, before user restarts it. ble.1 2019-07-16 07:36:31.986 info loaded plugins: Xiaomi, mi-flora, ruuvi-tag, _default ble.1 2019-07-16 07:36:31.896 info starting. Version 0.7.4 in /opt/iobroker/node_modules/iobroker.ble, node: v12.6.0 ble.1 2019-07-16 07:36:31.852 debug statesDB connected ble.1 2019-07-16 07:36:31.824 debug objectDB connected
Gruß,
Mathias -
@MathiasJ Nur damit wir vom gleichen reden... ich meine den Log der Installation des BLE-Adapters bzw. hci-socket.
-
Also dem, was vor dem hier passiert ist:
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @abandonware/bluetooth-hci-socket@0.5.3-1 install: `node-pre-gyp instal l --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @abandonware/bluetooth-hci-socket@0.5.3-1 install script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-07-14T17_43_34_011Z-debug.log
Oder das Log davon: /root/.npm/_logs/2019-07-14T17_43_34_011Z-debug.log
-
So,
die Logfile dann doch gefunden und habe sie hier als txt-datei angehängt.
Ich weiß nicht, nach was ich suchen soll -
@MathiasJ
Du hastnpm i @abandonware/bluetooth-hci-socket
nicht wie gefordertim ioBroker-Ordner
sondern in
/
ausgeführt. Mach das bitte nochmal in/opt/iobroker
. -
Dann beekomme ich das:
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:203:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) node-pre-gyp ERR! System Linux 4.19.57-rockchip node-pre-gyp ERR! command "/usr/bin/node" "/root/node_modules/@abandonware/bluetooth-hci-socket/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /root/node_modules/@abandonware/bluetooth-hci-socket node-pre-gyp ERR! node -v v12.6.0 node-pre-gyp ERR! node-pre-gyp -v v0.12.0 node-pre-gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @abandonware/bluetooth-hci-socket@0.5.3-1 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @abandonware/bluetooth-hci-socket@0.5.3-1 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! /root/.npm/_logs/2019-07-18T04_44_00_892Z-debug.log
Gruß,
Mathias -
@MathiasJ Wenn der Log anfängt mit
stack at ...
ist er nicht vollständig Ich brauche alles ab Befehlseingabe -
Mache ich, wenn ich wieder zuhause bin.
Dann wiederhole ich den Befehl und sende es Dir....
Nun hopp hopp zur Arbeit -
Sehe ich da nicht schon wieder in seinem Log-Schnipsel:
command "/usr/bin/node" "/root/node_modules/@abandonware/bluetooth-hci-socket/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
Also den /root-User Ordner?
-
@Stabilostick Hast Recht
-
dann stimmt aber etwas anderes nicht. ich habe 2 mal den befehl ausgeführt:
cd /opt/iobroker, dann erst Euren Befehl.
Als Anhang der komplette Log als txt-Datei.
Gruß,
Mathias -
@MathiasJ
Hattest Du das schon mal vorher ausgeführt?sudo apt-get install libbluetooth-dev
Steht in https://github.com/song940/node-bluetooth
Da steht auch, dass sie vor 10 Monaten Node 10 Kompatibilität eingebaut haben. -
@Stabilostick
ist schon die neueste Version.root@tinkerboard:~# sudo apt-get install libbluetooth-dev Reading package lists... Done Building dependency tree Reading state information... Done libbluetooth-dev is already the newest version (5.43-2+deb9u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@tinkerboard:~#
Gruß,
Mathias -
Na, hat niemand eine Idee?
Ansonsten muß icch dann die testinstallation einstampfen.
Die produktive Installation läuft ja unter Node 10. -
Da ist der interessante Part:
@abandonware/bluetooth-hci-socket@0.5.3-1 install /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket
node-pre-gyp install --fallback-to-buildnode-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/sandeepmistry/node-bluetooth-hci-socket/releases/download/0.5.3-1/binding-0.5.3-1-node-v72-linux-arm.tar.gz
node-pre-gyp WARN Pre-built binaries not found for @abandonware/bluetooth-hci-socket@0.5.3-1 and node@12.6.0 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/build'
CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
../src/BluetoothHciSocket.cpp: In static member function 'static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
../src/BluetoothHciSocket.cpp:129:82: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:5948:46: note: candidate: v8::MaybeLocalv8::Function v8::FunctionTemplate::GetFunction(v8::Localv8::Context)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:5948:46: note: candidate expects 1 argument, 0 provided
../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::poll()':
../src/BluetoothHciSocket.cpp:252:95: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
In file included from ../src/BluetoothHciSocket.cpp:8:0:
../../../nan/nan.h:1045:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::emitErrnoError()':
../src/BluetoothHciSocket.cpp:270:109: warning: 'v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked()));
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3412:55: note: declared here
V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:283:93: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
In file included from ../src/BluetoothHciSocket.cpp:8:0:
../../../nan/nan.h:1045:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)':
../src/BluetoothHciSocket.cpp:396:34: error: no matching function for call to 'v8::Value::IntegerValue()'
devId = arg0->IntegerValue();
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate: v8::Maybe<long long int> v8::Value::IntegerValue(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^~~~~~~~~~~~
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565: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:418:34: error: no matching function for call to 'v8::Value::IntegerValue()'
devId = arg0->IntegerValue();
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate: v8::Maybe<long long int> v8::Value::IntegerValue(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^~~~~~~~~~~~
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate expects 1 argument, 0 provided
../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::GetDeviceList(Nan::NAN_METHOD_ARGS_TYPE)':
../src/BluetoothHciSocket.cpp:471:77: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("devId").ToLocalChecked(), Nan::New<Number>(devId));
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:472:78: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("devUp").ToLocalChecked(), Nan::New<Boolean>(devUp));
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:473:68: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("idVendor").ToLocalChecked(), Nan::Null());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:474:69: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("idProduct").ToLocalChecked(), Nan::Null());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:475:69: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("busNumber").ToLocalChecked(), Nan::Null());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:476:73: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("deviceAddress").ToLocalChecked(), Nan::Null());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
binding.target.mk:105: recipe for target 'Release/obj.target/binding/src/BluetoothHciSocket.o' failed
make: *** [Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
make: Leaving directory '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/build'
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:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.57-rockchip
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node" "--module_name=binding" "--module_path=/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket
gyp ERR! node -v v12.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not okDabei handelt es sich tatsächlich um einen Fehler bei der Kompilierung. Node 12 geht also wohl doch noch nicht.
-
@AlCalzone
Sagte ich doch!
Dann kann ich mein Testsystem beruhigt wieder abbauen.
Gruß,
Mathias -
@MathiasJ Dankeschön!