Can't install apps: "Failed to install the app"

Discussions about RaZberry - Z-Wave board for Raspberry computer
AlphaX2
Posts: 110
Joined: 25 Jul 2015 15:03

Can't install apps: "Failed to install the app"

Post by AlphaX2 » 08 Jan 2017 14:40

Hi guys,

in the last couple of days I'm experiencing problems with app downloads. I get the error mentioned in the headline: "Failed to install the app". Checking with Firefox Tools - it seems the Z-Way app server is responding with response code 500 for internal server error.

Interestingly it seems that not all apps are affected, some can be downloaded without any problems, some were downloadable after multiple tries. :?:

Any idea, help or advice?

Thank you very much!

User avatar
PoltoS
Posts: 4302
Joined: 26 Jan 2011 19:36

Re: Can't install apps: "Failed to install the app"

Post by PoltoS » 10 Jan 2017 22:44

Log?

AlphaX2
Posts: 110
Joined: 25 Jul 2015 15:03

Re: Can't install apps: "Failed to install the app"

Post by AlphaX2 » 10 Jan 2017 22:57

The log does not show any error messages or warnings. Just normal:
[2017-01-10 20:52:35.353] [core] Installing app PeriodicallySwitchController ...
[2017-01-10 20:52:49.778] [core] Installing app FireProtection ...


But in both cases the app will not install and it's showing the "Failed to install the app" Window at the default UI.

User avatar
PoltoS
Posts: 4302
Joined: 26 Jan 2011 19:36

Re: Can't install apps: "Failed to install the app"

Post by PoltoS » 10 Jan 2017 23:24

hm.. need more debugging info... something like "strace -fp <z-way-pid> -e trace=file" during installation. Just to gues where is the problem.

AlphaX2
Posts: 110
Joined: 25 Jul 2015 15:03

Re: Can't install apps: "Failed to install the app"

Post by AlphaX2 » 11 Jan 2017 00:12

This ist the output:
~ $ sudo strace -fp 4600 -e trace=file
Process 4600 attached with 11 threads
[pid 4610] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
Process 6339 attached
Process 6340 attached
[pid 6340] open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 12
[pid 6340] open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 12
[pid 6340] stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=47, ...}) = 0
[pid 6340] +++ exited with 0 +++
[pid 6339] +++ exited with 0 +++
Here pops the error message up, some seconds later this is flowding in to the terminal:
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4609] open("automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 11
[pid 4609] rename("automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json.tmp", "automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json") = 0
[pid 4609] open("automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 11
[pid 4609] rename("automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json.tmp", "automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json" <unfinished ...>
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4611] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 4609] <... rename resumed> ) = 0
[pid 4609] open("automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 11
[pid 4609] rename("automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json.tmp", "automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json") = 0

User avatar
PoltoS
Posts: 4302
Joined: 26 Jan 2011 19:36

Re: Can't install apps: "Failed to install the app"

Post by PoltoS » 11 Jan 2017 00:44

Hm.. looks it do not even start unpacking it - means it falls somewhaere in network problem. For example failed to download file. Can you check with wireshark? or tcpdump. It should connect to our server and download the file, but for some reason looks it does not.

AlphaX2
Posts: 110
Joined: 25 Jul 2015 15:03

Re: Can't install apps: "Failed to install the app"

Post by AlphaX2 » 11 Jan 2017 01:37

As mentioned earlier I've checked with Firefox some details:

https://picload.org/image/rogaioco/bild ... -1023-.png
https://picload.org/image/rogaiocc/bild ... -1023-.png
https://picload.org/image/rogaiocp/bild ... -1023-.png

Maybe it's helpful? Will also check with your mentioned tools.

User avatar
PoltoS
Posts: 4302
Joined: 26 Jan 2011 19:36

Re: Can't install apps: "Failed to install the app"

Post by PoltoS » 11 Jan 2017 01:49

No, it is not. The problem is on the server side, not on client. So we need to get traces from the server. If you can provide remote access via "Remote support" feature, we can try ti diagnose this

AlphaX2
Posts: 110
Joined: 25 Jul 2015 15:03

Re: Can't install apps: "Failed to install the app"

Post by AlphaX2 » 11 Jan 2017 01:55

I don't know if I used tcpdump the right way, but got a dump file for fire app with this command:
tcpdump -i eth0 -s 0 -w output_fire_app.dump tcp port 8083
The funny thing is: my first try was the Christmas Lights app, but this time it worked/downloaded (have also this dump file).

Remote (support) access is enabled.
Attachments
output_fire_app.dump.zip
tcpdump from failing fire situation app
(1.5 KiB) Downloaded 55 times

User avatar
PoltoS
Posts: 4302
Joined: 26 Jan 2011 19:36

Re: Can't install apps: "Failed to install the app"

Post by PoltoS » 11 Jan 2017 09:36

oh, don't filter by 8083. We need to see Z-Way requesting the module. I propose to do instead "port not 22" to remove all SSH traffic.

We need your login/password/id to access. Please send on support@ or via PM

Post Reply