Page 1 of 1

Can't update apps

Posted: 27 Jul 2018 04:14
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)

Re: Can't update apps

Posted: 27 Jul 2018 19:56
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?

Re: Can't update apps

Posted: 27 Jul 2018 21:01
by PoltoS
Looks you are using some of the beta v2.3.8. Please confirm

Re: Can't update apps

Posted: 27 Jul 2018 23:28
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.

Re: Can't update apps

Posted: 28 Jul 2018 01:21
by PoltoS
It should be with libraries. Start the s/w in shell and look in the stderr

Re: Can't update apps

Posted: 28 Jul 2018 03:06
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?

Re: Can't update apps

Posted: 31 Jul 2018 09:59
by spotifywebplayer
I having same problem.

Re: Can't update apps

Posted: 15 Nov 2018 13:20
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 :)

Re: Can't update apps

Posted: 13 May 2020 14:02
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?