NEWS
gelöst: Dash Adapter: wrong ELF class
-
Hi alle
Ich habe IOBroker auf einen Rock64 portiert.
Beim Dash Button Adapter (0.3.1) habe ich Probleme. Beim Starten kommt immer "wrong ELF class: ELFCLASS32"
host.ioBroker-Rock64 2019-05-02 22:45:00.078 info instance system.adapter.tvspielfilm.0 started with pid 28856 host.ioBroker-Rock64 2019-05-02 22:41:58.123 info Do not restart adapter system.adapter.amazon-dash.0 because disabled or deleted host.ioBroker-Rock64 2019-05-02 22:41:58.123 error instance system.adapter.amazon-dash.0 terminated with code 3 (Adapter disabled or invalid config) Caught 2019-05-02 22:41:58.123 error by controller[0]: at Module.load (module.js:566:32) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Object.Module._extensions..js (module.js:664:10) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Module._compile (module.js:653:30) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/pcap/pcap.js:3:21) Caught 2019-05-02 22:41:58.122 error by controller[0]: at require (internal/module.js:11:18) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Module.require (module.js:597:17) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Function.Module._load (module.js:498:3) Caught 2019-05-02 22:41:58.122 error by controller[0]: at tryModuleLoad (module.js:506:12) Caught 2019-05-02 22:41:58.121 error by controller[0]: at Module.load (module.js:566:32) Caught 2019-05-02 22:41:58.121 error by controller[0]: at Object.Module._extensions..node (module.js:682:18) Caught 2019-05-02 22:41:58.120 error by controller[0]: Error: /opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS32 amazon-dash.0 2019-05-02 22:41:58.053 error adapter disabled amazon-dash.0 2019-05-02 22:41:57.888 info States connected to redis: 127.0.0.1:6379 amazon-dash.0 2019-05-02 22:41:57.730 error at Module.load (module.js:566:32) amazon-dash.0 2019-05-02 22:41:57.730 error at Object.Module._extensions..js (module.js:664:10) amazon-dash.0 2019-05-02 22:41:57.730 error at Module._compile (module.js:653:30) amazon-dash.0 2019-05-02 22:41:57.730 error at Object.<anonymous> (/opt/iobroker/node_modules/pcap/pcap.js:3:21) amazon-dash.0 2019-05-02 22:41:57.730 error at require (internal/module.js:11:18) amazon-dash.0 2019-05-02 22:41:57.730 error at Module.require (module.js:597:17) amazon-dash.0 2019-05-02 22:41:57.730 error at Function.Module._load (module.js:498:3) amazon-dash.0 2019-05-02 22:41:57.730 error at tryModuleLoad (module.js:506:12) amazon-dash.0 2019-05-02 22:41:57.730 error at Module.load (module.js:566:32) amazon-dash.0 2019-05-02 22:41:57.730 error at Object.Module._extensions..node (module.js:682:18) amazon-dash.0 2019-05-02 22:41:57.730 error Error: /opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS32 amazon-dash.0 2019-05-02 22:41:57.718 error uncaught exception: /opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS3Node ist v8.15.0
NPM ist 6.9.0.Gruss Ralf
-
pcap installiert?
apt-get install libpcap-dev -
Hi alle
Ich habe IOBroker auf einen Rock64 portiert.
Beim Dash Button Adapter (0.3.1) habe ich Probleme. Beim Starten kommt immer "wrong ELF class: ELFCLASS32"
host.ioBroker-Rock64 2019-05-02 22:45:00.078 info instance system.adapter.tvspielfilm.0 started with pid 28856 host.ioBroker-Rock64 2019-05-02 22:41:58.123 info Do not restart adapter system.adapter.amazon-dash.0 because disabled or deleted host.ioBroker-Rock64 2019-05-02 22:41:58.123 error instance system.adapter.amazon-dash.0 terminated with code 3 (Adapter disabled or invalid config) Caught 2019-05-02 22:41:58.123 error by controller[0]: at Module.load (module.js:566:32) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Object.Module._extensions..js (module.js:664:10) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Module._compile (module.js:653:30) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/pcap/pcap.js:3:21) Caught 2019-05-02 22:41:58.122 error by controller[0]: at require (internal/module.js:11:18) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Module.require (module.js:597:17) Caught 2019-05-02 22:41:58.122 error by controller[0]: at Function.Module._load (module.js:498:3) Caught 2019-05-02 22:41:58.122 error by controller[0]: at tryModuleLoad (module.js:506:12) Caught 2019-05-02 22:41:58.121 error by controller[0]: at Module.load (module.js:566:32) Caught 2019-05-02 22:41:58.121 error by controller[0]: at Object.Module._extensions..node (module.js:682:18) Caught 2019-05-02 22:41:58.120 error by controller[0]: Error: /opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS32 amazon-dash.0 2019-05-02 22:41:58.053 error adapter disabled amazon-dash.0 2019-05-02 22:41:57.888 info States connected to redis: 127.0.0.1:6379 amazon-dash.0 2019-05-02 22:41:57.730 error at Module.load (module.js:566:32) amazon-dash.0 2019-05-02 22:41:57.730 error at Object.Module._extensions..js (module.js:664:10) amazon-dash.0 2019-05-02 22:41:57.730 error at Module._compile (module.js:653:30) amazon-dash.0 2019-05-02 22:41:57.730 error at Object.<anonymous> (/opt/iobroker/node_modules/pcap/pcap.js:3:21) amazon-dash.0 2019-05-02 22:41:57.730 error at require (internal/module.js:11:18) amazon-dash.0 2019-05-02 22:41:57.730 error at Module.require (module.js:597:17) amazon-dash.0 2019-05-02 22:41:57.730 error at Function.Module._load (module.js:498:3) amazon-dash.0 2019-05-02 22:41:57.730 error at tryModuleLoad (module.js:506:12) amazon-dash.0 2019-05-02 22:41:57.730 error at Module.load (module.js:566:32) amazon-dash.0 2019-05-02 22:41:57.730 error at Object.Module._extensions..node (module.js:682:18) amazon-dash.0 2019-05-02 22:41:57.730 error Error: /opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS32 amazon-dash.0 2019-05-02 22:41:57.718 error uncaught exception: /opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node: wrong ELF class: ELFCLASS3Node ist v8.15.0
NPM ist 6.9.0.Gruss Ralf
@derrapf sagte in Dash Adapter: wrong ELF class:
Ich habe IOBroker auf einen Rock64 portiert.
ELFCLASS32"
Du hast Binaries, die für ein 32-bit-System kompiliert waren auf ein 64-bit-System übertragen. Das läuft nicht, die musst du neu kompilieren.
Im besten Fall sollte das mit einem
npm rebuildim Ordner/opt/iobrokerfunktionieren. Andernfalls kannst du auch in/opt/iobroker/node_modules/pcap/einnpm i --productionausführen, um nur daspcap-Modul neu zu kompilieren. -
pcap installiert?
apt-get install libpcap-dev -
@derrapf sagte in Dash Adapter: wrong ELF class:
Ich habe IOBroker auf einen Rock64 portiert.
ELFCLASS32"
Du hast Binaries, die für ein 32-bit-System kompiliert waren auf ein 64-bit-System übertragen. Das läuft nicht, die musst du neu kompilieren.
Im besten Fall sollte das mit einem
npm rebuildim Ordner/opt/iobrokerfunktionieren. Andernfalls kannst du auch in/opt/iobroker/node_modules/pcap/einnpm i --productionausführen, um nur daspcap-Modul neu zu kompilieren.@AlCalzone
Ok. Hab ich mal gemacht:root@ioBroker-Rock64:~# cd /opt/iobroker root@ioBroker-Rock64:/opt/iobroker# npm rebuild > iobroker.amazon-dash@0.3.1 preinstall /opt/iobroker/node_modules/iobroker.amazon-dash > apt install libpcap-dev -y || true Reading package lists... Done Building dependency tree Reading state information... Done libpcap-dev is already the newest version (1.8.1-3). 0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded. > pcap@2.1.0 install /opt/iobroker/node_modules/pcap > node-gyp rebuild make: Entering directory '/opt/iobroker/node_modules/pcap/build' CXX(target) Release/obj.target/pcap_binding/pcap_binding.o CXX(target) Release/obj.target/pcap_binding/pcap_session.o ../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:929:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ SOLINK_MODULE(target) Release/obj.target/pcap_binding.node COPY Release/pcap_binding.node make: Leaving directory '/opt/iobroker/node_modules/pcap/build' > socketwatcher@0.3.0 install /opt/iobroker/node_modules/socketwatcher > node-gyp rebuild make: Entering directory '/opt/iobroker/node_modules/socketwatcher/build' CXX(target) Release/obj.target/socketwatcher/socket_watcher.o ../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:929:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ SOLINK_MODULE(target) Release/obj.target/socketwatcher.node COPY Release/socketwatcher.node make: Leaving directory '/opt/iobroker/node_modules/socketwatcher/build' > iobroker.javascript@4.1.12 postinstall /opt/iobroker/node_modules/iobroker.javascript > node ./install/installTypings.js Installing NodeJS typings... latest @types: 12, installed node: 8 npm ERR! path /opt/iobroker/node_modules/iobroker.javascript/node_modules/request/node_modules/http-signature/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/node_modules/http-signature/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-05-07T22_05_58_217Z-debug.logSieht aber nicht so gesund aus oder?
Die zweite genannte Möglichkeit:root@ioBroker-Rock64:/opt/iobroker# cd /opt/iobroker/node_modules/pcap/ root@ioBroker-Rock64:/opt/iobroker/node_modules/pcap# npm i --production npm WARN deprecated istanbul@0.3.22: This module is no longer maintained, try this instead: npm WARN deprecated npm i nyc npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives. npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated coffee-script@1.3.3: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead. npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated samsam@1.1.2: This package has been deprecated in favour of @sinonjs/samsam npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated samsam@1.1.3: This package has been deprecated in favour of @sinonjs/samsam npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. > socketwatcher@0.3.0 install /opt/iobroker/node_modules/pcap/node_modules/socketwatcher > node-gyp rebuild make: Entering directory '/opt/iobroker/node_modules/pcap/node_modules/socketwatcher/build' CXX(target) Release/obj.target/socketwatcher/socket_watcher.o ../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( ^~~~~~~~~~~~ SOLINK_MODULE(target) Release/obj.target/socketwatcher.node COPY Release/socketwatcher.node make: Leaving directory '/opt/iobroker/node_modules/pcap/node_modules/socketwatcher/build' npm WARN lifecycle pcap@2.1.0~install: cannot run in wd pcap@2.1.0 node-gyp rebuild (wd=/opt/iobroker/node_modules/pcap) npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN pcap@2.1.0 No license field. added 2 packages from 10 contributors and audited 318 packages in 38.721s found 40 vulnerabilities (9 low, 19 moderate, 11 high, 1 critical) run `npm audit fix` to fix them, or `npm audit` for detailsImmerhin: Man kann amazon.dash starten ohne Abstürze:
amazon-dash.0 2019-05-08 00:09:39.194 info starting pcap session on default interface amazon-dash.0 2019-05-08 00:09:39.184 info starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.amazon-dash, node: v8.15.0Allerdings bleibt der Adapter rot...
Nein! Stimmt nicht. Eben ist er grün geworden. Hat nur ne Weile gedauert
Prima!
Danke für die Hilfe!Gruss Ralf
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden