Page 1 of 2
Upgrade failing
Posted: 23 Aug 2016 16:24
by n0ahg
Hi,
I have a new install of 2.2.3 running on a Raspberry Pi A+ with a UZB1 with license applied and when I go to the Firmware upgrade window I see the following
Error 500: Internal Server Error
CGI program sent malformed or too big (>16384 bytes) HTTP headers: []
Re: Upgrade failing
Posted: 23 Aug 2016 23:44
by n0ahg
If I start from scratch is there even a remote chance I will lose my z-way license?
Re: Upgrade failing
Posted: 24 Aug 2016 02:04
by PoltoS
Can you show logs or screenshots?
Re: Upgrade failing
Posted: 24 Aug 2016 16:15
by n0ahg
Screenshot

- Untitled.png (33.81 KiB) Viewed 12394 times
Nothing is added to /var/log/z-way-server.log when this error shows
Re: Upgrade failing
Posted: 24 Aug 2016 20:13
by pimth
I have exactly this error also. There is no entry in the log. The log ends easily. The service simply is no longer running. RPI is accessible via ssh. Top command shows no entry for Z-Way. Reboot and it runs about 6 to 8 hours. Where can I find the error? What logs should I read? Where can be the error? Have also been other versions tested. On other RPI comes the error. attempts with micro SD. I have no idea - I need a secure system. The stable running!
Re: Upgrade failing
Posted: 24 Aug 2016 20:25
by pz1
which version did you install? The latest releases v2.2.4-rc5 and rc6 are known to be unstable and not recommended
Re: Upgrade failing
Posted: 24 Aug 2016 20:49
by gsaw
try to execute following commands and see what it says
Code: Select all
cd /opt/z-way-server
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/z-way-server/libs
./z-way-server
may be stop z-way-server before
Code: Select all
sudo /etc/init.d/z-way-server stop
Re: Upgrade failing
Posted: 25 Aug 2016 18:20
by pimth
- help.zip
- 445kb
- (434.87 KiB) Downloaded 458 times
Here is my results. I do not need to stop, it was stopped. see top command.
Re: Upgrade failing
Posted: 25 Aug 2016 22:28
by PoltoS
This explains a lot:
[2016-08-25 17:06:23.781] [core] Error: can not write back config to storage: Error: Permission denied
Looks you are running from user while all folders are created by root. Can you run it from root (standard way via init scripts) and provide the log again (please, not in PDF, keep it as is)
Re: Upgrade failing
Posted: 25 Aug 2016 22:49
by pimth
very short:
pi@raspberrypi ~ $ su
Password:
root@raspberrypi:/home/pi# top
top - 21:47:14 up 1 min, 2 users, load average: 1.41, 0.48, 0.17
Tasks: 91 total, 1 running, 90 sleeping, 0 stopped, 0 zombie
%Cpu(s): 9.8 us, 3.3 sy, 0.0 ni, 86.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 445112 total, 138428 used, 306684 free, 12004 buffers
KiB Swap: 102396 total, 0 used, 102396 free. 60288 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
457 root 20 0 133356 51004 16148 S 10.5 11.5 0:27.00 z-way-server
696 root 20 0 5120 2420 2020 R 1.6 0.5 0:00.24 top
622 ntp 20 0 5764 3672 3244 S 0.3 0.8 0:00.10 ntpd
1 root 20 0 5340 3864 2780 S 0.0 0.9 0:05.03 systemd
...
52 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset
53 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 VCHIQ-0
root@raspberrypi:/home/pi# /etc/init.d/z-way-server stop
Stopping z-way-server: done.
root@raspberrypi:/home/pi# cd /opt/z-way-server
root@raspberrypi:/opt/z-way-server# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/z-way-server/libs
root@raspberrypi:/opt/z-way-server# ./z-way-server
Z-Way version v2.2.3 from 2016-07-12 18:09:13 +0300 (build fcbcb6053bf804b759347cc77102329126eb5a26)
Looking for modules in ./modules
Module modhttp.so loaded
Module modinstaller.so loaded
Module modws.so loaded
Module modhomekit.so loaded
Module modnotification2ext.so loaded
Module modzbw.so loaded
Module modenocean.so loaded
Module modzwave.so loaded
Module modsockets.so loaded
Module moddhs.so loaded
Module modcrypto.so loaded
Using default configuration file config.xml
Error: 'debug-port' number is out of range. Skipping it.