Closed Anzic23 closed 5 years ago
The issue is known and a solution is documented here: https://github.com/OpenZWave/node-openzwave-shared/issues/325
I think there is a problem. I did a clean install of zwave and it did not create the 1.4 library and the driver references it. https://github.com/OpenZWave/node-openzwave-shared/issues/325#issuecomment-510864233
Not sure I follow. The new version targets 1.6, so there shouldn't be any 1.4 binary. Now that you have a clean install, did you try to follow the https://github.com/ioBroker/ioBroker.zwave#known-issues again?
Not sure I follow. The new version targets 1.6, so there shouldn't be any 1.4 binary. Now that you have a clean install, did you try to follow the https://github.com/ioBroker/ioBroker.zwave#known-issues again?
Yes, I've done all the steps. LOG:
| | |
-- | -- | -- | --
host.iobroker2-1 | 2019-07-12 15:34:45.974 | info | Restart adapter system.adapter.zwave.0 because enabled
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | instance system.adapter.zwave.0 terminated with code 0 (OK)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at Module.load (module.js:566:32)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at Object.Module._extensions..js (module.js:664:10)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at Module._compile (module.js:653:30)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared/lib/openzwave-shared.js:27:19)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at require (internal/module.js:11:18)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at Module.require (module.js:597:17)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at Function.Module._load (module.js:498:3)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at tryModuleLoad (module.js:506:12)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at Module.load (module.js:566:32)
host.iobroker2-1 | 2019-07-12 15:34:45.974 | error | Caught by controller[0]: at Object.Module._extensions..node (module.js:682:18)
host.iobroker2-1 | 2019-07-12 15:34:45.973 | error | Caught by controller[0]: Error: libopenzwave.so.1.4: cannot open shared object file: No such file or directory
zwave.0 | 2019-07-12 15:34:45.928 | error | Error: libopenzwave.so.1.4: cannot open shared object file: No such file or directory at Object.Module._extensions..node (module.js:682:18) at Module.load (module.js:566:32) at tryModuleLo
zwave.0 | 2019-07-12 15:34:45.927 | error | uncaught exception: libopenzwave.so.1.4: cannot open shared object file: No such file or directory
zwave.0 | 2019-07-12 15:34:45.219 | info | starting. Version 1.5.0 in /opt/iobroker/node_modules/iobroker.zwave, node: v8.16.0
Weird, that is still compiled against 1.4. Just to be clear, you did the following:
between 1. and 2. you could search for all remains of openzwave-shared in iobroker's node_modules and delete those aswell.
Weird, that is still compiled against 1.4. Just to be clear, you did the following:
- delete the zwave adapter completely (not just the instance)
- delete OZW (you wrote that in the other thread)
- install the zwave adapter again (this should isntall OZW 1.6 aswell)
between 1. and 2. you could search for all remains of openzwave-shared in iobroker's node_modules and delete those aswell.
not exactly.
Instead of 1. you can stop the adapter and delete its installation directory /opt/iobroker/node_modules/iobroker.zwave/
and /opt/iobroker/node_modules/openzwave-shared
(if that exists).
Then do 2.
Then
cd /opt/iobroker
npm i iobroker.zwave --production
This should keep your objects, but completely replace the adapter files.
Instead of 1. you can stop the adapter and delete its installation directory
/opt/iobroker/node_modules/iobroker.zwave/
and/opt/iobroker/node_modules/openzwave-shared
(if that exists). Then do 2. Thencd /opt/iobroker npm i iobroker.zwave --production
This should keep your objects, but completely replace the adapter files.
Thank you very much! This instruction helped to upgrade to 1.5.0, everything works now!
When upgrading to version 1.5.0, an error occurs:
recommendations from "known issues" didn't help.