Page 1 of 2

Razberry error: Cannot start Z-Wave binding

Posted: 15 Feb 2015 01:17
by anotherone1
Hello all!

I have a Razberry ordered from amazon and here is some info on it:

Code: Select all

Z-Way version v2.0.0 from 2014-12-08 19:54:26 +0300 (build a064f5408850947aed035                                                                     bc9170e1fa04f0fd2ec)
Looking for modules in ./modules
Module modhomekit.so loaded
Module modws.so loaded
cURL 7.26.0 likely has DNS timeout bug. Please update cURL. Disabling sync DNS t                                                                     imeouts for now.
Module modhttp.so loaded
Module moddhs.so loaded
Failed to load module modzwave.so: libarchive.so.12: cannot open shared object f                                                                     ile: No such file or directory
Module modenocean.so loaded
pi@FrontBedroom:/opt/z-way-server$ cd /opt/z-way-server; LD_LIBRARY_PATH=./libs ./z-way-server -h 2>/dev/null | head
Z-Way version v2.0.0 from 2014-12-08 19:54:26 +0300 (build a064f5408850947aed035bc9170e1fa04f0fd2ec)
Looking for modules in ./modules
Module modhomekit.so loaded
Module modws.so loaded
cURL 7.26.0 likely has DNS timeout bug. Please update cURL. Disabling sync DNS timeouts for now.
Module modhttp.so loaded
Module moddhs.so loaded
Failed to load module modzwave.so: libarchive.so.12: cannot open shared object file: No such file or directory
Module modenocean.so loaded
Everytime i start the UI i see: Cannot start Z-Wave binding in the warnings section, not sure how to fix. Seems : "Failed to load module modzwave.so" could be an issue, this is a fresh install only thing changed is zwave module to point from ttyUSB0 to ttyAMA0..

Any help?

Re: Razberry error: Cannot start Z-Wave binding

Posted: 15 Feb 2015 01:57
by Mirar
Anything in the logs? /var/log/z-way-server.log normally...

Re: Razberry error: Cannot start Z-Wave binding

Posted: 15 Feb 2015 05:11
by pofs
Failed to load module modzwave.so: libarchive.so.12: cannot open shared object file: No such file or directory
It fails to load modzwave.so, because dependant library (libarchive.so) is not installed. Seems something got broken in your system.

Try updating your system:

Code: Select all

apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
and run installer again.

Re: Razberry error: Cannot start Z-Wave binding

Posted: 15 Feb 2015 07:02
by anotherone1
OK fixed the error you said:

Code: Select all

Z-Way version v2.0.0 from 2014-12-08 19:54:26 +0300 (build a064f5408850947aed035bc9170e1fa04f0fd2ec)
Looking for modules in ./modules
Module modhomekit.so loaded
Module modws.so loaded
cURL 7.26.0 likely has DNS timeout bug. Please update cURL. Disabling sync DNS timeouts for now.
Module modhttp.so loaded
Module moddhs.so loaded
Module modzwave.so loaded
Module modenocean.so loaded
Looking better, i will also attach log. I changed from USB0 to AMA0 is this correct for RPi daughter card?

Seems that this is where it fails now:

Code: Select all

[2015-02-14 19:59:05.497] [D] [zway] Opened device: /dev/ttyAMA0
[2015-02-14 19:59:05.504] [D] [zway] Worker thread successfully created
[2015-02-14 19:59:05.510] [D] [zway] Worker thread entry point
[2015-02-14 19:59:05.532] [I] [zway] Adding job: Get controller info and supported function classes
[2015-02-14 19:59:05.538] [D] [zway] SENDING: ( 01 03 00 07 FB )
[2015-02-14 19:59:05.545] [C] [i/o] Serial port has gone: (null)
[2015-02-14 19:59:05.545] [E] [zway] Device processing interrupted
[2015-02-14 19:59:05.545] [D] [zway] Worker thread exit point
[2015-02-14 19:59:05.559] [D] [zway] Worker thread successfully finished
[2015-02-14 19:59:05.663] [I] [core] Notification: critical (z-wave): Can not start Z-Wave binding: Error: Bad data - communication failed
[2015-02-14 19:59:05.692] [I] [core] Instantiating module 5 from class ZWave
[2015-02-14 19:59:05.698] [I] [core] --- Starting module Z-Wave binding
[2015-02-14 19:59:05.763] [I] [core] Notification: critical (z-wave): Can not start Z-Wave binding: Error: Binding with name 'zway' already exists
Also i cannot add an attachment for log, it says extension not allowed. (txt, log and no extension tried)

Re: Razberry error: Cannot start Z-Wave binding

Posted: 15 Feb 2015 12:09
by Mirar
I guess something happened here:

Code: Select all

    [2015-02-14 19:59:05.497] [D] [zway] Opened device: /dev/ttyAMA0
...
    [2015-02-14 19:59:05.545] [C] [i/o] Serial port has gone: (null)

Re: Razberry error: Cannot start Z-Wave binding

Posted: 15 Feb 2015 19:45
by pofs
Looks like ttyAMA0 was not reconfigured correctly in the kernel. Setup script is for Raspbian Linux, and may not work for other systems. You need manually reconfigure AMA0 then.

Re: Razberry error: Cannot start Z-Wave binding

Posted: 15 Feb 2015 22:55
by anotherone1
EDIT:

I actually found something else listening to the serial port, once i stopped that all the UI began loading! The only problem is i cant seem to include any devices? I did exclude a door sensor, but now i cannot include it. The red LED comes on, also saying now "The server has not completely started yet, please try again later"

Code: Select all

[2015-02-15 14:04:40.199] [I] [core] Notification: critical (z-wave): Can not start Z-Wave binding: Error: Binding with name 'zway' already exists
[2015-02-1r 14:04:46.379] [E] [zway] SaveData will not save data since it wasn't loaded. This is to prevent data loss.

Re: Razberry error: Cannot start Z-Wave binding

Posted: 18 Feb 2015 19:38
by anotherone1
Quick bump, any help on this? Or should I start a new thread since it's a different issue now.

Re: Razberry error: Cannot start Z-Wave binding

Posted: 19 Feb 2015 00:09
by dolpheen

Code: Select all

[2015-02-15 14:04:40.199] [I] [core] Notification: critical (z-wave): Can not start Z-Wave binding: Error: Binding with name 'zway' already exists
It's very strange but looks like 'Z-Wave binding' module loads 2 times.
Check modules in 'modules' and 'userModules' folders (in opt/z-way-server/automation/).
There should be only one ZWave folder in 'modules' folder.

What modules are listed in your UI under 'preferences->automation'? (There should be only one 'Z-Wave binding')

What modules are listed on request http://[your RaZberry IP]:8083/JS/Run/controller.instances

Re: Razberry error: Cannot start Z-Wave binding

Posted: 22 Feb 2015 01:33
by anotherone1
You were totally right! It was attempting to start twice. I removed the second entry and now i can get the UI to show! The only thing is i still cant include a device..

I tried to exclude it and re-include it but the device (door sensor) just blinks for pairing endlessly and eventually the Razberry LED goes off.

Any ideas? IM SO CLOSE! :D