Closed 130s closed 4 years ago
Reading https://z-wave.me/z-way/download-z-way/
wget https://razberry.z-wave.me/z-way-server/razberry.img.zip
While downloading, I found https://z-wave.me/z-way-v3-0-0/ that tells me z-way is still actively maintained. Good! The upgrade script seems to have finished without major error?:
wget -q -O - https://storage.z-wave.me/RaspbianInstall | sudo bash
nnoo@noo-rpi2:~ $ wget -q -O - https://storage.z-wave.me/RaspbianInstall | sudo bash
Ign:1 http://repos.azulsystems.com/debian stable InRelease
Hit:2 http://repos.azulsystems.com/debian stable Release
Get:3 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Hit:4 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Ign:6 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Get:7 https://dl.bintray.com/openhab/apt-repo2 stable Release [6,051 B]
Get:8 https://dl.bintray.com/openhab/apt-repo2 stable Release.gpg [821 B]
Err:8 https://dl.bintray.com/openhab/apt-repo2 stable Release.gpg
The following signatures were invalid: EXPKEYSIG 075721F6A224060A openHAB Bintray Repositories <owner@openhab.org>
Fetched 32.2 kB in 3s (8,375 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.bintray.com/openhab/apt-repo2 stable Release: The following signatures were invalid: EXPKEYSIG 075721F6A224060A openHAB Bintray Repositories <owner@openhab.org>
W: Failed to fetch https://dl.bintray.com/openhab/apt-repo2/dists/stable/Release.gpg The following signatures were invalid: EXPKEYSIG 075721F6A224060A openHAB Bintray Repositories <owner@openhab.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.4.9).
dirmngr is already the newest version (2.1.18-8~deb9u4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Executing: /tmp/apt-key-gpghome.Z0zH3zpliX/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x7E148E3C
gpg: key 2222290F7E148E3C: public key "Z-Wave.Me <info@z-wave.me>" imported
gpg: Total number processed: 1
gpg: imported: 1
Ign:1 http://repos.azulsystems.com/debian stable InRelease
Hit:2 http://repos.azulsystems.com/debian stable Release
Hit:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Get:4 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Ign:5 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Get:6 https://dl.bintray.com/openhab/apt-repo2 stable Release [6,051 B]
Get:7 https://dl.bintray.com/openhab/apt-repo2 stable Release.gpg [821 B]
Get:9 https://repo.z-wave.me/z-way/raspbian stretch InRelease [1,810 B]
Err:7 https://dl.bintray.com/openhab/apt-repo2 stable Release.gpg
The following signatures were invalid: EXPKEYSIG 075721F6A224060A openHAB Bintray Repositories <owner@openhab.org>
Get:10 https://repo.z-wave.me/z-way/raspbian stretch/main armhf Packages [1,082 B]
Fetched 35.1 kB in 4s (7,174 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.bintray.com/openhab/apt-repo2 stable Release: The following signatures were invalid: EXPKEYSIG 075721F6A224060A openHAB Bintray Repositories <owner@openhab.org>
W: Failed to fetch https://dl.bintray.com/openhab/apt-repo2/dists/stable/Release.gpg The following signatures were invalid: EXPKEYSIG 075721F6A224060A openHAB Bintray Repositories <owner@openhab.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gawk libarchive13 libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd-dev libavahi-compat-libdnssd1 libc-ares2 libdbus-1-dev liblzo2-2 libsigsegv2 sharutils webif z-way-server zbw
Suggested packages:
gawk-doc lrzip sharutils-doc bsd-mailx | mailx
The following NEW packages will be installed:
gawk libarchive13 libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd-dev libavahi-compat-libdnssd1 libc-ares2 libdbus-1-dev liblzo2-2 libsigsegv2 sharutils webif z-way-full z-way-server
zbw
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.5 MB of archives.
After this operation, 7,131 kB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf libc-ares2 armhf 1.14.0-1~bpo9+1 [80.7 kB]
Get:2 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libsigsegv2 armhf 2.10-5 [28.4 kB]
Get:3 http://mirror.pit.teraswitch.com/raspbian/raspbian stretch/main armhf gawk armhf 1:4.1.4+dfsg-1 [508 kB]
Get:4 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf liblzo2-2 armhf 2.08-1.2 [47.6 kB]
Get:6 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libavahi-common-dev armhf 0.6.32-2 [62.6 kB]
Get:10 https://repo.z-wave.me/z-way/raspbian stretch/main armhf z-way-server armhf 3.0.3 [21.6 MB]
Get:5 http://mirror.pit.teraswitch.com/raspbian/raspbian stretch/main armhf libarchive13 armhf 3.2.2-2+deb9u2 [253 kB]
Get:7 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libdbus-1-dev armhf 1.10.28-0+deb9u1 [202 kB]
Get:9 http://mirror.pit.teraswitch.com/raspbian/raspbian stretch/main armhf libavahi-compat-libdnssd1 armhf 0.6.32-2 [44.0 kB]
Get:8 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libavahi-client-dev armhf 0.6.32-2 [56.5 kB]
Get:11 http://mirror.pit.teraswitch.com/raspbian/raspbian stretch/main armhf libavahi-compat-libdnssd-dev armhf 0.6.32-2 [58.8 kB]
Get:12 http://raspbian.mirror.constant.com/raspbian stretch/main armhf sharutils armhf 1:4.15.2-2+deb9u1 [237 kB]
Get:13 https://repo.z-wave.me/z-way/raspbian stretch/main armhf webif armhf 1.1 [325 kB]
Get:14 https://repo.z-wave.me/z-way/raspbian stretch/main armhf zbw all 1.2 [4,740 B]
Get:15 https://repo.z-wave.me/z-way/raspbian stretch/main armhf z-way-full all 1.0-latest-version [822 B]
Fetched 23.5 MB in 12s (1,875 kB/s)
Selecting previously unselected package libsigsegv2:armhf.
(Reading database ... 56117 files and directories currently installed.)
Preparing to unpack .../libsigsegv2_2.10-5_armhf.deb ...
Unpacking libsigsegv2:armhf (2.10-5) ...
Setting up libsigsegv2:armhf (2.10-5) ...
Selecting previously unselected package gawk.
(Reading database ... 56127 files and directories currently installed.)
Preparing to unpack .../00-gawk_1%3a4.1.4+dfsg-1_armhf.deb ...
Unpacking gawk (1:4.1.4+dfsg-1) ...
Selecting previously unselected package liblzo2-2:armhf.
Preparing to unpack .../01-liblzo2-2_2.08-1.2_armhf.deb ...
Unpacking liblzo2-2:armhf (2.08-1.2) ...
Selecting previously unselected package libarchive13:armhf.
Preparing to unpack .../02-libarchive13_3.2.2-2+deb9u2_armhf.deb ...
Unpacking libarchive13:armhf (3.2.2-2+deb9u2) ...
Selecting previously unselected package libavahi-common-dev:armhf.
Preparing to unpack .../03-libavahi-common-dev_0.6.32-2_armhf.deb ...
Unpacking libavahi-common-dev:armhf (0.6.32-2) ...
Selecting previously unselected package libdbus-1-dev:armhf.
Preparing to unpack .../04-libdbus-1-dev_1.10.28-0+deb9u1_armhf.deb ...
Unpacking libdbus-1-dev:armhf (1.10.28-0+deb9u1) ...
Selecting previously unselected package libavahi-client-dev:armhf.
Preparing to unpack .../05-libavahi-client-dev_0.6.32-2_armhf.deb ...
Unpacking libavahi-client-dev:armhf (0.6.32-2) ...
Selecting previously unselected package libavahi-compat-libdnssd1:armhf.
Preparing to unpack .../06-libavahi-compat-libdnssd1_0.6.32-2_armhf.deb ...
Unpacking libavahi-compat-libdnssd1:armhf (0.6.32-2) ...
Selecting previously unselected package libavahi-compat-libdnssd-dev:armhf.
Preparing to unpack .../07-libavahi-compat-libdnssd-dev_0.6.32-2_armhf.deb ...
Unpacking libavahi-compat-libdnssd-dev:armhf (0.6.32-2) ...
Selecting previously unselected package libc-ares2:armhf.
Preparing to unpack .../08-libc-ares2_1.14.0-1~bpo9+1_armhf.deb ...
Unpacking libc-ares2:armhf (1.14.0-1~bpo9+1) ...
Selecting previously unselected package sharutils.
Preparing to unpack .../09-sharutils_1%3a4.15.2-2+deb9u1_armhf.deb ...
Unpacking sharutils (1:4.15.2-2+deb9u1) ...
Selecting previously unselected package z-way-server.
Preparing to unpack .../10-z-way-server_3.0.3_armhf.deb ...
Unpacking z-way-server (3.0.3) ...
Selecting previously unselected package webif.
Preparing to unpack .../11-webif_1.1_armhf.deb ...
Unpacking webif (1.1) ...
Selecting previously unselected package zbw.
Preparing to unpack .../12-zbw_1.2_all.deb ...
Unpacking zbw (1.2) ...
Selecting previously unselected package z-way-full.
Preparing to unpack .../13-z-way-full_1.0-latest-version_all.deb ...
Unpacking z-way-full (1.0-latest-version) ...
Setting up libdbus-1-dev:armhf (1.10.28-0+deb9u1) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ...
Setting up libavahi-common-dev:armhf (0.6.32-2) ...
Setting up libavahi-client-dev:armhf (0.6.32-2) ...
Setting up sharutils (1:4.15.2-2+deb9u1) ...
Setting up libavahi-compat-libdnssd1:armhf (0.6.32-2) ...
Setting up gawk (1:4.1.4+dfsg-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for systemd (232-25+deb9u12) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libc-ares2:armhf (1.14.0-1~bpo9+1) ...
Setting up liblzo2-2:armhf (2.08-1.2) ...
Setting up libarchive13:armhf (3.2.2-2+deb9u2) ...
Setting up libavahi-compat-libdnssd-dev:armhf (0.6.32-2) ...
Setting up z-way-server (3.0.3) ...
Configuration file '/etc/init.d/z-way-server', does not exist on system.
Installing new config file as you requested.
Configuration file '/etc/logrotate.d/z-way-server', does not exist on system.
Installing new config file as you requested.
Configuration file '/etc/z-way/box_type', does not exist on system.
Installing new config file as you requested.
Configuration file '/opt/z-way-server/config.xml', does not exist on system.
Installing new config file as you requested.
Configuration file '/opt/z-way-server/config/Defaults.xml', does not exist on system.
Installing new config file as you requested.
Setting default automation config
Usage: ./z-cfg-update <filename>
Starting z-way-server: done.
Setting up webif (1.1) ...
Configuration file '/etc/webif.conf', does not exist on system.
Installing new config file as you requested.
Configuration file '/etc/mongoose/mongoose.conf', does not exist on system.
Installing new config file as you requested.
Starting mongoose (via systemctl): mongoose.service.
Setting up zbw (1.2) ...
Configuration file '/etc/zbw/userid', does not exist on system.
Installing new config file as you requested.
Configuration file '/etc/zbw/passwd', does not exist on system.
Installing new config file as you requested.
Configuration file '/etc/zbw/local_port', does not exist on system.
Installing new config file as you requested.
Configuration file '/etc/zbw/flags/.keep', does not exist on system.
Installing new config file as you requested.
tail: cannot open '/etc/init.d/zbw_connect' for reading: No such file or directory
chmod: cannot access 'zbw_connect': No such file or directory
zbw_connect patched
/var/lib/dpkg/info/zbw.postinst: 94: /var/lib/dpkg/info/zbw.postinst: /etc/init.d/zbw_connect: Permission denied
--2019-12-14 15:09:25-- https://find.z-wave.me/zbw_new_user
Resolving find.z-wave.me (find.z-wave.me)... 185.25.224.111, 185.25.224.206, 46.20.244.72, ...
Connecting to find.z-wave.me (find.z-wave.me)|185.25.224.111|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘/tmp/zbw_connect_setup.run’
/tmp/zbw_connect_se [ <=> ] 6.09K --.-KB/s in 0s
2019-12-14 15:09:27 (17.3 MB/s) - ‘/tmp/zbw_connect_setup.run’ saved [6240]
Do you want to enable the remote support(y/n)? Remote support NOT enabled
Now you can run zbw_connect with /etc/init.d/zbw_connect start
or simply reboot your system
Your user id: nnnnnn (DELETED by @130s)
Your password: (DELETED by @130s)
Starting zbw_connect (via systemctl): zbw_connect.service.
zbw_autosetup.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zbw_autosetup
Starting zbw_connect (via systemctl): zbw_connect.service.
Setting up z-way-full (1.0-latest-version) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for systemd (232-25+deb9u12) ...
Updating FireMotD available updates count ... 2019-12-14 15:09:44,514: FireMotD: Error: Template folder doesn't exist. Upgrading from an older version? Please run make again or run the install function "FireMotD -I -v".
I wasn't sure why it didn't fail even though the same website says it currently supports only Debian.
Currently Stretch and Buster are supported
Turned out my rpi2
runs on Debian stretch
.
$ more /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
z-wave-server seems installed.
$ apt-cache policy z-way-server
z-way-server:
Installed: 3.0.3
Candidate: 3.0.3
Version table:
*** 3.0.3 500
500 https://repo.z-wave.me/z-way/raspbian stretch/main armhf Packages
100 /var/lib/dpkg/status
Re-purposing the ticket, spun off OH2 integration in #402.
After apt pkg installation seems to be completed, I'm wondering what to do. The online documentation seems to show empty as of today https://z-wave.me/essentials.
Without doing anything, http://noo-rpi2:8083/smarthome/#/dashboard seems to be running.
Trying to add a new device, at http://noo-rpi2:8083/smarthome/#/zwave/vendors I got an error:
1.) if the controller is plugged in correctly,
2.) that in the app 'Z-Wave Network Access' the right port is entered
(UZB: '/dev/ttyACM0', RaZberry shield: '/dev/ttyAMA0', UZB-Windows: '\\.\COM3', Z-Stick: '/dev/ttyUSB0', embedded boxes: '/dev/ttyS0' or '/dev/ttyS1')
3.) the app is aktiv. If not you could activate it under Menu > Apps > Active or add a new one under Menu > Apps > Local.
The Setting 'Expert View' needs to be active under Menu > My Settings.
Assuming I'm using RaZberry shiled
(not sure what "shiled" is though), I do see:
$ ll /dev/ttyAMA0
crw--w---- 1 root tty 204, 64 Dec 14 15:10 /dev/ttyAMA0
On http://noo-rpi2:8083/smarthome/#/events I do see
Cannot start Z-Wave binding: Error: Invalid port
$ tail /var/log/z-way-server.log
[2019-12-14 16:36:49.290] [D] [zway] [61] "ZMEFreqChange"
[2019-12-14 16:36:49.290] [D] [zway] [62] "ZMERestore"
[2019-12-14 16:36:49.290] [D] [zway] [63] "ZMEBootloaderFlash"
[2019-12-14 16:36:49.290] [D] [zway] [64] "ZMECapabilities"
[2019-12-14 16:36:49.291] [D] [zway] [65] "ZMESerialAPIOptions"
[2019-12-14 16:36:49.291] [C] [i/o] Failed to open device /dev/ttyACM0: No such file or directory
[2019-12-14 16:36:49.291] [I] [zway] SaveData will not save data since it wasn't loaded. This is to prevent data loss.
[2019-12-14 16:36:49.327] [I] [core] Error: Invalid port
[2019-12-14 16:36:49.330] [I] [core] Tried 5 times without success. Stopping tries.
[2019-12-14 16:36:49.342] [I] [core] Notification: critical (z-wave): Cannot start Z-Wave binding: Error: Invalid port
$ ll /dev/ttyACM0
ls: cannot access '/dev/ttyACM0': No such file or directory
So, z-way seems to be trying to access /dev/ttyACM0
.
Not sure but trying https://community.home-assistant.io/t/dev-ttyacm0-not-found/37046/6
nnoo@noo-rpi2:~ $ sudo apt-get install libudev-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libudev-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 92.5 kB of archives.
After this operation, 184 kB of additional disk space will be used.
Get:1 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libudev-dev armhf 232-25+deb9u12 [92.5 kB]
Fetched 92.5 kB in 1s (80.1 kB/s)
Selecting previously unselected package libudev-dev:armhf.
(Reading database ... 61879 files and directories currently installed.)
Preparing to unpack .../libudev-dev_232-25+deb9u12_armhf.deb ...
Unpacking libudev-dev:armhf (232-25+deb9u12) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libudev-dev:armhf (232-25+deb9u12) ...
Updating FireMotD available updates count ... 2019-12-14 16:44:56,522: FireMotD: Error: Template folder doesn't exist. Upgrading from an older version? Please run make again or run the install function "FireMotD -I -v".
nnoo@noo-rpi2:~ $ ll /dev/ttyACM0
ls: cannot access '/dev/ttyACM0': No such file or directory
nnoo@130s-rpi2:~ $
After https://github.com/130s/hut_10sqft/issues/338#issuecomment-565767423, I reboot RPi. Not sure what exactly helped, but on the webapp on the z-wave app page http://130s-rpi2:8083/smarthome/#/module/put/1, I see:
Serial port to Z-wave dongle: /dev/ttyAMA0
and I do see it on Linux:
$ ll /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 64 Dec 14 17:05 /dev/ttyAMA0
So, software installation and connecting to z-wave module seems to be done.
- [ ] Z-wave connectivity via Razberry with other Z-wave devices
- [ ] Controlling Z-wave devices via Z-Way panel.
Looks like done. Confirmed with 2 devices that I've activated 2 years ago but haven't been using for an year after RPi2 crashed.
The first one, though, had an issue not responding to request via z-wave well. Today I still see the device frequently loses connection with the z-wave module. That said, 2nd one seems to be reliably communication. So it doesn't seem to be the problem of server side.
Closing.
Cont'd from https://github.com/130s/hut_10sqft/issues/401#issuecomment-568917689
Seems like dpkg
fixed at least apt
broken package issue.
nnooo@nooo-rpi2:~ $ sudo dpkg --configure -a
Setting up libdbus-1-dev:armhf (1.10.28-0+deb9u1) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ...
Setting up libavahi-common-dev:armhf (0.6.32-2) ...
Setting up libavahi-client-dev:armhf (0.6.32-2) ...
Setting up sharutils (1:4.15.2-2+deb9u1) ...
Setting up libavahi-compat-libdnssd1:armhf (0.6.32-2) ...
dpkg: dependency problems prevent configuration of z-way-full:
z-way-full depends on zbw; however:
Package zbw is not installed.
dpkg: error processing package z-way-full (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for systemd (232-25+deb9u12) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libc-ares2:armhf (1.14.0-1~bpo9+1) ...
Setting up liblzo2-2:armhf (2.08-1.2) ...
Setting up libarchive13:armhf (3.2.2-2+deb9u2) ...
Setting up libavahi-compat-libdnssd-dev:armhf (0.6.32-2) ...
Setting up z-way-server (3.0.3) ...
Usage: ./z-cfg-update <filename>
Starting z-way-server: done.
Setting up webif (1.1) ...
Starting mongoose (via systemctl): mongoose.service.
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for systemd (232-25+deb9u12) ...
Errors were encountered while processing:
z-way-full
I can see the web app page accessible.
After z-way server re-installation #403, I'm going through again the device connection steps again.
On http://noo-rpi2:8083/smarthome/#/events I see:
09:41 Cannot initialize ZBWConnect module. Error:
09:41 The connection to the ZBW Service has timed out. Please restart the App 'Remote Access' and try it again.
I'm not sure where that timestamp came from (OS indicates 13:25:44 now.
Looking into /var/log/z-way-server.log
, it looks like when z-way server was successfully installed.
[2019-12-15 03:28:37.245] [I] [zway] Saving configuration data to config/zddx/c16c099a-DevicesData.xml
[2019-12-15 03:28:37.376] [E] [zway] Error returned from zddx_save_to_xml(zway): Access denieded (-5)
[2019-12-25 09:36:14.305] [I] [core] Executing script: /*** Z-Way Home Automation Engine main executable ***************************** ...
[2019-12-25 09:36:14.313] [I] [core] Executing script: // Comon utilities and functions ...
[2019-12-25 09:36:14.340] [I] [core] Executing script: // This script transforms old formats to new ...
[2019-12-25 09:36:14.507] [I] [core] Executing script: /*! EventEmitter2 https://github.com/hij1nx/EventEmitter2 Copyright (c) 2013 hij1nx Licensed under the MIT license.*/ ...
[2019-12-25 09:36:14.553] [I] [core] Executing script: // Underscore.js 1.8.3 ...
[2019-12-25 09:36:14.609] [I] [core] Executing script: /*! Papa Parse v4.1.2 https://github.com/mholt/PapaParse */ ...
[2019-12-25 09:36:14.679] [I] [core] Executing script: /* @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ ...
[2019-12-25 09:36:14.723] [I] [core] Executing script: // BAOS_API_2011_01_29_001 ...
[2019-12-25 09:36:14.725] [I] [core] Executing script: // Converts IntelHex into binary 128 kB file ...
[2019-12-25 09:36:14.727] [I] [core] Executing script: // Public domain version of Base64 encoder/decoder found somewhere in the Internet ...
:
[2019-12-25 09:41:03.081] [I] [core] zbwTimerCount:57
[2019-12-25 09:41:08.101] [I] [core] zbwTimerCount:58
[2019-12-25 09:41:13.125] [I] [core] zbwTimerCount:59
[2019-12-25 09:41:18.149] [I] [core] zbwTimerCount:60
[2019-12-25 09:41:23.175] [I] [core] zbwTimerCount:61
[2019-12-25 09:41:23.180] [I] [core] Clear self.zbwTimer after 5 min
[2019-12-25 09:41:23.194] [I] [core] Notification: warning (module): The connection to the ZBW Service has timed out. Please restart the App 'Remote Access' and try it again.
[2019-12-25 09:41:23.200] [I] [core] Notification: error (module): Cannot initialize ZBWConnect module. Error:
[2019-12-25 09:41:23.201] [I] [core] Cannot initialize ZBWConnect module. Error: Error: ZBW path does not exist
[2019-12-25 09:46:16.658] [I] [core] Failed to update/remove network statistics. Error: Operation not supported
[2019-12-25 10:36:16.635] [I] [zway] Saving configuration data to config/zddx/c16c099a-DevicesData.xml
[2019-12-25 11:36:16.643] [I] [zway] Saving configuration data to config/zddx/c16c099a-DevicesData.xml
[2019-12-25 12:36:16.657] [I] [zway] Saving configuration data to config/zddx/c16c099a-DevicesData.xml
After z-way server re-installation #403, I'm going through again the device connection steps again.
On http://noo-rpi2:8083/smarthome/#/events I see:
09:41 Cannot initialize ZBWConnect module. Error:
09:41 The connection to the ZBW Service has timed out. Please restart the App 'Remote Access' and try it again.
I'm not sure where that timestamp came from (OS indicates 13:25:44 now.
Looking into /var/log/z-way-server.log
, it looks like when z-way server was successfully installed.
[2019-12-15 03:28:37.245] [I] [zway] Saving configuration data to config/zddx/c16c099a-DevicesData.xml
[2019-12-15 03:28:37.376] [E] [zway] Error returned from zddx_save_to_xml(zway): Access denieded (-5)
[2019-12-25 09:36:14.305] [I] [core] Executing script: /*** Z-Way Home Automation Engine main executable ***************************** ...
[2019-12-25 09:36:14.313] [I] [core] Executing script: // Comon utilities and functions ...
[2019-12-25 09:36:14.340] [I] [core] Executing script: // This script transforms old formats to new ...
[2019-12-25 09:36:14.507] [I] [core] Executing script: /*! EventEmitter2 https://github.com/hij1nx/EventEmitter2 Copyright (c) 2013 hij1nx Licensed under the MIT license.*/ ...
[2019-12-25 09:36:14.553] [I] [core] Executing script: // Underscore.js 1.8.3 ...
[2019-12-25 09:36:14.609] [I] [core] Executing script: /*! Papa Parse v4.1.2 https://github.com/mholt/PapaParse */ ...
[2019-12-25 09:36:14.679] [I] [core] Executing script: /* @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ ...
[2019-12-25 09:36:14.723] [I] [core] Executing script: // BAOS_API_2011_01_29_001 ...
[2019-12-25 09:36:14.725] [I] [core] Executing script: // Converts IntelHex into binary 128 kB file ...
[2019-12-25 09:36:14.727] [I] [core] Executing script: // Public domain version of Base64 encoder/decoder found somewhere in the Internet ...
:
[2019-12-25 09:41:03.081] [I] [core] zbwTimerCount:57
[2019-12-25 09:41:08.101] [I] [core] zbwTimerCount:58
[2019-12-25 09:41:13.125] [I] [core] zbwTimerCount:59
[2019-12-25 09:41:18.149] [I] [core] zbwTimerCount:60
[2019-12-25 09:41:23.175] [I] [core] zbwTimerCount:61
[2019-12-25 09:41:23.180] [I] [core] Clear self.zbwTimer after 5 min
[2019-12-25 09:41:23.194] [I] [core] Notification: warning (module): The connection to the ZBW Service has timed out. Please restart the App 'Remote Access' and try it again.
[2019-12-25 09:41:23.200] [I] [core] Notification: error (module): Cannot initialize ZBWConnect module. Error:
[2019-12-25 09:41:23.201] [I] [core] Cannot initialize ZBWConnect module. Error: Error: ZBW path does not exist
[2019-12-25 09:46:16.658] [I] [core] Failed to update/remove network statistics. Error: Operation not supported
[2019-12-25 10:36:16.635] [I] [zway] Saving configuration data to config/zddx/c16c099a-DevicesData.xml
[2019-12-25 11:36:16.643] [I] [zway] Saving configuration data to config/zddx/c16c099a-DevicesData.xml
[2019-12-25 12:36:16.657] [I] [zway] Saving configuration data to config/zddx/c16c099a-DevicesData.xml
Remote Access
error is probably unrelated to basic z-way, so ignoring for now.
I also noticed this same error from before successful re-installation is still occurring.
nnooo@nooo-rpi2:~ $ sudo apt-get --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
zbw
The following NEW packages will be installed:
zbw
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/4,740 B of archives.
After this operation, 36.9 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package zbw.
(Reading database ... 62039 files and directories currently installed.)
Preparing to unpack .../apt/archives/zbw_1.2_all.deb ...
cat: /etc/zbw/passwd: No such file or directory
Didn't find passwd file
dpkg: error processing archive /var/cache/apt/archives/zbw_1.2_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/zbw_1.2_all.deb
Updating FireMotD available updates count ... 2019-12-25 13:32:14,418: FireMotD: Error: Template folder doesn't exist. Upgrading from an older version? Please run make again or run the install function "FireMotD -I -v".
E: Sub-process /usr/bin/dpkg returned an error code (1)
Not sure but after running the commands from https://z-wave.me/frequently-asked-questions/#clone-sd-card, I seems to have fixed the error with zbw
installation.
wget 'http://find.z-wave.me/zbw_new_user?box_type=razberry' -O /tmp/zbw_connect_setup.run && sudo bash /tmp/zbw_connect_setup.run -y && sudo /etc/init.d/zbw_connect start
--2019-12-25 13:44:02-- http://find.z-wave.me/zbw_new_user?box_type=razberry
Resolving find.z-wave.me (find.z-wave.me)... 78.46.43.211, 185.25.224.111, 185.25.224.206, ...
Connecting to find.z-wave.me (find.z-wave.me)|78.46.43.211|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘/tmp/zbw_connect_setup.run’
/tmp/zbw_connect_setup.run [ <=> ] 6.09K --.-KB/s in 0s
2019-12-25 13:44:03 (45.6 MB/s) - ‘/tmp/zbw_connect_setup.run’ saved [6240]
Do you want to enable the remote support(y/n)? y
Remote support enabled
Now you can run zbw_connect with /etc/init.d/zbw_connect start
or simply reboot your system
Your user id: 150823
Your password: hathi5tah6Mi
Starting zbw_connect (via systemctl): zbw_connect.service.
nnooo@nooo-rpi2:~ $ more /etc/zbw/passwd
more: cannot open /etc/zbw/passwd: Permission denied
nnooo@nooo-rpi2:~ $ sudo more /etc/zbw/passwd
(Replaced. I see some random number)
nnooo@nooo-rpi2:~ $ sudo apt-get --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
zbw
The following NEW packages will be installed:
zbw
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/4,740 B of archives.
After this operation, 36.9 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 62039 files and directories currently installed.)
Preparing to unpack .../apt/archives/zbw_1.2_all.deb ...
Stopping zbw_connect (via systemctl): zbw_connect.service.
Unpacking zbw (1.2) ...
Setting up zbw (1.2) ...
Configuration file '/etc/zbw/userid'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** userid (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/zbw/userid ...
Configuration file '/etc/zbw/passwd'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** passwd (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/zbw/passwd ...
Configuration file '/etc/zbw/local_port'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** local_port (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/zbw/local_port ...
zbw_autosetup.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable zbw_autosetup
Starting zbw_connect (via systemctl): zbw_connect.service.
Setting up z-way-full (1.0-latest-version) ...
Processing triggers for systemd (232-25+deb9u12) ...
Updating FireMotD available updates count ... 2019-12-25 13:45:22,077: FireMotD: Error: Template folder doesn't exist. Upgrading from an older version? Please run make again or run the install function "FireMotD -I -v".
Server setup itself seems to be done.
Cont'd from https://github.com/130s/hut_10sqft/issues/404#issuecomment-569486220. Reopening.
Not sure why I reopened. z-way server itself has been running ok on rpi2.
Not sure where else I posted but for the record, I've spent tons of time in getting z-way software (along with RazBerry
, the hardware) work but I concluded z-way is unusable for me. In https://github.com/130s/hut_10sqft/issues/402 another server/driver software will be evaluated.
Contd from https://github.com/130s/hut_10sqft/issues/330