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

Discussions about RaZberry - Z-Wave board for Raspberry computer
flurin
Posts: 16
Joined: 27 Sep 2015 15:21

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

Post 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?
Last edited by flurin on 03 Oct 2015 12:35, edited 1 time in total.
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

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

Post 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
LOCOSP
Posts: 29
Joined: 22 Sep 2013 02:33

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

Post 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
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

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

Post 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.
LOCOSP
Posts: 29
Joined: 22 Sep 2013 02:33

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

Post 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
flurin
Posts: 16
Joined: 27 Sep 2015 15:21

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

Post 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
LOCOSP
Posts: 29
Joined: 22 Sep 2013 02:33

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

Post 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 ?
flurin
Posts: 16
Joined: 27 Sep 2015 15:21

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

Post by flurin »

LOCOSP wrote: it's working, ...
Does it mean that you can run the expert UI without errors?
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

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

Post 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.
LOCOSP
Posts: 29
Joined: 22 Sep 2013 02:33

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

Post 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...
Post Reply