NEWS
Diverse Fehlermeldungen beim Update von Adaptern
-
Hallo zusammen,
ich habe seit einiger Zeit ständig Fehlermeldungen beim update von diversen Adaptern, mit denen ich nichts anfangen kann. Letztendlich scheint das update wohl funktioniert zu haben, zumindest steht anschließend immer die neue Version da.
Hier ein Beispiel vom update auf den aktuellsten cloud adapter 1.0:
host.ioBroker-cubie Adapter "system.adapter.cloud.0" is stopped. npm install iobroker.cloud@1.0.0 --production --prefix "/media/ssd/iobroker/iobroker" (System call) In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h:261:25: error: redefinition of ‘template <class t="">v8::Local _NanEnsureLocal(v8::Local)’ NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) { ^ ../node_modules/nan/nan.h:256:25: note: ‘template <class t="">v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) { ^ ../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’ , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(char*, size_t, int)’: ../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(const char*, uint32_t)’: ../node_modules/nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^ ../node_modules/nan/nan.h:672:67: note: candidates are: In file included from ../src/bufferutil.cc:10:0: /home/cubie/.node-gyp/4.8.3/include/node/node_buffer.h:34:40: note: v8::MaybeLocal <v8::object>node::Buffer::New(v8::Isolate*, v8::Local<v8::string>, node::encoding) <near match="">NODE_EXTERN v8::MaybeLocal <v8::object>New(v8::Isolate* isolate, ^ /home/cubie/.node-gyp/4.8.3/include/node/node_buffer.h:34:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’ /home/cubie/.node-gyp/4.8.3/include/node/node_buffer.h:46:40: note: v8::MaybeLocal <v8::object>node::Buffer::New(v8::Isolate*, char*, size_t) <near match="">NODE_EXTERN v8::MaybeLocal <v8::object>New(v8::Isolate* isolate, ^ /home/cubie/.node-gyp/4.8.3/include/node/node_buffer.h:46:40: note: no known conversion for argument 2 from ‘const char*’ to ‘char*’ In file included from ../src/bufferutil.cc:16:0: ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(uint32_t)’: ../node_modules/nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocal<v8::object>’ to ‘v8::Local<v8::object>’ return node::Buffer::New(v8::Isolate::GetCurrent(), size); ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanBufferUse(char*, uint32_t)’: ../node_modules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’ return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); ^ make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 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:285:23)gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 4.10.12-sunxigyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /media/ssd/iobroker/iobroker/node_modules/bufferutil gyp ERR! node -v v4.8.3 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h:261:25: error: redefinition of ‘template <class t="">v8::Local _NanEnsureLocal(v8::Local)’ NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) { ^ ../node_modules/nan/nan.h:256:25: note: ‘template <class t="">v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) { ^ ../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’ , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(char*, size_t, int)’: ../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(const char*, uint32_t)’: ../node_modules/nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^ ../node_modules/nan/nan.h:672:67: note: candidates are: In file included from ../src/validation.cc:10:0: /home/cubie/.node-gyp/4.8.3/include/node/node_buffer.h:34:40: note: v8::MaybeLocal <v8::object>node::Buffer::New(v8::Isolate*, v8::Local<v8::string>, node::encoding) <near match="">NODE_EXTERN v8::MaybeLocal <v8::object>New(v8::Isolate* isolate, ^ /home/cubie/.node-gyp/4.8.3/include/node/node_buffer.h:34:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’ /home/cubie/.node-gyp/4.8.3/include/node/node_buffer.h:46:40: note: v8::MaybeLocal <v8::object>node::Buffer::New(v8::Isolate*, char*, size_t) <near match="">NODE_EXTERN v8::MaybeLocal <v8::object>New(v8::Isolate* isolate, ^ /home/cubie/.node-gyp/4.8.3/include/node/node_buffer.h:46:40: note: no known conversion for argument 2 from ‘const char*’ to ‘char*’ In file included from ../src/validation.cc:15:0: ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanNewBufferHandle(uint32_t)’: ../node_modules/nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocal<v8::object>’ to ‘v8::Local<v8::object>’ return node::Buffer::New(v8::Isolate::GetCurrent(), size); ^ ../node_modules/nan/nan.h: In function ‘v8::Local <v8::object>NanBufferUse(char*, uint32_t)’: ../node_modules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’ return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); ^ make: *** [Release/obj.target/validation/src/validation.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 4.10.12-sunxigyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /media/ssd/iobroker/iobroker/node_modules/utf-8-validategyp ERR! node -v v4.8.3 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok ../authenticate_pam.cc:30:31: fatal error: security/pam_appl.h: No such file or directory #include <security pam_appl.h="">^ compilation terminated. make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23)gyp ERR! stack at emitTwo (events.js:87:13)gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 4.10.12-sunxi gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /media/ssd/iobroker/iobroker/node_modules/authenticate-pam gyp ERR! node -v v4.8.3 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok In file included from ../src/dns_sd.cpp:1:0:../src/mdns.hpp:32:20: fatal error: dns_sd.h: No such file or directory #include <dns_sd.h>^ compilation terminated. make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12) gyp ERR! System Linux 4.10.12-sunxi gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /media/ssd/iobroker/iobroker/node_modules/mdnsgyp ERR! node -v v4.8.3 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/utf-8-validate): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 (node_modules/authenticate-pam):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.3.3 (node_modules/mdns): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.3.3 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 host.ioBroker-cubie Adapter "system.adapter.cloud.0" is started npm install --production (System call) in "/media/ssd/iobroker/iobroker/node_modules/iobroker.cloud"</dns_sd.h></security></v8::object></v8::object></v8::object></v8::object></v8::object></near></v8::object></v8::object></near></v8::string></v8::object></v8::object></v8::object></class></class></v8::object></v8::object></v8::object></v8::object></v8::object></near></v8::object></v8::object></near></v8::string></v8::object></v8::object></v8::object></class></class>
die letzten Zeilen fehlen, exit code 0 oder so wird dann angezeigt, hatte es nur rauskopiert, als es noch lief, anschließend ist das Fenster ja sofort zu…
und das hier spuckt das allg. logging aus, gefiltert nach cloud:
cloud.0 2017-05-22 17:18:19.149 info 2017-05-22T15:18:19.148Z Connected system.user.admin cloud.0 2017-05-22 17:18:17.709 info Connection changed: CONNECTED1 cloud.0 2017-05-22 17:18:16.849 info Connecting with https://iobroker.net:10555 with "xxxxxxxxxxxxxxxxxxxxx" cloud.0 2017-05-22 17:18:16.685 info starting. Version 1.0.0 in /media/ssd/iobroker/iobroker/node_modules/iobroker.cloud, node: v4.8.3 cloud.0 2017-05-22 17:18:06.985 info terminating cloud.0 2017-05-22 17:18:06.821 info Connection changed: DISCONNECTED3 cloud.0 2017-05-22 17:16:52.673 info 2017-05-22T15:16:52.672Z Connected system.user.admin cloud.0 2017-05-22 17:16:49.594 info Connection changed: CONNECTED1 cloud.0 2017-05-22 17:16:48.483 info Connecting with https://iobroker.net:10555 with "xxxxxxxxxxxxxxxxxxxxxx" cloud.0 2017-05-22 17:16:48.151 info starting. Version 1.0.0 in /media/ssd/iobroker/iobroker/node_modules/iobroker.cloud, node: v4.8.3
Danke schon mal für die Antworten,
Gruß Holger
-
Das sind alles gerade "optional dependencies", also welche die kaputt gehen dürfen.
Warum es auftritt muss man im einzelnen rausfinden, aber erstmal korrekt das es nur eine untergeordnete Rolle spielt.
Ingo