ioBroker / ioBroker.maxcul

Control max! devices over CUL stick
Other
4 stars 8 forks source link

Update Node.js v12.18.3 maxcul kaputt #54

Closed 9Mad-Max5 closed 4 years ago

9Mad-Max5 commented 4 years ago

Seit dem gestriegen update meiner seits auf Node.js v12.18.3 startet der Adapter nicht mehr.


host.iobroker | 2020-08-11 10:59:45.873 | info | Restart adapter system.adapter.maxcul.0 because enabled
-- | -- | -- | --
host.iobroker | 2020-08-11 10:59:45.872 | info | instance system.adapter.maxcul.0 terminated with code 0 (NO_ERROR)
host.iobroker | 2020-08-11 10:59:45.869 | error | Caught by controller[0]: Cannot load serialport module
maxcul.0 | 2020-08-11 10:59:45.246 | info | (1899) Terminated (NO_ERROR): Without reason
maxcul.0 | 2020-08-11 10:59:45.243 | info | (1899) terminating
maxcul.0 | 2020-08-11 10:59:45.183 | error | (1899) Error: Module did not self-register: '/opt/iobroker/node_modules/iobroker.maxcul/node_modules/@serialport/bindings/build/Release/bindings.node'. at Object.Module._extensions..node (internal
maxcul.0 | 2020-08-11 10:59:45.182 | error | (1899) unhandled promise rejection: Module did not self-register: '/opt/iobroker/node_modules/iobroker.maxcul/node_modules/@serialport/bindings/build/Release/bindings.node'.
maxcul.0 | 2020-08-11 10:59:45.180 | error | Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
maxcul.0 | 2020-08-11 10:59:44.714 | info | (1899) starting. Version 1.3.1 in /opt/iobroker/node_modules/iobroker.maxcul, node: v12.18.3, js-controller: 3.1.6
host.iobroker | 2020-08-11 10:59:41.085 | info | instance system.adapter.maxcul.0 started with pid 1899

To Reproduce
Einfach neustarten mit diesen Versionen

Versions:

Apollon77 commented 4 years ago

Scheinbar ist da was mit serialport nicht sauber beim nodejs update gelaufen cd /opt/iobroker/node_modules/iobroker.maxcul/node_modules/ npm i --production

falls das nicht reicht cd /opt/iobroker/node_modules/iobroker.maxcul/node_modules/@serialport/bindings/ npm rebuild

9Mad-Max5 commented 4 years ago

Hi,

Habe beides Gemacht das Problem besteht weiterhin.

Apollon77 commented 4 years ago

dann lösch mal /opt/iobroker/node_modules/iobroker.maxcul/node_modules/@serialport/* mit allem ... dann

cd /opt/iobroker/node_modules/iobroker.maxcul/node_modules/serialport npm i --production

9Mad-Max5 commented 4 years ago

OK es scheint zu klappen sehr gut danke.