Hallo zusammen,
bei mir lässt sich die Dash-Instanz nun auch nicht mehr starten (dauerhaft rot). Bis heute Morgen lief alles gut. Ich musste den Javascript-Adapter jedoch neu installieren und seitdem habe ich die Probleme.
Deinstallation und Neuinstallation haben nicht geholfen.
Folgende Fehler gibt mir das Log direkt beim Starten der Instanz aus:
host.ioBroker-RasPi 2019-02-16 13:35:21.990 info Restart adapter system.adapter.amazon-dash.0 because enabled
host.ioBroker-RasPi 2019-02-16 13:35:21.990 error instance system.adapter.amazon-dash.0 terminated with code 0 (OK)
host.ioBroker-RasPi 2019-02-16 13:35:21.990 error Caught by controller[0]: at Socket.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:787:25)
host.ioBroker-RasPi 2019-02-16 13:35:21.990 error Caught by controller[0]: at createInstancesObjects (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:748:13)
host.ioBroker-RasPi 2019-02-16 13:35:21.990 error Caught by controller[0]: at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:788:29
host.ioBroker-RasPi 2019-02-16 13:35:21.990 error Caught by controller[0]: at initAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4990:18)
host.ioBroker-RasPi 2019-02-16 13:35:21.990 error Caught by controller[0]: at Adapter.emit (events.js:208:7)
host.ioBroker-RasPi 2019-02-16 13:35:21.989 error Caught by controller[0]: at emitNone (events.js:106:13)
host.ioBroker-RasPi 2019-02-16 13:35:21.989 error Caught by controller[0]: at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.amazon-dash/main.js:43:5)
host.ioBroker-RasPi 2019-02-16 13:35:21.989 error Caught by controller[0]: at main (/opt/iobroker/node_modules/iobroker.amazon-dash/main.js:78:29)
host.ioBroker-RasPi 2019-02-16 13:35:21.989 error Caught by controller[0]: at Object.exports.createSession (/opt/iobroker/node_modules/pcap/pcap.js:123:12)
host.ioBroker-RasPi 2019-02-16 13:35:21.989 error Caught by controller[0]: at new PcapSession (/opt/iobroker/node_modules/pcap/pcap.js:49:39)
host.ioBroker-RasPi 2019-02-16 13:35:21.988 error Caught by controller[0]: Error: socket: Operation not permitted
Wie gesagt, Neuinstallation, Neustart des Raspis und ein npm Rebuild (siehe oben) haben nichts gebracht.
Leider werde ich aus dem Log nicht schlau. Hat jemand eine Idee?
Installiert:
Npm 6.4.1
Node 8.15.0
UPDATE:
Ich habe den Adapter noch mal neu installiert und mir das Log angeschaut. Hier treten bereits einige Fehler auf. Die Instanz wird dann aber trotzdem angelegt:
sudo iobroker add amazon-dash
NPM version: 6.4.1
npm install iobroker.amazon-dash --production --save --prefix "/opt/iobroker" (System call)
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
../socket_watcher.cpp: In static member function ‘static void SocketWatcher::Callback(uv_poll_t*, int, int)’:
../socket_watcher.cpp:77:60: 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(watcher->handle(), callback, argc, argv);
^
In file included from ../socket_watcher.hpp:8:0,
from ../socket_watcher.cpp:5:
../../nan/nan.h:959:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
../pcap_session.cc: In static member function ‘static void PcapSession::PacketReady(u_char*, const pcap_pkthdr*, const u_char*)’:
../pcap_session.cc:85:102: 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(session->packet_ready_cb), 0, NULL);
^
In file included from ../pcap_session.h:4:0,
from ../pcap_session.cc:7:
../../nan/nan.h:959:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (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"})
host.ioBroker-RasPi install adapter amazon-dash
got /opt/iobroker/node_modules/iobroker.amazon-dash/admin
upload [3] amazon-dash.admin /opt/iobroker/node_modules/iobroker.amazon-dash/admin/words.js words.js application/javascript
upload [2] amazon-dash.admin /opt/iobroker/node_modules/iobroker.amazon-dash/admin/index_m.html index_m.html text/html
upload [1] amazon-dash.admin /opt/iobroker/node_modules/iobroker.amazon-dash/admin/index.html index.html text/html
upload [0] amazon-dash.admin /opt/iobroker/node_modules/iobroker.amazon-dash/admin/amazon-dash.png amazon-dash.png image/png
host.ioBroker-RasPi object system.adapter.amazon-dash created
host.ioBroker-RasPi create instance amazon-dash
host.ioBroker-RasPi object system.adapter.amazon-dash.0.outputCount created
host.ioBroker-RasPi object system.adapter.amazon-dash.0.inputCount created
host.ioBroker-RasPi object system.adapter.amazon-dash.0.uptime created
host.ioBroker-RasPi object system.adapter.amazon-dash.0.memRss created
host.ioBroker-RasPi object system.adapter.amazon-dash.0.memHeapTotal created
host.ioBroker-RasPi object system.adapter.amazon-dash.0.memHeapUsed created
host.ioBroker-RasPi object system.adapter.amazon-dash.0.connected created
host.ioBroker-RasPi object system.adapter.amazon-dash.0.alive created
host.ioBroker-RasPi object system.adapter.amazon-dash.0 created
UPDATE 2:
Ich habe den Adapter wieder ans Laufen bekommen.
Nachdem ich folgende zwei Befehle ausgeführt habe:
npm install pcap
npm install socketwatcher