Can't update apps

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
rafale77
Posts: 115
Joined: 23 Jun 2018 19:26

Can't update apps

Post by rafale77 »

I see this in the log when I try to update an app in the smart home UI
And I get an error that it cannot download the update. I can however delete apps. I was suspecting that I had some folder permission issues.

[2018-07-26 18:08:11.333] [core] Installing app MailNotifier ...
[2018-07-26 18:08:11.334] [E] [HTTP] Callback execution error: ReferenceError: installer is not defined
at AutomationController.installModule (automation/classes/AutomationController.js:652:3)
at ZAutomationAPIWebRequest._.extend.updateModule (automation/ZAutomationAPIProvider.js:929:29)
at ZAutomationAPIWebRequest.ZAutomationWebRequest.handleRequest (automation/WebserverRequestRouter.js:259:35)
at automation/WebserverRequestRouter.js:32:29
at WebServer.document_root (automation/Webserver.js:35:11)
rafale77
Posts: 115
Joined: 23 Jun 2018 19:26

Re: Can't update apps

Post by rafale77 »

Actually I am seeing more errors in different areas and have tried on a brand new installation too. I am suspecting that my installation of ubuntu either has some missing folders don't have the right folder permission. Could anyone tell me what folders zway downloads to?
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Can't update apps

Post by PoltoS »

Looks you are using some of the beta v2.3.8. Please confirm
rafale77
Posts: 115
Joined: 23 Jun 2018 19:26

Re: Can't update apps

Post by rafale77 »

I am using 3.0.0 RC15. I just installed and tested 2.3.6 release after moving my config files to it and have the same problem so I doubt it is a problem with the zway itself. It is more likely due to some settings with my ubuntu install. I did not have these errors when I was on 3.0.0 RC12.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Can't update apps

Post by PoltoS »

It should be with libraries. Start the s/w in shell and look in the stderr
rafale77
Posts: 115
Joined: 23 Jun 2018 19:26

Re: Can't update apps

Post by rafale77 »

PoltoS wrote:
28 Jul 2018 01:21
It should be with libraries. Start the s/w in shell and look in the stderr
aha... found something:

Code: Select all

Looking for modules in ./modules
Failed to load module modskininstaller.so: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modskininstaller.so)
Module modcrypto.so loaded
Module modenocean.so loaded
Module modzbw.so loaded
Failed to load module modnotification2ext.so: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modnotification2ext.so)
Module moddhs.so loaded
Module modws.so loaded
Failed to load module modiconinstaller.so: /usr/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: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modhttp.so)
Module modzwave.so loaded
Module modsockets.so loaded
Failed to load module modinstaller.so: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./modules/modinstaller.so)
I checked my libraries and I do have libcurl.so.4. It is because libcurl4 is now compiled with OPENSSL_4 which standard on Ubuntu 18.04 LTS. Can you please update the modules so they can accept both 3 and 4?
spotifywebplayer
Posts: 1
Joined: 31 Jul 2018 09:53
Contact:

Re: Can't update apps

Post by spotifywebplayer »

I having same problem.
User avatar
ronie
Posts: 58
Joined: 29 Jun 2015 09:50

Re: Can't update apps

Post by ronie »

Hey guys,

if you not already stumbled over it here is a workaround taken from https://depts.washington.edu/bitblog/20 ... ntu-18-04/

which shows you how to use libcurl3 "parallel" to libcur4 on Ubuntu 18.04

following lines should do the trick:

Code: Select all

# install libcurl3
# this will temporarely overwrite/remove libcurl4 
apt-get -y install libcurl3

# Making a copy of libcurl.so.4.5.0 and rename it to libcurl3.so.4.5.0
cp /usr/lib/x86_64-linux-gnu/libcurl.so.4.5.0 /usr/lib/x86_64-linux-gnu/libcurl3.so.4.5.0

# reinstall libcurl4 - libcurl3 will be overwritten but copied file will be still there
apt-get -y install libcurl4 libcurl4-openssl-dev
after that adjust the z-way-server script to inject the following line before lib injection:

Code: Select all

# stop z-way-server
$ sudo /etc/init.d/z-way-server stop

# open init script in editor
$ sudo nano /etc/init.d/z-way-server

# add this line after: "# adding z-way libs to library path"
$env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl3.4.5.0
# next line is: "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/z-way-server/libs"
# close editor by pressing [Ctrl]+[X] > Y > [Enter]

# start z-way-server
$ sudo /etc/init.d/z-way-server start
This solves this problem for me :)
sender
Posts: 3
Joined: 10 May 2020 13:58

Re: Can't update apps

Post by sender »

Hi, found via google. I have z-way installed on ubuntu. I can't install any app.

Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-99-generic x86_64)
Tried to install mqtt app but get error.

I have tried to apply above code. but how to proceed?
Attachments
error.png
error.png (33.51 KiB) Viewed 5043 times
Post Reply