Page 1 of 2

[solved] Z-Way doesn't work on the official Jessie

Posted: 01 Oct 2015 11:42
by flurin
Hi,
My Z-Way worked with Wheezy perfectly.
After I've installed the official Jessie I've got this issue in Expert UI:

Code: Select all

Error handling data from server
Log:

Code: Select all

[2015-10-01 09:43:58.503] [I] [core] Instantiating module 1 from class ZWave
[2015-10-01 09:43:58.505] [I] [core] --- Starting module Z-Wave Network Access
[2015-10-01 09:43:58.537] [I] [core] Notification: critical (z-wave): Cannot start Z-Wave binding: ReferenceError: ZWaveBinding is not defined
Any suggestions?

Re: Z-Way doesn't work on the official Jessie

Posted: 02 Oct 2015 16:27
by pofs
Some dependency library likely fails to load (because it is not installed or has wrong version). Run z-way in console mode and see errors printed in first few lines while loading libraries:

Code: Select all

cd /opt/z-way-server
LD_LIBRARY_PATH=./libs ./z-way-server

Re: Z-Way doesn't work on the official Jessie

Posted: 02 Oct 2015 17:08
by LOCOSP
pofs wrote:Some dependency library likely fails to load (because it is not installed or has wrong version). Run z-way in console mode and see errors printed in first few lines while loading libraries:

Code: Select all

cd /opt/z-way-server
LD_LIBRARY_PATH=./libs ./z-way-server
Same problem here..
After pofs's suggestions i've got this:

Code: Select all

@raspberrypi:/opt/z-way-server# LD_LIBRARY_PATH=./libs ./z-way-server
Z-Way version v2.1.1 from 2015-09-02 15:34:21 +0300 (build 9758c27c9115509143f3e5faaaa22f7db4dde2b5)
Looking for modules in ./modules
Module modhttp.so loaded
Failed to load module modinstaller.so: libarchive.so.12: cannot open shared object file: No such file or directory
Module modws.so loaded
Module modhomekit.so loaded
Module modzbw.so loaded
Module modenocean.so loaded
Failed to load module modzwave.so: libarchive.so.12: cannot open shared object file: No such file or directory
Module modsockets.so loaded
Module moddhs.so loaded
Module modcrypto.so loaded
Using default configuration file config.xml
Error: 'debug-port' number is out of range. Skipping it.
Please tell me what can i do to fix it

Thank You

Re: Z-Way doesn't work on the official Jessie

Posted: 02 Oct 2015 17:21
by pofs
Quick search leads to viewtopic.php?f=3419&t=21734&p=56904&hi ... .12#p56904
You probably have a newer version of libarchive.so in /usr/lib/arm-linux-gnueabihf/ (like libarchive.so.13.1.2 in referenced thread). You need to make a symlink:

Code: Select all

sudo ln -s /usr/lib/arm-linux-gnueabihf/libarchive.so.13.1.2 /usr/lib/arm-linux-gnueabihf/libarchive.so.12
(replace 13.1.2 here with the version you really have). After that it should work.

Re: Z-Way doesn't work on the official Jessie

Posted: 02 Oct 2015 17:32
by LOCOSP
pofs wrote:Quick search leads to viewtopic.php?f=3419&t=21734&p=56904&hi ... .12#p56904
You probably have a newer version of libarchive.so in /usr/lib/arm-linux-gnueabihf/ (like libarchive.so.13.1.2 in referenced thread). You need to make a symlink:

Code: Select all

sudo ln -s /usr/lib/arm-linux-gnueabihf/libarchive.so.12 /usr/lib/arm-linux-gnueabihf/libarchive.so.13.1.2
(replace 13.1.2 here with the version you really have). After that it should work.
I have 13.1.2 but when do symlink i get:

Code: Select all

ln: failed to create symbolic link /usr/lib/arm-linux-gnueabihf/libarchive.so.13.1.2: File exists

Re: Z-Way doesn't work on the official Jessie

Posted: 02 Oct 2015 17:51
by flurin
@pofs Thanks for your reply. In the mean time I installed RaZberry on my old RPi B running Wheezy.
I'll try as soon as possible.

@LOCOSP

I think it should be:

Code: Select all

sudo ln -s /usr/lib/arm-linux-gnueabihf/libarchive.so.13.1.2 /usr/lib/arm-linux-gnueabihf/libarchive.so.12

Re: Z-Way doesn't work on the official Jessie

Posted: 02 Oct 2015 19:13
by LOCOSP
flurin wrote: @LOCOSP

I think it should be:

Code: Select all

sudo ln -s /usr/lib/arm-linux-gnueabihf/libarchive.so.13.1.2 /usr/lib/arm-linux-gnueabihf/libarchive.so.12
Thanks, i was telling that i'm a noob ;D

it's working, but how can i now restore my backup ?

Re: Z-Way doesn't work on the official Jessie

Posted: 02 Oct 2015 20:01
by flurin
LOCOSP wrote: it's working, ...
Does it mean that you can run the expert UI without errors?

Re: Z-Way doesn't work on the official Jessie

Posted: 02 Oct 2015 20:28
by pofs
Yeah, I've messed up with ln args order :) Never can remember the correct order. Corrected the original answer to not confuse people.

Re: Z-Way doesn't work on the official Jessie

Posted: 02 Oct 2015 21:18
by LOCOSP
flurin wrote:
LOCOSP wrote: it's working, ...
Does it mean that you can run the expert UI without errors?
Almost :)

after symlink and rebooting was almost OK expert was working but got info that interview is not completed, when i tried to force interview, nothing happens. And now i see that after some time - doing nothing with it - error is back.
Probably after reboot will again be OK for some time...