Page 1 of 2

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

Posted: 08 Jan 2017 14:40
by AlphaX2
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!

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

Posted: 10 Jan 2017 22:44
by PoltoS
Log?

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

Posted: 10 Jan 2017 22:57
by AlphaX2
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.

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

Posted: 10 Jan 2017 23:24
by PoltoS
hm.. need more debugging info... something like "strace -fp <z-way-pid> -e trace=file" during installation. Just to gues where is the problem.

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

Posted: 11 Jan 2017 00:12
by AlphaX2
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

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

Posted: 11 Jan 2017 00:44
by PoltoS
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.

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

Posted: 11 Jan 2017 01:37
by AlphaX2
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.

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

Posted: 11 Jan 2017 01:49
by PoltoS
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

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

Posted: 11 Jan 2017 01:55
by AlphaX2
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.

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

Posted: 11 Jan 2017 09:36
by PoltoS
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