NEWS
[gelöst]Adapter update geht nicht mehr
-
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash
-
@thomas-braun
das bringt den gleichen Fehler wie oben ( 14... scheint nicht zu gehen...aber das
sudo apt update sudo apt full-upgrade
hat npm 6 zurückgebracht...
es hagelt jetzt npm compiler errors beim update aber die updates lufen durch -
@stoffel67 sagte in Adapter update geht nicht mehr:
es hagelt jetzt npm compiler errors beim update
und die sind geheim?
-
@homoran
Nö... sind sie nicht ... hab aber zu schnell weggedrückt...
aus dem current LOG:2022-02-03 10:45:43.650 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’: 2022-02-03 10:45:43.678 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object$ 2022-02-03 10:45:43.691 - ^[[32minfo^[[39m: host.raspberrypi iobroker In file included from ../../nan/nan.h:58, from ../authenticate_pam.cc:23:../authenti$ 2022-02-03 10:46:25.895 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/node_usb.cc: In function ‘Napi::Value SetDebugLevel(const Napi::CallbackInfo&)’: 2022-02-03 10:46:25.900 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/node_usb.cc:118:71: warning: ‘void libusb_set_debug(libusb_context*, int)’ is deprecated: Use$ 2022-02-03 10:46:25.912 - ^[[32minfo^[[39m: host.raspberrypi iobroker In file included from ../src/node_usb.h:11, from ../src/node_usb.cc:1:../libusb/libu$ 2022-02-03 10:47:20.087 - ^[[32minfo^[[39m: host.raspberrypi iobroker node-pre-gyp ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluet$ 2022-02-03 10:47:32.731 - ^[[32minfo^[[39m: host.raspberrypi iobroker In file included from /home/iobroker/.cache/node-gyp/12.22.10/include/node/node_buffer.h:25, $ 2022-02-03 10:47:33.458 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/BluetoothHciSocket.cpp: In member function ‘int BluetoothHciSocket::kernelDisconnectWorkAroun$ 2022-02-03 10:47:55.886 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’: 2022-02-03 10:47:55.891 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_wor$ 2022-02-03 10:47:55.925 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’: 2022-02-03 10:47:55.930 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_wo$ 2022-02-03 10:47:55.942 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:..$ 2022-02-03 10:47:55.965 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’: 2022-02-03 10:47:55.970 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_wo$ 2022-02-03 10:47:55.989 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:../s$ 2022-02-03 10:47:56.005 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’: 2022-02-03 10:47:56.011 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp:316:68: warning: cast between incompatible function types from ‘void (*)(uv_wo$ 2022-02-03 10:47:56.040 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYP$ 2022-02-03 10:47:56.045 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp:366:76: warning: cast between incompatible function types from ‘void (*)(uv_wo$ 2022-02-03 10:47:56.066 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’: 2022-02-03 10:47:56.071 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp:412:70: warning: cast between incompatible function types from ‘void (*)(uv_wo$ 2022-02-03 10:47:56.090 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport.cpp: At global scope:../src/serialport.cpp:433:28: warning: unnecessary parenthese$ 2022-02-03 10:47:56.103 - ^[[32minfo^[[39m: host.raspberrypi iobroker In file included from ../../../nan/nan.h:58, from ../src/./serialport.h:13, $ 2022-02-03 10:47:56.115 - ^[[32minfo^[[39m: host.raspberrypi iobroker NODE_MODULE(serialport, init); ^~~~~~~~~~~ 2022-02-03 10:48:09.508 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’: 2022-02-03 10:48:09.515 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport_unix.cpp:179:60: warning: ‘%s’ directive output may be truncated writing up to 102$ 2022-02-03 10:48:09.665 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’: 2022-02-03 10:48:09.669 - ^[[32minfo^[[39m: host.raspberrypi iobroker ../src/serialport_unix.cpp:89:60: warning: ‘%s’ directive output may be truncated writing up to 1023$ 2022-02-03 10:48:34.144 - ^[[32minfo^[[39m: host.raspberrypi iobroker upload [2] shelly.admin /opt/iobroker/node_modules/iobroker.shelly/admin/words.js words.js applicati$ 2022-02-03 10:48:34.698 - ^[[32minfo^[[39m: host.raspberrypi iobroker Update "system.adapter.shelly.0"
-
@stoffel67 sagte in Adapter update geht nicht mehr:
aus dem current LOG:
kein Error - nur warn.
Das passt
-
@homoran
kann man irgendwo einstellen, wie viel in der LOG Webseite angezeigt wird,
bei mir verschwinden die Einträge immmer bei neu öffnen -
@stoffel67 dann herunterladen
-
@homoran
so mein Testsystem scheint jetzt wieder up-to-date zu sein...
jetzt geh ich noch an das Produktivsystem ran da hab ich auch npm 8
ist die gleiche HW... ich hoffe das geht auch gut... -
das bringt den gleichen Fehler wie oben ( 14... scheint nicht zu gehen...
Warum nicht? Aktuelle Meldungen?
sudo apt update
Und die lange Befehlskette nochmal posten.
-
-
@stoffel67
Wow... kaum man mans richtig läufts ohne Fehler durch...
Danke für dein How-To
jetzt mus ich noch den js-controller updaten...
geht das mitiobroker upgrade self
???
-
iobroker stop iobroker update iobroker upgrade iobroker upgrade self iobroker upload all iobroker start
-
@thomas-braun
OK beim "iobroker upgrade self" kommt folgendes: ?????pi@raspberrypi:~ $ iobroker upgrade self Update js-controller from @3.2.16 to @3.3.22 NPM version: 6.14.16 npm install iobroker.js-controller@3.3.22 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call) ../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:1026: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:1026: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/iobroker/.cache/node-gyp/12.22.10/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.22.10/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.22.10/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/12.22.10/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~ /home/iobroker/.cache/node-gyp/12.22.10/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], unsigned int)’ serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1); ^ In file included from /home/iobroker/.cache/node-gyp/12.22.10/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/12.22.10/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/iobroker/.cache/node-gyp/12.22.10/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/iobroker/.cache/node-gyp/12.22.10/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.22.10/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.22.10/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/12.22.10/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~ /home/iobroker/.cache/node-gyp/12.22.10/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], unsigned int)’ remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1); ^ In file included from /home/iobroker/.cache/node-gyp/12.22.10/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/12.22.10/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/iobroker/.cache/node-gyp/12.22.10/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], unsigned int)’ username->WriteUtf8(m->username, sizeof(m->username) - 1); ^ In file included from /home/iobroker/.cache/node-gyp/12.22.10/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/12.22.10/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/iobroker/.cache/node-gyp/12.22.10/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], unsigned int)’ password->WriteUtf8(m->password, sizeof(m->password) - 1); ^ In file included from /home/iobroker/.cache/node-gyp/12.22.10/include/node/node.h:67, from ../../nan/nan.h:56, from ../authenticate_pam.cc:23: /home/iobroker/.cache/node-gyp/12.22.10/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/iobroker/.cache/node-gyp/12.22.10/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:56, from ../authenticate_pam.cc:23: ../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope NODE_MODULE(authenticate_pam, init); ^~~~ /home/iobroker/.cache/node-gyp/12.22.10/include/node/node.h:736: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/iobroker/.cache/node-gyp/12.22.10/include/node/node.h:736: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:109: Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Linux 5.10.11-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam gyp ERR! node -v v12.22.10 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok Starting node restart.js pi@raspberrypi:~ $
-
@thomas-braun
ich hab die Fehler mal ignoriert...
es lief alles weiter durch ... und alles scheint jetzt auch auf meine Peroduktivsystem "up-to-date" zu sein.
Vielen Dank nochmal für deine Hilfe ... und die "How-to's" -
@stoffel67
Die Fehler beim compile stammen höchstwahrscheinlich vom Adapter 'terminal'. Schmeiß den raus, braucht es eh nicht.
Du bist da aber noch auf node12 unterwegs, ich würde da halt auf 14 springen. -
@thomas-braun
Terminal hab ich gelsöcht...
auf node14 geht halt nicht, siehe Fehlermeldung(wie schon oben),pi@raspberrypi:~ $ sudo apt update OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease OK:2 http://archive.raspberrypi.org/debian buster InRelease OK:3 https://deb.nodesource.com/node_12.x buster InRelease Holen:4 https://deb.nodesource.com/node_14.x buster InRelease [4.584 B] Fehl:4 https://deb.nodesource.com/node_14.x buster InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 1655A0AB68576280 Paketlisten werden gelesen... Fertig W: GPG-Fehler: https://deb.nodesource.com/node_14.x buster InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 1655A0AB68576280 E: Das Depot »https://deb.nodesource.com/node_14.x buster InRelease« ist nicht signiert. N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert. N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
-
@stoffel67 sagte in Adapter update geht nicht mehr:
1655A0AB68576280
key mal so einspielen:
curl --silent https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
-
@thomas-braun
gleiches Ergebnis:pi@raspberrypi:/opt/iobroker/log $ curl --silent https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - OK pi@raspberrypi:/opt/iobroker/log $ sudo apt update OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease OK:2 http://archive.raspberrypi.org/debian buster InRelease OK:3 https://deb.nodesource.com/node_12.x buster InRelease Holen:4 https://deb.nodesource.com/node_14.x buster InRelease [4.584 B] Fehl:4 https://deb.nodesource.com/node_14.x buster InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 1655A0AB68576280 Paketlisten werden gelesen... Fertig W: GPG-Fehler: https://deb.nodesource.com/node_14.x buster InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 1655A0AB68576280 E: Das Depot »https://deb.nodesource.com/node_14.x buster InRelease« ist nicht signiert. N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert. N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8). pi@raspberrypi:/opt/iobroker/log $
-
@stoffel67
Dann anders...sudo mv /etc/apt/sources.list.d/nodesource.list /etc/apt/sources.list.d/nodesource.listbackup curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash sudo ln -s /usr/bin/node /usr/bin/nodejs sudo apt update
-
Wenn das durch ist:
sudo rm /etc/apt/sources.list.d/nodesource.listbackup sudo apt update sudo apt autoremove apt policy nodejs