Z-Way on Debian 8.0 (Jessie)

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
PNinBB
Posts: 10
Joined: 23 Mar 2015 15:03

Z-Way on Debian 8.0 (Jessie)

Post by PNinBB » 22 Jun 2015 17:45

After migrating from Whezzy to Jessie I face problems with z-way-server.
With Whezzy on Pi with Razberry the system worked OK (3 Fibaro Roller Shutter FGRM-222, Motion Sensor FGMS-001).
After migration to Jessie and installation of z-way (21.11.2014 v2.0.0) I got the following error message in the logfile.

Code: Select all

. . .
[2015-05-29 17:57:46.509] [I] [core] Executing script: /*** Z-Wave Binding module ******************************************************** ...
[2015-05-29 17:57:46.527] [I] [core] Instantiating module 2 from class ZWave
[2015-05-29 17:57:46.533] [I] [core] --- Starting module Z-Wave binding
[2015-05-29 17:57:46.604] [I] [core] Notification: critical (z-wave): Can not start Z-Wave binding: ReferenceError: ZWaveBinding is not defined
[2015-05-29 17:57:46.606] [I] [core] Loading module GroupDevices from modules/GroupDevices
[2015-05-29 17:57:46.610] [I] [core] Executing script: /*** GroupDevices Z-Way HA module ******************************************* ...
[2015-05-29 17:57:46.613] [I] [core] Loading module ScheduledScene from modules/ScheduledScene
[2015-05-29 17:57:46.618] [I] [core] Executing script: /*** ScheduledScene Z-Way HA module *******************************************
 . . .
After that I checked with
LD_LIBRARY_PATH=libs ./z-way-server
and got the following.
Z-Way version v2.0.0 from 2014-12-08 19:54:26 +0300 (build a064f5408850947aed035bc9170e1fa04f0fd2ec)
Looking for modules in ./modules
Module moddhs.so loaded
Module modhomekit.so loaded
Module modenocean.so loaded
Module modhttp.so loaded
Module modws.so loaded
Failed to load module modzwave.so: libarchive.so.12: cannot open shared object file: No such file or directory
Using default configuration file config.xml
Error: 'debug-port' number is out of range. Skipping it.
But this command did not finish correctly, it hangs.
Trying to install libarchiv12 returns the following:
root@xxxxxxxxxxxxxxx2 19:32:27: / 4>apt-get install libarchive12
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Package libarchive12 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libarchive12' has no installation candidate
root@xxxxxxxxxxxxx2 19:32:43: / 5>
Possibly it is a problem of running ZWave on Jessie because I realized that with Jessie comes libarchive13.
In /var/lib/dpkg/info/libarchive13:armhf.list one finds:
/.
/usr
/usr/lib
/usr/lib/arm-linux-gnueabihf
/usr/lib/arm-linux-gnueabihf/libarchive.so.13.1.2
/usr/share
/usr/share/doc
/usr/share/doc/libarchive13
/usr/share/doc/libarchive13/copyright
/usr/share/doc/libarchive13/changelog.Debian.gz
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libarchive13
/usr/lib/arm-linux-gnueabihf/libarchive.so.13
Whereas /var/lib/dpkg/info/libarchive12:armhf.list is empty.
After a lot of experiments and investigations I got the system running, but I am not sure whether this solution is clean, stable and complete.
I found in file "/opt/z-way-server/modules/modzwave.so the following content:

Code: Select all

set_thread_name^@get_local_time_ms^@zio_read^@libarchive.so.12^@libstdc++.so.6^@libm.so.6^@libgcc_s.so.1
and changed it to (13 instead of 12!)

Code: Select all

set_thread_name^@get_local_time_ms^@zio_read^@libarchive.so.13^@libstdc++.so.6^@libm.so.6^@libgcc_s.so.1
After that it works.
Is this a well known fact; is there already a newer version of z-way- server available ?
Any comment would be useful.

User avatar
PoltoS
Posts: 5081
Joined: 26 Jan 2011 19:36

Re: Z-Way on Debian 8.0 (Jessie)

Post by PoltoS » 23 Jun 2015 01:52

Our Debian compilation is done on Wheezy. Unfortunately it was linked agains version 12 of libarchive. Instead of patching z-way just create a symlink in your /user/lib from so.12 to so.13. This will work too

LOCOSP
Posts: 29
Joined: 22 Sep 2013 02:33

Re: Z-Way on Debian 8.0 (Jessie)

Post by LOCOSP » 02 Oct 2015 21:29

PNinBB wrote: I found in file "/opt/z-way-server/modules/modzwave.so the following content:

Code: Select all

set_thread_name^@get_local_time_ms^@zio_read^@libarchive.so.12^@libstdc++.so.6^@libm.so.6^@libgcc_s.so.1
and changed it to (13 instead of 12!)

Code: Select all

set_thread_name^@get_local_time_ms^@zio_read^@libarchive.so.13^@libstdc++.so.6^@libm.so.6^@libgcc_s.so.1
After that it works.
Is this a well known fact; is there already a newer version of z-way- server available ?
Any comment would be useful.
how did You edit that, when i try nano it looks like encrypted file. Non mentioned content lines..

flothedev
Posts: 1
Joined: 04 Oct 2015 10:25
Location: Berlin
Contact:

Re: Z-Way on Debian 8.0 (Jessie)

Post by flothedev » 04 Oct 2015 10:34

Without editing any file I fixed this using the tipp of PoltoS by executing the following command:

Code: Select all

sudo ln -s /usr/lib/arm-linux-gnueabihf/libarchive.so.13 /usr/lib/arm-linux-gnueabihf/libarchive.so.12
Described in detail here.

Post Reply