New Razberry, fresh install, won't run...

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
IrishHayZeus
Posts: 7
Joined: 01 Dec 2015 18:27

New Razberry, fresh install, won't run...

Post by IrishHayZeus »

Hi all, first timer...

I recently received my RazBerry but have been unable to get the software to install correctly (or at least work correctly). I have tried multiple versions from 2.0.1 to the latest RC, but none work for me. Consistently, I receive this error in the last steps of the installation:

Code: Select all

Connecting to razberry.z-wave.me (razberry.z-wave.me)|46.20.244.36|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 44749 (44K) [application/x-gzip]
Saving to: ‘/tmp/mongoose.pkg.rPi.tgz’

/tmp/mongoose.pkg.rPi.tgz             100%[==========================================================================>]  43.70K  72.1KB/s   in 0.6s

2015-12-01 08:28:01 (72.1 KB/s) - ‘/tmp/mongoose.pkg.rPi.tgz’ saved [44749/44749]

Stopping mongoose http server
[ ok ] Stopping mongoose (via systemctl): mongoose.service.
Adding mongoose to autostart
Start mongoose http server
[ ok ] Starting mongoose (via systemctl): mongoose.service.
ls: cannot access config/zddx/*.xml: No such file or directory
Usage: ./z-cfg-update <filename>
Starting z-way-server
Starting z-way-server: done.
Thank you for using RaZberry!
root@raspberrypi:~#
It seems there is supposed to be some XML files in /opt/z-way-server/config/xdds, yet the folder is consistently empty.

Presuming this is normal, I try to launch the app and pull up the 8083 webpage. All looks well, until I try to include a new device (my first device), to which I get the message:

Code: Select all

 404 Not Found. Requested data does not exists
If I go into the Log view in the SmartHome UI, I see this message:

Code: Select all

 Cannot start Z-Wave binding: ReferenceError: ZWaveBinding is not defined
If I go the Expert UI, and look at the Configuration Tab, I see this message:

Code: Select all

Error handling data from server
My z-way-server.log files contains this:

Code: Select all

root@raspberrypi:/var/log# cat z-way-server.log
[2015-12-01 08:49:03.583] [I] [core] Executing script: /*** Z-Way Home Automation Engine main executable ***************************** ...
[2015-12-01 08:49:03.585] [I] [core] Executing script: // Comon utilities and functions ...
[2015-12-01 08:49:03.594] [I] [core] Executing script: // This script transforms old formats to new ...
[2015-12-01 08:49:03.648] [I] [core] Executing script: /*! ...
[2015-12-01 08:49:03.687] [I] [core] Executing script: //     Underscore.js 1.7.0 ...
[2015-12-01 08:49:03.728] [I] [core] Executing script: /*** Z-Way HA Virtual Device base class *************************************** ...
[2015-12-01 08:49:03.734] [I] [core] Executing script: /*** Z-Way DevicesCollection class ************************************ ...
[2015-12-01 08:49:03.769] [I] [core] Executing script: /*** Z-Way HA Controller class module ***************************************** ...
[2015-12-01 08:49:03.776] [I] [core] Executing script: /*** Automation Webserver Auth Controller ************************************* ...
[2015-12-01 08:49:03.778] [I] [core] Executing script: /*** Z-Way HA Automation module base class ************************************ ...
[2015-12-01 08:49:03.780] [I] [core] Executing script:  ...
[2015-12-01 08:49:03.787] [I] [core] Executing script: /*** Main Automation storage module ***************************************** ...
[2015-12-01 08:49:03.797] [I] [core] Executing script: /*** Main Automation webserver module ***************************************** ...
[2015-12-01 08:49:03.799] [I] [core] Executing script: // Make this testable by pulling in underscore from the parent module ...
[2015-12-01 08:49:03.803] [I] [core] Executing script: /*** Main Automation storage module ***************************************** ...
[2015-12-01 08:49:03.817] [I] [core] --- Loading ZAutomation classes
[2015-12-01 08:49:03.884] [I] [core] Starting ZWay Automation webserver
[2015-12-01 08:49:03.889] [I] [core] Loading modules...
[2015-12-01 08:49:03.895] [I] [core] Loading module RoundRobinScenes from modules/RoundRobinScenes
[2015-12-01 08:49:03.897] [I] [core] Executing script: /*** RoundRobinScenes Z-Way HA module ******************************************* ...
[2015-12-01 08:49:03.900] [I] [core] Loading module CodeDevice from modules/CodeDevice
[2015-12-01 08:49:03.902] [I] [core] Executing script: /*** CodeDevice Z-Way HA module ******************************************* ...
[2015-12-01 08:49:03.905] [I] [core] Loading module OpenRemoteHelpers from modules/OpenRemoteHelpers
[2015-12-01 08:49:03.908] [I] [core] Executing script: /* RaZOR ...
[2015-12-01 08:49:03.910] [I] [core] Loading module Cron from modules/Cron
[2015-12-01 08:49:03.912] [I] [core] Executing script: /*** Cron ZAutomation module ************************************************** ...
[2015-12-01 08:49:03.926] [I] [core] Instantiating module 2 from class Cron
[2015-12-01 08:49:03.928] [I] [core] --- Starting module System Clock (CRON)
[2015-12-01 08:49:03.945] [I] [core] Loading module SwitchPolling from modules/SwitchPolling
[2015-12-01 08:49:03.947] [I] [core] Executing script: /*** SwitchPolling Z-Way HA module ******************************************* ...
[2015-12-01 08:49:03.948] [I] [core] Loading module FosCam9828 from modules/FosCam9828
[2015-12-01 08:49:03.950] [I] [core] Executing script: /*** FosCam9828 Z-Way HA module ******************************************* ...
[2015-12-01 08:49:03.956] [I] [core] Loading module FosCam9821 from modules/FosCam9821
[2015-12-01 08:49:03.958] [I] [core] Executing script: /*** FosCam9821 Z-Way HA module ******************************************* ...
[2015-12-01 08:49:03.961] [I] [core] Loading module CustomUserCode from modules/CustomUserCode
[2015-12-01 08:49:03.962] [I] [core] Executing script:   /*** CustomUserCode ZAutomation module **************************************** ...
[2015-12-01 08:49:03.963] [I] [core] Loading module FosCam9826 from modules/FosCam9826
[2015-12-01 08:49:03.965] [I] [core] Executing script: /*** FosCam9826 Z-Way HA module ******************************************* ...
[2015-12-01 08:49:03.967] [I] [core] Loading module GlobalCache from modules/GlobalCache
[2015-12-01 08:49:03.968] [I] [core] Executing script: /*** GlobalCache Z-Way HA module ******************************************* ...
[2015-12-01 08:49:03.970] [I] [core] Loading module HomeKitGate from modules/HomeKitGate
[2015-12-01 08:49:03.972] [I] [core] Executing script: /* ...
[2015-12-01 08:49:03.973] [I] [core] Loading module YandexProbki from modules/YandexProbki
[2015-12-01 08:49:03.975] [I] [core] Executing script: /*** YandexProbki Z-Way HA module ******************************************* ...
[2015-12-01 08:49:03.976] [I] [core] Loading module SwitchControlGenerator from modules/SwitchControlGenerator
[2015-12-01 08:49:03.979] [I] [core] Executing script: /*** SwitchControlGenerator Z-Way HA module ******************************************* ...
[2015-12-01 08:49:03.985] [I] [core] Instantiating module 9 from class SwitchControlGenerator
[2015-12-01 08:49:03.990] [I] [core] --- Starting module Trap events from Remotes and Sensors
[2015-12-01 08:49:04.000] [I] [core] Loading module MultilineSensor from modules/MultilineSensor
[2015-12-01 08:49:04.003] [I] [core] Executing script: /*** MultilineSensor Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.004] [I] [core] Loading module InbandNotifications from modules/InbandNotifications
[2015-12-01 08:49:04.006] [I] [core] Executing script: /*** InbandNotifications Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.012] [I] [core] Instantiating module 3 from class InbandNotifications
[2015-12-01 08:49:04.015] [I] [core] --- Starting module Inband Notifier
[2015-12-01 08:49:04.026] [I] [core] Loading module EnOcean from modules/EnOcean
[2015-12-01 08:49:04.031] [I] [core] Executing script: /*** EnOcean Binding module ******************************************************** ...
[2015-12-01 08:49:04.034] [I] [core] Loading module RemoteAccess from modules/RemoteAccess
[2015-12-01 08:49:04.036] [I] [core] Executing script: /*** RemoteAccess Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.039] [I] [core] Instantiating module 4 from class RemoteAccess
[2015-12-01 08:49:04.042] [I] [core] --- Starting module Remote Access
[2015-12-01 08:49:04.050] [I] [core] Loading module AutoLock from modules/AutoLock
[2015-12-01 08:49:04.051] [I] [core] Executing script: /*** AutoLock Z-Way Home Automation module ************************************* ...
[2015-12-01 08:49:04.052] [I] [core] Loading module TagOnOff from modules/TagOnOff
[2015-12-01 08:49:04.054] [I] [core] Executing script: /*** TagOnOff Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.055] [I] [core] Loading module PoppCam from modules/PoppCam
[2015-12-01 08:49:04.056] [I] [core] Executing script: /*** PoppCam Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.058] [I] [core] Loading module ScheduledScene from modules/ScheduledScene
[2015-12-01 08:49:04.059] [I] [core] Executing script: /*** ScheduledScene Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.061] [I] [core] Loading module ThermostatDevice from modules/ThermostatDevice
[2015-12-01 08:49:04.062] [I] [core] Executing script: /*** ThermostatDevice Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.063] [I] [core] Loading module Notification from modules/Notification
[2015-12-01 08:49:04.065] [I] [core] Executing script: /*** Notification Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.066] [I] [core] Loading module OpenWeather from modules/OpenWeather
[2015-12-01 08:49:04.074] [I] [core] Executing script: /*** OpenWeather Extended Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.076] [I] [core] Loading module FosCam9805 from modules/FosCam9805
[2015-12-01 08:49:04.077] [I] [core] Executing script: /*** FosCam9805 Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.079] [I] [core] Loading module SecurityMode from modules/SecurityMode
[2015-12-01 08:49:04.082] [I] [core] Executing script: /*** SecurityMode Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.083] [I] [core] Loading module Sonos from modules/Sonos
[2015-12-01 08:49:04.086] [I] [core] Executing script: /*** Sonos Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.088] [I] [core] Loading module GroupDevices from modules/GroupDevices
[2015-12-01 08:49:04.089] [I] [core] Executing script: /*** GroupDevices Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.090] [I] [core] Loading module NotificationSMSru from modules/NotificationSMSru
[2015-12-01 08:49:04.092] [I] [core] Executing script: /*** NotificationSMSru Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.093] [I] [core] Loading module ZWave from modules/ZWave
[2015-12-01 08:49:04.107] [I] [core] Executing script: /*** Z-Wave Binding module ******************************************************** ...
[2015-12-01 08:49:04.117] [I] [core] Instantiating module 1 from class ZWave
[2015-12-01 08:49:04.118] [I] [core] --- Starting module Z-Wave Network Access
[2015-12-01 08:49:04.140] [I] [core] Notification: critical (z-wave): Cannot start Z-Wave binding: ReferenceError: ZWaveBinding is not defined
[2015-12-01 08:49:04.141] [I] [core] Loading module DelayedScene from modules/DelayedScene
[2015-12-01 08:49:04.142] [I] [core] Executing script: /*** DelayedScene Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.144] [I] [core] Loading module BatteryPolling from modules/BatteryPolling
[2015-12-01 08:49:04.146] [I] [core] Executing script: /*** BatteryPolling Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.149] [I] [core] Instantiating module 8 from class BatteryPolling
[2015-12-01 08:49:04.151] [I] [core] --- Starting module Battery Polling
[2015-12-01 08:49:04.157] [I] [core] Creating device battery BatteryPolling_8
[2015-12-01 08:49:04.186] [I] [core] Loading module InfoWidget from modules/InfoWidget
[2015-12-01 08:49:04.188] [I] [core] Executing script: /*** InfoWidget Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.193] [I] [core] Instantiating module 5 from class InfoWidget
[2015-12-01 08:49:04.194] [I] [core] --- Starting module Information Widget
[2015-12-01 08:49:04.200] [I] [core] Creating device text InfoWidget_5_Int
[2015-12-01 08:49:04.214] [I] [core] Instantiating module 6 from class InfoWidget
[2015-12-01 08:49:04.214] [I] [core] --- Starting module Information Widget
[2015-12-01 08:49:04.220] [I] [core] Creating device text InfoWidget_6_Int
[2015-12-01 08:49:04.225] [I] [core] Loading module LightScene from modules/LightScene
[2015-12-01 08:49:04.226] [I] [core] Executing script: /*** LightScene Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.228] [I] [core] Loading module LogicalRules from modules/LogicalRules
[2015-12-01 08:49:04.230] [I] [core] Executing script: /*** LogicalRules Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.232] [I] [core] Loading module SensorsPolling from modules/SensorsPolling
[2015-12-01 08:49:04.233] [I] [core] Executing script: /*** SensorsPolling Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.239] [I] [core] Instantiating module 7 from class SensorsPolling
[2015-12-01 08:49:04.243] [I] [core] --- Starting module Periodical Sensor Polling
[2015-12-01 08:49:04.249] [I] [core] Loading module SensorValueLogging from modules/SensorValueLogging
[2015-12-01 08:49:04.250] [I] [core] Executing script: /*** SensorValueLogging Z-Way Home Automation module ************************************* ...
[2015-12-01 08:49:04.251] [I] [core] Loading module DeviceHistory from modules/DeviceHistory
[2015-12-01 08:49:04.260] [I] [core] Executing script: /*** DeviceHistory Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.264] [I] [core] Loading module BindDevices from modules/BindDevices
[2015-12-01 08:49:04.266] [I] [core] Executing script: /*** BindDevices Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.267] [I] [core] Loading module IfThen from modules/IfThen
[2015-12-01 08:49:04.268] [I] [core] Executing script: /*** IfThen Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.269] [I] [core] Loading module SmartLight from modules/SmartLight
[2015-12-01 08:49:04.271] [I] [core] Executing script: /*** SmartLight Z-Way Home Automation module ************************************* ...
[2015-12-01 08:49:04.272] [I] [core] Loading module DummyDevice from modules/DummyDevice
[2015-12-01 08:49:04.273] [I] [core] Executing script: /*** DummyDevice Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.274] [I] [core] Loading module CustomUserCodeLoader from modules/CustomUserCodeLoader
[2015-12-01 08:49:04.275] [I] [core] Executing script:   /*** CustomUserCodeLoader ZAutomation module **************************************** ...
[2015-12-01 08:49:04.276] [I] [core] Loading module ImportRemoteHA from modules/ImportRemoteHA
[2015-12-01 08:49:04.278] [I] [core] Executing script: /*** ImportRemoteHA Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.279] [I] [core] Loading module RGB from modules/RGB
[2015-12-01 08:49:04.281] [I] [core] Executing script: /*** RGB Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.283] [I] [core] Loading module SensorsPollingLogging from modules/SensorsPollingLogging
[2015-12-01 08:49:04.284] [I] [core] Executing script: /*** SensorsPollingLogging Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.285] [I] [core] Loading module HTTPDevice from modules/HTTPDevice
[2015-12-01 08:49:04.287] [I] [core] Executing script: /*** HTTPDevice Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.288] [I] [core] Loading module VistaCam from modules/VistaCam
[2015-12-01 08:49:04.290] [I] [core] Executing script: /*** VistaCam Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.292] [I] [core] Loading module AutoOff from modules/AutoOff
[2015-12-01 08:49:04.293] [I] [core] Executing script: /*** AutoOff Z-Way Home Automation module ************************************* ...
[2015-12-01 08:49:04.294] [I] [core] Loading module Camera from modules/Camera
[2015-12-01 08:49:04.295] [I] [core] Executing script: /*** Camera Z-Way HA module ******************************************* ...
[2015-12-01 08:49:04.297] [I] [core] Starting automation...
[2015-12-01 08:49:04.314] [I] [core] Starting storage...
[2015-12-01 08:49:04.315] [I] [core] ZWay Automation started
root@raspberrypi:/var/log#
Sadly, after spending the night trying to figure this out, I'm quite rather frustrated. At this point, all I want to do is verify that the RaZberry is working correctly. Is there a command-line tool that I can use to query the network, etc? Honestly, I'm not particularly interested in the Z-Way web interface, other than as a backup means for network management; but this seemed to be the "preferred" solution for the RazBerry... :(

Hopefully, its something really stupid that I've consistently overlooked???

Thanks,
IrishHayZeus
Posts: 7
Joined: 01 Dec 2015 18:27

Re: New Razberry, fresh install, won't run...

Post by IrishHayZeus »

I figured it out. It was the libarchive.so.13 vs libarchive.so.12.

It seems this has been an issue for a while now (since Jessie?) Perhaps the install script could be modified to look for so.13 and create the symlink if necessary? It's also troublesome that the error isn't logged to the z-way-server.log, but shows on the output when manually running z-way-server from the command line.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: New Razberry, fresh install, won't run...

Post by PoltoS »

Install script was finally fixed today. Thanks reporting the problem.
IrishHayZeus
Posts: 7
Joined: 01 Dec 2015 18:27

Re: New Razberry, fresh install, won't run...

Post by IrishHayZeus »

Cool. Thanks PoltoS. I ran into a few more issues, not sure exactly what they were, but I suspect my Raz was on the wrong frequency (ExpertUI reports unknown). After a multiple attempts to set it to US, and eventually moving my Raz to within inches of the device, its finally pairing. Still not super reliable communication (occasionally the inventory won't download completely when pairing the devices the first time), but its at least working now.

Is there any way to improve the reception of the Raz? Many of my Z-Wave devices are in-wall switches, and its not very convenient to string my Pi, USB supply, and Ethernet cable around the house, in order to pair it. I was under the impression that Z-Wave was supposed to have reliable communication at a distance of 10 meters between devices.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: New Razberry, fresh install, won't run...

Post by PoltoS »

Make sure your RaZ is US version. You can use EU version and set freq to US, but RF range will be about 1 meter, while with correct filter it will be >10 indoor.

EU+, EU, E are EU,
US, U+, U are US
IrishHayZeus
Posts: 7
Joined: 01 Dec 2015 18:27

Re: New Razberry, fresh install, won't run...

Post by IrishHayZeus »

Is there a definitive way to tell? Is the 'EU+/EU/E' the letter written on the daughterboard on the RaZ? Mine has an E, but in my research, I was never able find find a clear example of a US version. I purchased mine from a US-based online retailer (MCM Electronics), who I've had good experience with... It would be terribly unfortunate if they got in a huge stock of EU RaZs...
Post Reply