Can not start Z-Wave binding: ZWaveBinding is not defined

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

Re: Can not start Z-Wave binding: ZWaveBinding is not define

Post by PNinBB »

I am facing the same problem.
I am running Debian Jessie on RaZberry.
After having installed the z-wave-packet I got the following error in the log.

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>
How to get this module ?
Any hint and help is highly appreciated.

Additional remarks (30.05.2015):
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.
Cor
Posts: 2
Joined: 05 Jun 2015 20:54

Re: Can not start Z-Wave binding: ZWaveBinding is not define

Post by Cor »

Thanks for this advice. Now it works for me as well. ;)
Cor
Posts: 2
Joined: 05 Jun 2015 20:54

Re: Can not start Z-Wave binding: ZWaveBinding is not define

Post by Cor »

Chopper_Rob wrote:Thanks hightower, this fixed my issue.
Same here. Thanks.
PNinBB
Posts: 10
Joined: 23 Mar 2015 15:03

Re: Can not start Z-Wave binding: ZWaveBinding is not define

Post by PNinBB »

My problem still exists (see my post from 29 May 2015 !
Regarding the post from Cor (05 Jun 2015): What did you to be successful ?
I think that my problem has something to do with running ZWave (my version v2.0.0 from 21.22.2014) on Jessie (Debain 8). Has somebody Zwave running on this new Debian ?
Thanks in advance for any hint and help.
metropol
Posts: 7
Joined: 27 Jun 2015 15:02

Re: Can not start Z-Wave binding: ZWaveBinding is not define

Post by metropol »

Hi there,

here is what I did to make it run (in fact found the hint here: viewtopic.php?f=3422&t=21451)

1. Start the raspberry
2. Using the myip:8084 to access the razberry modul
3. Downgrade the firmware to 1.7.2
4. Unpower raspberry, unplug razberry, wait for 1 minute
5. Put everything together again, power raspberry
6. at restart ==>> Miracle: server loads ok!
5. Upgrade again to firmware 2.0.0 via myip:8084

System now working. Z-wave components are recognized and can be switched.
richd
Posts: 2
Joined: 10 Nov 2015 18:05

Re: Can not start Z-Wave binding: ZWaveBinding is not define

Post by richd »

I'm running into the same issue. I must be missing something here. the lib archive12 package won't install. What am I doing wrong here?

pi@raspberrypi /opt/z-way-server $ sudo 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 modsockets.so loaded
Module moddhs.so loaded
Module modcrypto.so loaded
Failed to load module modzwave.so: libarchive.so.12: cannot open shared object file: No such file or directory
Failed to load module modinstaller.so: libarchive.so.12: cannot open shared object file: No such file or directory
Module modzbw.so loaded
Module modenocean.so loaded
Module modhttp.so loaded
Module modws.so loaded
Module modhomekit.so loaded
Using default configuration file config.xml
Error: 'debug-port' number is out of range. Skipping it.
^C
pi@raspberrypi /opt/z-way-server $ sudo apt-get install libarchive12
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libarchive12
pi@raspberrypi /opt/z-way-server $
richd
Posts: 2
Joined: 10 Nov 2015 18:05

Re: Can not start Z-Wave binding: ZWaveBinding is not define

Post by richd »

found a clue here -->https://domotiga.nl/projects/domotiga/w ... e_RaZberry

setup a symlink and it is happy now.
pi@raspberrypi /opt/z-way-server $ ldconfig -pv|grep archive
libarchive.so.13 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libarchive.so.13
pi@raspberrypi /opt/z-way-server $ sudo ln -s /usr/lib/arm-linux-gnueabihf/libarchive.so.13 /usr/lib/arm-linux-gnueabihf/libarchive.so.12
pi@raspberrypi /opt/z-way-server $ sudo 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 modsockets.so loaded
Module moddhs.so loaded
Module modcrypto.so loaded
Module modzwave.so loaded
Module modinstaller.so loaded
Module modzbw.so loaded
Module modenocean.so loaded
Module modhttp.so loaded
Module modws.so loaded
Module modhomekit.so loaded
Using default configuration file config.xml
Error: 'debug-port' number is out of range. Skipping it.
^Cpi@raspberrypi /opt/z-way-server $
Post Reply