NEWS
[gelöst] Amazon-dash instanz startet nicht
-
Hallo Zusammen,
bei mir startet die Amazon-dash Instanz nicht. bzw. bleibt rot und schmeißt folgenden fehler ins log.
host.raspberrypi 2018-04-17 17:17:44.471 info Restart adapter system.adapter.amazon-dash.0 because enabled host.raspberrypi 2018-04-17 17:17:44.471 error instance system.adapter.amazon-dash.0 terminated with code 0 (OK) host.raspberrypi 2018-04-17 17:17:44.470 error Caught by controller[0]: at Module.load (module.js:565:32) host.raspberrypi 2018-04-17 17:17:44.470 error Caught by controller[0]: at Object.Module._extensions..js (module.js:663:10) host.raspberrypi 2018-04-17 17:17:44.470 error Caught by controller[0]: at Module._compile (module.js:652:30) host.raspberrypi 2018-04-17 17:17:44.470 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/pcap/pcap.js:3:21) host.raspberrypi 2018-04-17 17:17:44.470 error Caught by controller[0]: at require (internal/module.js:11:18) host.raspberrypi 2018-04-17 17:17:44.470 error Caught by controller[0]: at Module.require (module.js:596:17) host.raspberrypi 2018-04-17 17:17:44.470 error Caught by controller[0]: at Function.Module._load (module.js:497:3) host.raspberrypi 2018-04-17 17:17:44.470 error Caught by controller[0]: at tryModuleLoad (module.js:505:12) host.raspberrypi 2018-04-17 17:17:44.470 error Caught by controller[0]: at Module.load (module.js:565:32) host.raspberrypi 2018-04-17 17:17:44.469 error Caught by controller[0]: at Object.Module._extensions..node (module.js:681:18) host.raspberrypi 2018-04-17 17:17:44.469 error Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). host.raspberrypi 2018-04-17 17:17:44.469 error Caught by controller[0]: NODE_MODULE_VERSION 57\. Please try re-compiling or re-installing host.raspberrypi 2018-04-17 17:17:44.469 error Caught by controller[0]: NODE_MODULE_VERSION 59\. This version of Node.js requires host.raspberrypi 2018-04-17 17:17:44.469 error Caught by controller[0]: was compiled against a different Node.js version using host.raspberrypi 2018-04-17 17:17:44.468 error Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node' amazon-dash.0 2018-04-17 17:17:44.211 info starting. Version 0.2.9 in /opt/iobroker/node_modules/iobroker.amazon-dash, node: v8.11.1 host.raspberrypi 2018-04-17 17:17:42.934 info instance system.adapter.amazon-dash.0 started with pid 1065hat jemand eine Lösung dafür?
ioBroker läuft auf einem Raspi 3 mit raspian Stretch
node und nodejs v8.11.1
npm v5.6.0
Danke
Gruß Jens
-
nachdem ich sudo npm rebuild , sudo npm install durchgeführt hatte zeigte er ein update
auf 5.8.0 an…
installiert, noch mal sudo apt update und upgrade durch geführt.
reboot..
Erfolglos.
Bis ich dann gelesen habe, im Ordner des Adapters! (Wer lesen kann ist klar im Vorteil!)
Also im Ordner des AmazonDash Button durchgeführt
und siehe da, kein Fehler mehr und Instanz ist Grün..
Super Tipp!
Danke
-
npm v5.6.0 `
npm 5.6.0 ist böse!für ioBroker muss die Version >=5.7.1 sein, sonst gibt es u.U. irreparable Probleme.
Bitte mit
npm install -g npm@latestunbedingt upgraden.
Gruß
Rainer
-
ich hatte vorher bereits 5.8.0 drauf, allerdings durch die Aktion des angleichens der Version von nodejs und node auf 8.11.1
ist irgendwie 5.6.0 mitgekommen.
Habe ich aber erst Gestern beim npm rebuild gemerkt. daher das update auf die 5.8.0 durchgeführt.
somit habe ich jetzt
nodejs und node auf v8.11.1 und npm auf v5.8.0
entscheidend war aber noch das npm rebuild im Ordner des amazondash Adapters.
Protokoll, Log?
wenn es irgendwo gespeichert wird nebenher und mir sagte jemand wo, dann schaue ich gern mal und poste es
Noch ne kurze Frage, ist das richtig so mit dem "gelöst" setzen, nur im ersten Post oder
gbit es da eine extra Funktion?
Danke
Gruß Jens
-
Hi,
das mit dem "Gelöst" ist richtig.
Mit welchem Tool hast du das Upgrade gemacht (Putty !?)
Könntest mal im SYSLOG schauen, ob im iobroker log etwas davon steht glaube ich nicht.
Dann gibt es meistens noch ein NPM log, da dürften aber deine Upgrade befehle nicht drin stehen und um die würde es mir gehen da wie einen anderen User haben bei dem der Upgrade von 5.6.0 –> 5.8.0 mit allen möglichen Kombinationen nicht klappen will.
-
Also im Log find ich so nix.
aber ich kann ja die history der eingaben im terminal einsehen. wenn ich mit dem Pfeil nach oben gehe
ich würde sagen diese Schritte habe ich Gestern durchgeführt ist vieles doppelt….
$ sudo npm rebuild $ npm-v $ sudo npm i -g npm $ npm -v $ sudo apt update $ sudo apt upgrade $ node -v $ nodejs -v $ npm -v $ sudo npm rebuild $ sudo npm install $ sudo npm rebuild $ npm -v $ sudo reboot $ cd /opt/iobroker/iobroker-data/files/amazon-dash.admin $ sudo npm rebuild $ npm -v $ nodejs -vich schaue auch noch mal inwieweit ich es im anderen Post beschreiben habe.
so wie homoran bereits geschreiben hatte, hatte ich vor dem ganzen Thema, dass sich durch die node/nodejs etc
die 5.6.0 eingeschlichen hatte mit
sudo npm install -g npm@latestdie 5.8.0 installiert.
und Gestern kam bei einem der Schritte so eine Info in einem "grafischen kasten" das update von 5.6.0 -> 5.8.0 möglich ist
ich meine sogar mit kurzer Info wie.
Gruß Jens
-
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 permittedWie 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.0UPDATE:
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 createdUPDATE 2:
Ich habe den Adapter wieder ans Laufen bekommen.
Nachdem ich folgende zwei Befehle ausgeführt habe:npm install pcap npm install socketwatcher