NEWS
[How-to] Node.js für ioBroker richtig updaten
-
@SolarGuido
Ich würde da dringend die ganzen Repos rauswerfen die nicht zu stretch passen. Gerade webmin kann dir grundlegende Pakete zerbröseln. Hat seinen Grund, dass z. B ubuntu webmin bei sich rausgeworfen hat. -
ok danke für den tip, verstehe auch nicht warum da sarge drin ist...
habe es gerade mal nach geuckt die unterscheiden wohl nicht nach irgend einer debian version. Webmin bietet nur das eine an. Es gibt auch nur eine version für alle debian vesionen. Scheint also ok zu sei läuft auch schon seit 2 Jahren ohne probleme.
ja ich arbeitet auch mit putty , aber ich mag webmin trotzdem für einige Dinge sehr komfortable
-
Es läuft alles jetzt. Der IOT Adapter macht irgendwie nix mehr in
lastCommand state Last command lastFunction state Last controlled function state lastResponse state Last textual response state
hab jetzt meine betroffenen Scripte auf Alexa History umgestellt. Das hat wohl auch nix mit nodejs zu tun. Ich hab den iot mal downgrade gemacht bis 3er version, hilft nix. denke das ist ein grundsätzliches problem.
Anonsten scheint alles zu laufen, hab mal das log gecheckt und einiges getestet. bisher nix negativ aufgefallen.
Ich gaube auch der Weg neue Installation iobroker, danach den data ordner austauschen , dann neu starten und warten, ist am saubersten.
Jedenfalls Danke für die unterstützung
-
Die Anleitung oben sucht noch nach node.js Versionen 10. Das müsste noch auf 12. geändert werden da der Info Adapter ja nun eine 12er Version empfiehlt.
-
@Hc-Yami dann musst du nur die 10.x gegen eine 12.x und irgendwann gegen eine 14.x austauschen.
Das war zum Erstellungsdatum des Posts eben die 10.x -
@Homoran hey das weiß ich. Nur kann ich mir vorstellen, dass es Leute wie mich gibt die einfach Googlen "iobroker node.js update" dann den Thread finden und die Anleitung durchgehen. Es wäre ja dann cool wenn das dann auch wieder angepasst wird. Demnach denke ich es ist sinnvoll den Post anzupassen.
-
@Hc-Yami sagte in [How-to] Node.js für ioBroker richtig updaten:
Es wäre ja dann cool wenn das dann auch wieder angepasst wird.
Vielleicht wird es nicht ganz so deutlich, wie beabsichtigt. Aber die weiter fortgesetze Timeline wird schon besprochen
@Stabilostick sagte in [How-to] Node.js für ioBroker richtig updaten:
Node.js-Versionen mit gerader Hauptversionsnummer werden als LTS-Versionen (Long Term Support) bezeichnet und einige Jahre gepflegt (z.B. 8.x). In 2017 war das Node.js 8, 2018 kam Node.js 10 hinzu und im Oktober 2019 wird Node.js 12 den LTS-Status erhalten.
@Stabilostick sagte in [How-to] Node.js für ioBroker richtig updaten:
mindestens Node.js 10. zu verwenden.
-
Moin, ich hoffe ich bin hier richtig
seit dem ich eben node.js auf 12.x und aktualisiert habe kommt wenn ich ein Adapter aktualisieren möchte diese Meldung.
Beispiel am Ping Adapter:$ ./iobroker upgrade history Update history from @1.9.3 to @1.9.4 NPM version: 6.14.4 npm install iobroker.history@1.9.4 --loglevel error --prefix "/opt/iobroker" (System call) ╭─────────────────────────────────────────────────────────╮│ ││ Manual installation of ioBroker is no longer supported ││ on Linux, OSX and FreeBSD! ││ Please refer to the documentation on how to install it! ││ https://github.com/ioBroker/ioBroker/wiki/Installation ││ │╰─────────────────────────────────────────────────────────╯ npm ERR! code ELIFECYCLEnpm ERR! errno 100npm ERR! iobroker@2.0.3 postinstall: `node lib/install.js`npm ERR! Exit status 100npm ERR! npm ERR! Failed at the iobroker@2.0.3 postinstall script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2020-04-24T11_19_06_212Z-debug.log ERROR: host.raspberrypi Cannot install iobroker.history@1.9.4: 100 ERROR: process exited with code 25
Nodes zeigt er mir mit v12.16.2 aktuell an
wo hab ich den Fehler gemacht?
es Läuft alles auf ein PI 3
mfg
Michiagn -
Hallo Zusammen,
Nach dem Update auf node.js 12.x auf meinem Slave (Raspberry pi 3) funktioniert leider der i2c adapter nicht mehr.
folgende Fehlermeldung kommt:
host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.981 error instance system.adapter.i2c.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.981 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:1000:32) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.981 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.980 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1156:30) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.980 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/i2c-bus/i2c-bus.js:4:28) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.979 error Caught by controller[0]: at bindings (/opt/iobroker/node_modules/bindings/bindings.js:81:44) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.979 error Caught by controller[0]: at require (internal/modules/cjs/helpers.js:77:18) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.978 error Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1042:19) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.978 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:899:14) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.978 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:1000:32) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.977 error Caught by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1206:18) host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.977 error Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.976 error Caught by controller[0]: NODE_MODULE_VERSION 72. Please try re-compiling or re-installing host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.976 error Caught by controller[0]: NODE_MODULE_VERSION 64. This version of Node.js requires host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.975 error Caught by controller[0]: was compiled against a different Node.js version using host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.975 error Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/i2c-bus/build/Release/i2c.node' host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.974 error Caught by controller[0]: ^ host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.974 error Caught by controller[0]: throw e host.raspberrypi-Erdgeschoss 2020-04-24 13:03:47.973 error Caught by controller[0]: /opt/iobroker/node_modules/bindings/bindings.js:88
bzw. bei der erneuten Installation des Adapters kommen folgende Fehler:
host.raspberrypi-Erdgeschoss 2020-04-24 13:09:04.917 error iobroker host.raspberrypi-Erdgeschoss Cannot install iobroker.i2c: 1 host.raspberrypi-Erdgeschoss 2020-04-24 13:09:04.891 info iobroker npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2020-04-24T11_09_04_808Z-debug.log host.raspberrypi-Erdgeschoss 2020-04-24 13:09:04.797 info iobroker ERR! Failed at the i2c-bus@1.2.5 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above. host.raspberrypi-Erdgeschoss 2020-04-24 13:09:04.794 info iobroker ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! i2c-bus@1.2.5 install: `node-gyp rebuild`npm ERR! Exit status 1npm ERR! npm host.raspberrypi-Erdgeschoss 2020-04-24 13:09:04.792 info iobroker npm host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.624 info iobroker gyp ERR! node -v v12.16.2gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.621 info iobroker 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:310:20)gyp ERR! stack at Process. host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.619 info iobroker ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.616 info iobroker gyp host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.614 info iobroker make: *** [i2c.target.mk:111: Release/obj.target/i2c/src/i2c.o] Error 1 host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.172 info iobroker In file included from ../src/i2c.cc:107:../src/./writequick.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteQuickSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writequick.cc:60:32: error: no mat host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.168 info iobroker In file included from ../src/i2c.cc:107:../src/./writequick.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteQuickAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writequick.cc:47:32: error: no ma host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.162 info iobroker In file included from ../src/i2c.cc:106:../src/./writei2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteI2cBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writei2cblock.cc:108:32: err host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.156 info iobroker In file included from ../src/i2c.cc:106:../src/./writei2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteI2cBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writei2cblock.cc:68:32: err host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.147 info iobroker In file included from ../src/i2c.cc:105:../src/./writeblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writeblock.cc:110:32: error: no ma host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.142 info iobroker In file included from ../src/i2c.cc:105:../src/./writeblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writeblock.cc:70:32: error: no ma host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.134 info iobroker In file included from ../src/i2c.cc:104:../src/./writeword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteWordSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writeword.cc:64:32: error: no matchi host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.130 info iobroker In file included from ../src/i2c.cc:104:../src/./writeword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteWordAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writeword.cc:49:32: error: no match host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.125 info iobroker In file included from ../src/i2c.cc:103:../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writebyte.cc:63:32: error: no matchi host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.120 info iobroker In file included from ../src/i2c.cc:103:../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./writebyte.cc:49:32: error: no match host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.115 info iobroker In file included from ../src/i2c.cc:102:../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./setaddr.cc:61:32: error: no matching fun host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.110 info iobroker In file included from ../src/i2c.cc:102:../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./setaddr.cc:47:32: error: no matching fu host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.104 info iobroker In file included from ../src/i2c.cc:101:../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./sendbyte.cc:60:32: error: no matching host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.100 info iobroker In file included from ../src/i2c.cc:101:../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./sendbyte.cc:47:32: error: no matching host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.094 info iobroker In file included from ../src/i2c.cc:100:../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./receivebyte.cc:60:32: error: no host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.091 info iobroker In file included from ../src/i2c.cc:100:../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./receivebyte.cc:48:32: error: no host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.083 info iobroker In file included from ../src/i2c.cc:99:../src/./readi2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadI2cBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./readi2cblock.cc:109:32: error: host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.078 info iobroker In file included from ../src/i2c.cc:99:../src/./readi2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadI2cBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./readi2cblock.cc:69:32: error: host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.069 info iobroker In file included from ../src/i2c.cc:98:../src/./readblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./readblock.cc:98:32: error: no matchin host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.065 info iobroker In file included from ../src/i2c.cc:98:../src/./readblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./readblock.cc:66:32: error: no matchi host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.058 info iobroker In file included from ../src/i2c.cc:97:../src/./readword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadWordSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./readword.cc:62:32: error: no matching f host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.054 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../src/i2c.cc:1:/home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: not host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.051 info iobroker In file included from ../src/i2c.cc:97:../src/./readword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadWordAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./readword.cc:49:32: error: no matching host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.044 info iobroker In file included from ../src/i2c.cc:96:../src/./readbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./readbyte.cc:62:32: error: no matching f host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.041 info iobroker In file included from ../src/i2c.cc:96:../src/./readbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./readbyte.cc:49:32: error: no matching host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.034 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../src/i2c.cc:1:/home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: not host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.029 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../src/i2c.cc:1:/home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: not host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.026 info iobroker In file included from ../src/i2c.cc:95:../src/./i2cfuncs.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE I2cFuncsAsync(Nan::NAN_METHOD_ARGS_TYPE)’:../src/./i2cfuncs.cc:48:32: error: no matching host.raspberrypi-Erdgeschoss 2020-04-24 13:09:02.014 info iobroker In file included from ../src/i2c.cc:1:../src/i2c.cc: At global scope:/home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:608:43: warning: cast between incompatible function types from host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.976 info iobroker In file included from /usr/include/c++/8/cassert:44, from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node_object_wrap.h:26, from ../node_modules/nan/n host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.973 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:27, f host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.970 info iobroker In file included from ../node_modules/nan/nan.h:2365, from ../src/i2c.cc:2:../node_modules/nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:../node host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.965 info iobroker In file included from /usr/include/c++/8/cassert:44, from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node_object_wrap.h:26, from ../node_modules/nan/n host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.913 info iobroker In file included from ../src/i2c.cc:2:../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:../node_modules/nan/nan.h:1875:62: warning: cast between incompati host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.901 info iobroker In file included from ../src/i2c.cc:2:../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:../node_modu host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.893 info iobroker In file included from ../src/i2c.cc:2:../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:../node_modules/nan/nan.h: host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.890 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:27, f host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.888 info iobroker In file included from ../src/i2c.cc:2:../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:../node_modules/nan/nan host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.881 info iobroker In file included from ../src/i2c.cc:1:/home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.878 info iobroker In file included from ../src/i2c.cc:2:../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.868 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../src/i2c.cc:1:/home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.865 info iobroker In file included from ../src/i2c.cc:2:../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:../node_modules/nan/nan.h:916:53: error: no matching functi host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.861 info iobroker In file included from ../src/i2c.cc:1:/home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:175:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.858 info iobroker In file included from ../src/i2c.cc:1:/home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.855 info iobroker In file included from ../src/i2c.cc:2:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>* host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.812 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../src/i2c.cc:1:/home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:5531:23: not host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.809 info iobroker In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:203, from ../src/i2c.cc:2:../node_modules/nan/nan_implementation_12_inl host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.792 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../src/i2c.cc:1:/home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:4275:31: not host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.789 info iobroker In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:203, from ../src/i2c.cc:2:../node_modules/nan/nan_implementation_12_inl host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.766 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:27, f host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.763 info iobroker In file included from ../node_modules/nan/nan_converters.h:67, from ../node_modules/nan/nan.h:202, from ../src/i2c.cc:2:../node_modules/nan/nan_converters_43_i host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.752 info iobroker In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:27, f host.raspberrypi-Erdgeschoss 2020-04-24 13:09:01.750 info iobroker In file included from ../node_modules/nan/nan_converters.h:67, from ../node_modules/nan/nan.h:202, from ../src/i2c.cc:2:../node_modules/nan/nan_converters_43_i host.raspberrypi-Erdgeschoss 2020-04-24 13:08:25.873 info iobroker npm install iobroker.i2c --loglevel error --prefix "/opt/iobroker" (System call) host.raspberrypi-Erdgeschoss 2020-04-24 13:08:25.870 info iobroker NPM version: 6.14.4 host.raspberrypi-Erdgeschoss 2020-04-24 13:08:25.040 info iobroker install iobroker.i2c host.raspberrypi-Erdgeschoss 2020-04-24 13:08:22.963 info iobroker url "iobroker.i2c"
Mit node.js 10.20.1 läuft der Adapter noch.
Der Entwickler @UncleSam ist aktuell leider nicht wirklich erreichbar.
Anpassungen am Adapter kann ich leider nicht vornehmen.
Vielleicht hat jemand einen Tipp.
Danke!
sg
Strago -
Muss ich was tun bei der Fehlermeldung:
020-04-24 16:49:17.704 warn the module (for instance, using `npm rebuild` or `npm install`). iot.0 2020-04-24 16:49:17.704 warn NODE_MODULE_VERSION 72. Please try re-compiling or re-installing iot.0 2020-04-24 16:49:17.704 warn NODE_MODULE_VERSION 64. This version of Node.js requires iot.0 2020-04-24 16:49:17.704 warn was compiled against a different Node.js version using iot.0 2020-04-24 16:49:17.704 warn (8213) Cannot initialize getImage: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node
npm rebuild nach dem Update auf Version 12 hab ich gemacht.
-
@Brainbug sagte in [How-to] Node.js für ioBroker richtig updaten:
(for instance, using
npm rebuild
ornpm install
).Steht dort !
-
Ja hab ich vergessen zu schreiben dass ich das auch gemacht habe im iobroker Verzeichnis.
Hab ein zweites mal npm rebuild gemacht und jetzt ist es anscheinend weg. -
IObroker auf einer frischen SD neu aufgesetzt.
Ich habe absichtlich neu augfesetzt, damit ich zurück zu Node10.x kann, sollte Radar nicht laufen.
Aber sogar Radar funktioniert mit Node 12.x.
jetzt laufen alle Instanzen, die ich installiert habe unter Node 12.x und dem JS-Contoller 3.x -
Hallo ich hab das ganze nach Anleitung von 10.x auf 12.x upgedated. Dabei kamen folgende Fehler:
Ich habe deb iobroker trotzdem gestartet und scheinbar funktioniert alles und die Version ist auch up to date.
Was sagen diese Fehler oben aus?
-
Bei mir läuft ioBroker auf einem Proxmox mit Ubuntu.
Beim Update bekomme ich folgende Meldung.root@ioBroker:~# curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - ## Installing the NodeSource Node.js 12.x repo... ## Populating apt-get cache... + apt-get update Ign:1 http://archive.ubuntu.com/ubuntu disco InRelease Ign:2 http://archive.ubuntu.com/ubuntu disco-updates InRelease Hit:3 https://deb.nodesource.com/node_10.x disco InRelease Ign:4 http://archive.ubuntu.com/ubuntu disco-security InRelease Hit:5 https://repos.influxdata.com/debian disco InRelease Err:6 http://archive.ubuntu.com/ubuntu disco Release 404 Not Found [IP: 91.189.88.142 80] Err:7 http://archive.ubuntu.com/ubuntu disco-updates Release 404 Not Found [IP: 91.189.88.142 80] Err:8 http://archive.ubuntu.com/ubuntu disco-security Release 404 Not Found [IP: 91.189.88.142 80] Reading package lists... Done E: The repository 'http://archive.ubuntu.com/ubuntu disco Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu disco-updates Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu disco-security Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Error executing command, exiting
Wenn ich mit Node-v die Version prüfe, steht immer noch die 10.... drin.
Kann mich jemand unterstützen?
Danke -
@Nas007 auf manchen Systemen meckern optionale Pakete beim bauen. Alles ok.
-
@G4l4h4d Ubuntu 19.04 ist keine LTS Version und damit ist der Support ausgelaufen Siehe https://wiki.ubuntuusers.de/Disco_Dingo/
Solltest auf 20.04 gehen.
Bei Ubuntu immer die LTS Versionen nehmen 18.04, 20.04 uä. Bei den anderen muss man alle halbe Jahr das os updaten.
-
- Du möchtest dich nicht als 'root' anmelden.
- Du möchtest eine Distribution benutzen die noch gepflegt wird.
-
@Michigan sagte in [How-to] Node.js für ioBroker richtig updaten:
Moin, ich hoffe ich bin hier richtig
seit dem ich eben node.js auf 12.x und aktualisiert habe kommt wenn ich ein Adapter aktualisieren möchte diese Meldung.
Beispiel am Ping Adapter:$ ./iobroker upgrade history Update history from @1.9.3 to @1.9.4 NPM version: 6.14.4 npm install iobroker.history@1.9.4 --loglevel error --prefix "/opt/iobroker" (System call) ╭─────────────────────────────────────────────────────────╮│ ││ Manual installation of ioBroker is no longer supported ││ on Linux, OSX and FreeBSD! ││ Please refer to the documentation on how to install it! ││ https://github.com/ioBroker/ioBroker/wiki/Installation ││ │╰─────────────────────────────────────────────────────────╯ npm ERR! code ELIFECYCLEnpm ERR! errno 100npm ERR! iobroker@2.0.3 postinstall: `node lib/install.js`npm ERR! Exit status 100npm ERR! npm ERR! Failed at the iobroker@2.0.3 postinstall script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2020-04-24T11_19_06_212Z-debug.log ERROR: host.raspberrypi Cannot install iobroker.history@1.9.4: 100 ERROR: process exited with code 25
Nodes zeigt er mir mit v12.16.2 aktuell an
wo hab ich den Fehler gemacht?
es Läuft alles auf ein PI 3
mfg
MichiagnHallo,
ich habe das gleiche Problem, bzw. den gleichen Fehler beim aktualisieren von Adaptern.
System ist ein Beelink J45 auf dem Debian V10.3 läuft.
Node V 12.16.2
NMP 6.14.4Hat jemand dazu eine Lösung?
Gruß Peter
-
@Manolo said in [How-to] Node.js für ioBroker richtig updaten:
Manual installation of ioBroker is no longer supported ││ on Linux, OSX and FreeBSD!
Die Adapter werden nicht per npm installiert. Nehmt die Admin-Oberfläche dafür her.