Problems installing Z-Way Server on ubuntu 20.04 server LTS

Discussions about Z-Way software and Z-Wave technology in general
Hogan
Posts: 7
Joined: 11 May 2020 14:46

Problems installing Z-Way Server on ubuntu 20.04 server LTS

Post by Hogan »

hi,

system: ubuntu 20.04 LTS Server - fresh install - ( sudo apt-get update and sudo apt-get upgrade done…)

i followed this guide. (Installed system is 64-Bit)

libcrypto.so.1.0.0 was missing so:

zway@zway:/opt/z-way-server$ sudo cp /snap/core18/1754/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/

This all ends up in

Code: Select all

zway@zway:/opt/z-way-server$ LD_LIBRARY_PATH=./libs ./z-way-server
Z-Way version v3.0.6 from 2020-04-28 13:52:20 +0300 (build 82a4fd59993dc610c06507351714f95f21475262)
Looking for modules in ./modules
SSL DEBUG LOCK: 20 > 1
SSL DEBUG LOCK: 20 > 0
SSL DEBUG LOCK: 20 > 1
SSL DEBUG LOCK: 20 > 0
Module modcrypto.so loaded
Module modenocean.so loaded
Failed to load module modiconinstaller.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modiconinstaller.so)
Module modhomekit.so loaded
Failed to load module modhttp.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modhttp.so)
Failed to load module modskininstaller.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modskininstaller.so)
Failed to load module modinstaller.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modinstaller.so)
Module moddhs.so loaded
Module modsockets.so loaded
Failed to load module modws.so: libssl.so.1.0.0: cannot open shared object file: No such file or directory
Module modzwave.so loaded
Failed to load module modnotification2ext.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modnotification2ext.so)
Module modzbw.so loaded
Using default configuration file config.xml
Error: 'debug-port' number is out of range. Skipping it.
Failed to open log file: 13
[2020-05-11 11:56:15.877] [I] [core] Executing script: /*** Z-Way Home Automation Engine main executable ***************************** ...
[2020-05-11 11:56:15.877] [I] [core] Executing script: // Comon utilities and functions ...
[2020-05-11 11:56:15.878] [I] [core] Executing script: // This script transforms old formats to new ...
cat: /etc/z-way/box_type: No such file or directory
[2020-05-11 11:56:15.886] [I] [core] Executing script: /*! EventEmitter2 https://github.com/hij1nx/EventEmitter2 Copyright (c) 2013 hij1nx Licensed under the MIT license.*/ ...
[2020-05-11 11:56:15.889] [I] [core] Executing script: //     Underscore.js 1.8.3 ...
[2020-05-11 11:56:15.892] [I] [core] Executing script: /*! Papa Parse v4.1.2 https://github.com/mholt/PapaParse */ ...
[2020-05-11 11:56:15.896] [I] [core] Executing script: /* @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ ...
[2020-05-11 11:56:15.898] [I] [core] Executing script: // BAOS_API_2011_01_29_001 ...
[2020-05-11 11:56:15.899] [I] [core] Executing script: // Converts IntelHex into binary 128 kB file ...
[2020-05-11 11:56:15.899] [I] [core] Executing script: // Public domain version of Base64 encoder/decoder found somewhere in the Internet ...
[2020-05-11 11:56:15.899] [I] [core] Executing script: /* ...
[2020-05-11 11:56:15.899] [I] [core] Executing script: /*** Z-Way HA Virtual Device base class *************************************** ...
[2020-05-11 11:56:15.900] [I] [core] Executing script: /*** Z-Way DevicesCollection class ************************************ ...
[2020-05-11 11:56:15.903] [I] [core] Executing script: /*** Z-Way HA Controller class module ***************************************** ...
[2020-05-11 11:56:15.903] [I] [core] Executing script: /*** Automation Webserver Auth Controller ************************************* ...
[2020-05-11 11:56:15.903] [I] [core] Executing script: /*** Z-Way HA Automation module base class ************************************ ...
[2020-05-11 11:56:15.904] [I] [core] Executing script: /*** Initialize Webserver and Handlers ***************************************** ...
[2020-05-11 11:56:15.905] [E] [core] result: Error: ReferenceError: WebServer is not defined
    at automation/Webserver.js:10:10
    at automation/main.js:91:2
[2020-05-11 11:56:15.905] [E] [core] result: Error: Error: Uncaught ReferenceError: WebServer is not defined
    at Error (native)
    at automation/main.js:91:2
Seems that a lot more libs are missing.

What are the prerequisites for the zway server? ZwayManual does not hint at any in Section 3.2.1


Cheers

Hogan

rafale77
Posts: 115
Joined: 23 Jun 2018 19:26

Re: Problems installing Z-Way Server on ubuntu 20.04 server LTS

Post by rafale77 »

all your problems seem to stem from the CURL_OPENSSL_3 which has been deprecated by ubuntu since version 18.x. You need to either force install lib curl.so.3 or try running this on ubuntu 16... or maybe have z-way-server support curl4

Hogan
Posts: 7
Joined: 11 May 2020 14:46

Re: Problems installing Z-Way Server on ubuntu 20.04 server LTS

Post by Hogan »

Yes .… ZWay-server support for curl4 would be the solution that fixes the problem. Till then i'm using a 16.X version of ubuntu… or i go back to my raspi.

sender
Posts: 3
Joined: 10 May 2020 13:58

Re: Problems installing Z-Way Server on ubuntu 20.04 server LTS

Post by sender »

How to proceed with ubuntu 18 fresh install and have curl4 uninstalled and curl3 installed? I tried but ubuntu is not letting me.

Hogan
Posts: 7
Joined: 11 May 2020 14:46

Re: Problems installing Z-Way Server on ubuntu 20.04 server LTS

Post by Hogan »

sender wrote:
13 May 2020 14:08
How to proceed with ubuntu 18 fresh install and have curl4 uninstalled and curl3 installed? I tried but ubuntu is not letting me.
It's working on ubuntu 16.4.

What i did:

Fresh install.
sudo apt-get update
sudo apt-get upgrade

Followed the guide without the service script.

ZWay-Server is running.

I will now apply the service script……

If you fix it on 18.x i guess it's fixed on 20.x, but hey ZWay devs…. upgrade to curl4 and the problems are gone… ;)


Hogan
Posts: 7
Joined: 11 May 2020 14:46

Re: Problems installing Z-Way Server on ubuntu 20.04 server LTS

Post by Hogan »

I followed this guide but on 20.04 server on a fresh install it's stillnot working.

i get this after doing the steps in the guide:

Code: Select all

sudo LD_LIBRARY_PATH=./libs LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl3.4.5.0 ./z-way-server
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libcurl3.4.5.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
./z-way-server: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
after

Code: Select all

sudo cp /snap/core18/1705/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/
i get this:

Code: Select all

sudo LD_LIBRARY_PATH=./libs LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl3.4.5.0 ./z-way-server
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libcurl3.4.5.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Z-Way version v3.0.6 from 2020-04-28 13:52:20 +0300 (build 82a4fd59993dc610c06507351714f95f21475262)
Looking for modules in ./modules
SSL DEBUG LOCK: 20 > 1
SSL DEBUG LOCK: 20 > 0
SSL DEBUG LOCK: 20 > 1
SSL DEBUG LOCK: 20 > 0
Module modcrypto.so loaded
Module modzwave.so loaded
Module modhomekit.so loaded
Failed to load module modhttp.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modhttp.so)
Failed to load module modws.so: libssl.so.1.0.0: cannot open shared object file: No such file or directory
Failed to load module modnotification2ext.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modnotification2ext.so)
Module modzbw.so loaded
Failed to load module modskininstaller.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modskininstaller.so)
Failed to load module modinstaller.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modinstaller.so)
Module moddhs.so loaded
Module modsockets.so loaded
Failed to load module modiconinstaller.so: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modiconinstaller.so)
Module modenocean.so loaded
Using default configuration file config.xml
Error: 'debug-port' number is out of range. Skipping it.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libcurl3.4.5.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libcurl3.4.5.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
cat: /etc/z-way/box_type: No such file or directory
Not working via service either:

Code: Select all

cat /etc/systemd/system/z-way-server.service
# /etc/systemd/system/z-way-server.service
#       systemctl enable z-way-server
#       systemctl start z-way-server
#       journalctl -f
[Unit]
 Description=z-way server
 Wants=network-online.target
 After=network-online.target

[Service]
Type=simple
# User= Group=owntracks
WorkingDirectory=/opt/z-way-server
Environment='LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/z-way-server/libs' 'LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl3.4.5.0'
ExecStart=/opt/z-way-server/z-way-server
Restart=always
RestartSec=15
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=z-way-server

[Install]
WantedBy=multi-user.target

Hogan
Posts: 7
Joined: 11 May 2020 14:46

Re: Problems installing Z-Way Server on ubuntu 20.04 server LTS

Post by Hogan »

Correted the typo to LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl3.so.4.5.0 but stillnot working


Further problem ist that libcurl3 has no longer a install-candidate on ubuntu 20.X. It seems that one has to add a 16.X repo and install it from there….

Hogan
Posts: 7
Joined: 11 May 2020 14:46

Re: Problems installing Z-Way Server on ubuntu 20.04 server LTS

Post by Hogan »

Ok got it working on ubuntu 20.04

In /etc/apt/sources.list i added

Code: Select all

#Ubuntu 18.X Repo
deb http://cz.archive.ubuntu.com/ubuntu bionic main universe
Then

Code: Select all

sudo apt-get install libcurl3 -y
worked. From there on i followed the linked guide.

Hogan
Posts: 7
Joined: 11 May 2020 14:46

Re: Problems installing Z-Way Server on ubuntu 20.04 server LTS

Post by Hogan »

Ok.... so now i have errors in the webui with the remote access app.

In the log:

Code: Select all

cat: /etc/z-way/box_type: No such file or directory
cat: /etc/z-way/box_type: No such file or directory
... this seems to be hard rice.... :(

Post Reply