NEWS
UNSOLVED Fehler beim Update verschiedenster Adapter
-
groups gibt aus:
max cdrom floppy sudo audio dip video plugdev netdev
"max" ist dabei mein User.
Ich führe sämtliche Befehle der Konsole aber immer über die Virtualization Station als root aus. Ist das falsch?
also wenn ich wie oben beschrieben den iobroker stoppen will mache ich das als root. Wenn ich nodejs update, dann mache ich das mit "curl" als root und nicht mit "sudo curl" als User. -
@M-A-X Die Gruppen passen soweit.
max ist in sudo drin.Ich kenne die Virtualisierung nicht, aber eigentlich meldest du dich als max im virtualisierten Debian an und dann arbeitest du von innerhalb als max und wenn erweiterte Rechte erforderlich sind dann mit 'sudo' vor dem Befehl.
iobroker muss nicht von root gestoppt werden, das sollte auch ein user aus der Gruppe 'iobroker' können.Füg den max mal bei iobroker hinzu:
sudo usermod -a -G iobroker max
-
Hey,
das heißt aber auch, dass da nicht mein Problem stecken sollte, oder?
"Früher" (auf nem Raspberry mit Rasbian) bin ich immer hingegangen und habe in der Konsole als erstes "sudo bash" eingegeben um mir das sudo vor jedem Befehlt zu sparen Jetzt als root habe ich auch das "vereinfacht".
Kann man denn mit meinen oben genannten Daten das Problem einkreisen? Der Artikel über "PAM" hilft mir leider nicht weiter. Ich bin zwar fit, was IT grundsätzlich betrifft, bei Linux mit den Rechten und Befehlen aber ziemlich hilflosEDIT: habe max bei iobroker hinzugefügt. Kann ich irgendwie testen ob das was bringt? Die Adapter sind ja jetzt up to date (das updaten klappt ja aber halt mit Fehlern).
-
@M-A-X said in Fehler beim Update verschiedenster Adapter:
"Früher" (auf nem Raspberry mit Rasbian) bin ich immer hingegangen und habe in der Konsole als erstes "sudo bash" eingegeben um mir das sudo vor jedem Befehlt zu sparen Jetzt als root habe ich auch das "vereinfacht".
Ganz doofe Idee.
Ich bin an der Stelle auch raus, wer weiß was du da noch alles verbogen hast.
Da sucht man sich dann zum Schänzchen.Ich bin zwar fit, was IT grundsätzlich betrifft, bei Linux mit den Rechten und Befehlen aber ziemlich hilflos
Und warum in aller Welt fuhrwerkst du dann mit dem Rechtegefüge so rum, wenn du keine Ahnung hast?
-
Hmm. Wie gesagt habe ich das früher beim Rapberry immer mit sudo bash gemacht. Hier beim QNAP von Anfang an über die interne Konsole als root mit den Befehlen hier aus dem Forumsbeitrag zum Update von node.js.
Also - sollte mir kein anderer helfen können - sollte ich iobroker über das script installieren als root? und danach immer mit meinem User "iobroker" arbeiten? Nie "sudo bash" benutzen?
EDIT: Ich bin davon ausgegangen, dass man Installationen (wie in Windows) als "administrator" (also root) durchführt und der normale Benutzer nur für die Benutzung da ist. Außerdem sollte es doch keine Rolle spielen, ob ich statt vor jeden Befehl ein "sudo" zu setzen mich gleich als "root" anmelde, oder? Kann auch mein Fehler sein. Ich habe - soweit mir bekannt ist - nie irgendwelche Rechte permanent geändert und somit - so dachte ich - nie ins Rechtegefüge eingegriffen -
@M-A-X
Nein, NIE 'sudo bash' benutzen!
Da ist jetzt alles mögliche krumm.
Was passiert bei einemiobroker fix
Vielleicht kann das noch etwas retten...
Zuvor den max einmal aus- und wieder einloggen.Außerdem sollte es doch keine Rolle spielen, ob ich statt vor jeden Befehl ein "sudo" zu setzen mich gleich als "root" anmelde, oder?
Doch, das macht einen großen Unterschied!
Und wo steht in der Installationsanleitung, dass man das Installationsskript als root aufruft? Müsstest du mir zeigen.
-
Hey,
hast Recht, steht nirgendwo.
Der "fix" läuft ohne Fehler etc durch.
Wie gesagt dachte ich, dass ich statt immer sudo zu schreiben auch gleich als root arbeiten kann (bei der Installation). Das ist mein Fehler.
Edit: also nicht falsch verstehen. Ich bin mir bewusst, dass ich was falsch gemacht habe. Ich habe nur gehofft ihr könnt mir helfen es gerade zu rücken. Warum es schief gelaufen ist weiß ich ja jetzt schon mal
Edit 2: es läuft ja auch alles, aber die Fehlermeldungen haben mir bewusst gemacht, dass das evtl nicht so bleibt. Updates 'klappen' mit Fehler Meldung und es werden auch wirklich die neuen Versionen installiert. -
@M-A-X
Das 'geraderücken' ist nur verdammt schwer, ohne zu wissen was du da seit wann in der root-Shell veranstaltet hast.Stell dich mal als user in /opt/iobroker und dann versuchst du das nochmal:
npm install iobroker.simple-api@2.4.3 --loglevel error --prefix "/opt/iobroker"
-
Hey,
vielen Dank, dass du trotzdem hilfst.
da kommt:max@debian:/opt/iobroker$ npm install iobroker.simple-api@2.4.3 --loglevel error --prefix "/opt/iobroker" > authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam > node-gyp rebuild make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o In file included from ../authenticate_pam.cc:23: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../../nan/nan.h:2298: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<uv_after_work_cb>(AsyncExecuteComplete) ^ ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’: ../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^ In file included from ../authenticate_pam.cc:23: ../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^ In file included from ../authenticate_pam.cc:23: ../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Nan::NAN_METHOD_ARGS_TYPE)’: ../authenticate_pam.cc:147:83: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked()); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14, from /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:27, from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’ serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc:152:69: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked()); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14, from /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:27, from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’ remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’ username->WriteUtf8(m->username, sizeof(m->username) - 1); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’ password->WriteUtf8(m->password, sizeof(m->password) - 1); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc: At global scope: ../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void void init(Handle<Object> exports) { ^~~~~~ ../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope ../authenticate_pam.cc:170:11: note: suggested alternative: ‘rand_r’ void init(Handle<Object> exports) { ^~~~~~ rand_r ../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token void init(Handle<Object> exports) { ^ ../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope void init(Handle<Object> exports) { ^~~~~~~ In file included from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: ../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope NODE_MODULE(authenticate_pam, init); ^~~~ /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~ ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~ ../authenticate_pam.cc:175:31: note: suggested alternative: ‘int’ NODE_MODULE(authenticate_pam, init); ^~~~ /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~ ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~ make: *** [authenticate_pam.target.mk:111: Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1 make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/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:310:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.19.0-8-amd64 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/authenticate-pam gyp ERR! node -v v12.16.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok > node-bluetooth@1.2.6 install /opt/iobroker/node_modules/node-bluetooth > node-gyp configure build make: Verzeichnis „/opt/iobroker/node_modules/node-bluetooth/build“ wird betreten CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o In file included from ../src/DeviceINQ.h:17, from ../src/linux/BluetoothSerialPort.cc:13: ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../node_modules/nan/nan.h:2298: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<uv_after_work_cb>(AsyncExecuteComplete) ^ ../src/linux/BluetoothSerialPort.cc: At global scope: ../src/linux/BluetoothSerialPort.cc:18:14: error: variable or field ‘InitAll’ declared void void InitAll(Handle<Object> exports) { ^~~~~~ ../src/linux/BluetoothSerialPort.cc:18:14: error: ‘Handle’ was not declared in this scope ../src/linux/BluetoothSerialPort.cc:18:14: note: suggested alternative: ‘rand_r’ void InitAll(Handle<Object> exports) { ^~~~~~ rand_r ../src/linux/BluetoothSerialPort.cc:18:27: error: expected primary-expression before ‘>’ token void InitAll(Handle<Object> exports) { ^ ../src/linux/BluetoothSerialPort.cc:18:29: error: ‘exports’ was not declared in this scope void InitAll(Handle<Object> exports) { ^~~~~~~ In file included from ../src/linux/BluetoothSerialPort.cc:12: ../src/linux/BluetoothSerialPort.cc:23:34: error: ‘InitAll’ was not declared in this scope NODE_MODULE(BluetoothSerialPort, InitAll) ^~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~ ../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(BluetoothSerialPort, InitAll) ^~~~~~~~~~~ make: *** [BluetoothSerialPort.target.mk:117: Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o] Fehler 1 make: Verzeichnis „/opt/iobroker/node_modules/node-bluetooth/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:310:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.19.0-8-amd64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /opt/iobroker/node_modules/node-bluetooth gyp ERR! node -v v12.16.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok + iobroker.simple-api@2.4.3 removed 8 packages and updated 1 package in 61.464s 47 packages are looking for funding run `npm fund` for details
EDIT: mir scheint, dass es irgendwie mit Bluetooth Probleme gibt. Obwohl der Adapter doch nichts damit zu tun hat, kommen Meldungen hierzu
-
@M-A-X
Da werden zwei node-Module gebaut.
simple-api und node-bluetoothsimple-api müsste jetzt aber durch sein.
npm install node-bluetooth@1.2.6 --loglevel error
in /opt/iobroker
-
das ergibt:
max@debian:/opt/iobroker$ npm install node-bluetooth@1.2.6 --loglevel error > authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam > node-gyp rebuild make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o In file included from ../authenticate_pam.cc:23: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../../nan/nan.h:2298: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<uv_after_work_cb>(AsyncExecuteComplete) ^ ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’: ../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^ In file included from ../authenticate_pam.cc:23: ../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^ In file included from ../authenticate_pam.cc:23: ../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Nan::NAN_METHOD_ARGS_TYPE)’: ../authenticate_pam.cc:147:83: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked()); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14, from /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:27, from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’ serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc:152:69: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked()); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14, from /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:27, from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’ remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’ username->WriteUtf8(m->username, sizeof(m->username) - 1); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’ password->WriteUtf8(m->password, sizeof(m->password) - 1); ^ In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’ ../authenticate_pam.cc: At global scope: ../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void void init(Handle<Object> exports) { ^~~~~~ ../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope ../authenticate_pam.cc:170:11: note: suggested alternative: ‘rand_r’ void init(Handle<Object> exports) { ^~~~~~ rand_r ../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token void init(Handle<Object> exports) { ^ ../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope void init(Handle<Object> exports) { ^~~~~~~ In file included from ../../nan/nan.h:54, from ../authenticate_pam.cc:23: ../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope NODE_MODULE(authenticate_pam, init); ^~~~ /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~ ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~ ../authenticate_pam.cc:175:31: note: suggested alternative: ‘int’ NODE_MODULE(authenticate_pam, init); ^~~~ /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~ ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~ make: *** [authenticate_pam.target.mk:111: Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1 make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/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:310:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.19.0-8-amd64 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/authenticate-pam gyp ERR! node -v v12.16.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok > node-bluetooth@1.2.6 install /opt/iobroker/node_modules/node-bluetooth > node-gyp configure build make: Verzeichnis „/opt/iobroker/node_modules/node-bluetooth/build“ wird betreten CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o In file included from ../src/DeviceINQ.h:17, from ../src/linux/BluetoothSerialPort.cc:13: ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../node_modules/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<uv_after_work_cb>(AsyncExecuteComplete) ^ ../src/linux/BluetoothSerialPort.cc: At global scope: ../src/linux/BluetoothSerialPort.cc:18:14: error: variable or field ‘InitAll’ declared void void InitAll(Handle<Object> exports) { ^~~~~~ ../src/linux/BluetoothSerialPort.cc:18:14: error: ‘Handle’ was not declared in this scope ../src/linux/BluetoothSerialPort.cc:18:14: note: suggested alternative: ‘rand_r’ void InitAll(Handle<Object> exports) { ^~~~~~ rand_r ../src/linux/BluetoothSerialPort.cc:18:27: error: expected primary-expression before ‘>’ token void InitAll(Handle<Object> exports) { ^ ../src/linux/BluetoothSerialPort.cc:18:29: error: ‘exports’ was not declared in this scope void InitAll(Handle<Object> exports) { ^~~~~~~ In file included from ../src/linux/BluetoothSerialPort.cc:12: ../src/linux/BluetoothSerialPort.cc:23:34: error: ‘InitAll’ was not declared in this scope NODE_MODULE(BluetoothSerialPort, InitAll) ^~~~~~~ /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~ ../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(BluetoothSerialPort, InitAll) ^~~~~~~~~~~ make: *** [BluetoothSerialPort.target.mk:117: Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o] Fehler 1 make: Verzeichnis „/opt/iobroker/node_modules/node-bluetooth/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:310:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.19.0-8-amd64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /opt/iobroker/node_modules/node-bluetooth gyp ERR! node -v v12.16.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-bluetooth@1.2.6 install: `node-gyp configure build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-bluetooth@1.2.6 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/max/.npm/_logs/2020-05-01T14_22_38_389Z-debug.log
-
@M-A-X
Ich bin raus. Keine Idee mehr.
Ich würde das System neu und dann sauber (ohne root-login!) aufsetzen. -
Schade
Aber vielen Dank trotzdem und einen schönen Feiertag noch.
Ich warte mal ab (da ja alles läuft). Vielleicht hat jemand anderes ja noch ne Idee.EDIT: Achja: Wenn ich das System neu installiere (Debian + iobroker nach anleitung (ohne Root^^) kann ich dann das iobroker backup einfach zurück spielen? oder haue ich mir dann fehler wieder rein? Soweit ich das verstehe sind im Backup doch nur einstellungen und welche Adapter installiert sind - installiert werden die aber neu?!?
EDIT2: Kann es sein, dass einer der Adapter, die Bluetooth verwenden, einfach ein Problem mit Node.js 12 haben? also bei meinem System ble oder radar2? oder dass ein Modul, das bluetooth-node braucht noch nicht verfügbar ist in der richtigen Version? -
@M-A-X
Zufällig Radar2 installiert?
Den Fehler mit dem BluetoothSerialPort habe ich hier auch.
Vermute das der Adapter da irgend eine alte Abhängigkeit installieren will, was unter Buster wohl fehlschlägt.
Funktioniert aber trotzdem der Adapter.
Ist nur Nervig die ständigen Fehlermeldungen. -
Oh,
jetzt hat sich mein EDIT2 mit dir überschnitten.
Genau das war jetzt auch meine Vermutung... BLE oder Radar2 versuchen irgendwas zu installieren, was es (noch) nicht gibt?!? -
Hi!
@M-A-X
Sorry für's Leichenfleddern, aber hast du jemals herausgefunden was das Problem war?Marcus
-
@mazchen leider nein... Ich hab neu installiert