Page 1 of 2

logrotate z-way-server has wrong file mode

Posted: 14 Sep 2019 13:11
by ibjr
After installing R3.0.0 the log file var/log/z-way-server does not rotate anymore so the file keeps growing in size over time.
It turns out that the mode of file /etc/logrotate.d/z-way-server is 0664.
Logrotate requires file mode 0644 or 0444

Manually changing the file mode solves the problem, but maybe this can be included in the installation scripts?

Re: logrotate z-way-server has wrong file mode

Posted: 14 Sep 2019 13:48
by micky1500
I knew it was broken, as I had a file exceeding 900MB

sudo chmod 0644 /etc/logrotate.d/z-way-server

Thankyou to ibjr

Re: logrotate z-way-server has wrong file mode

Posted: 16 Sep 2019 23:18
by PoltoS
Thanks for the tip. Will become part of 3.0.1

Re: logrotate z-way-server has wrong file mode

Posted: 25 Oct 2019 13:26
by himac
PoltoS wrote:
16 Sep 2019 23:18
Thanks for the tip. Will become part of 3.0.1
Hi, it is still not working in 3.0.1

Re: logrotate z-way-server has wrong file mode

Posted: 25 Oct 2019 20:31
by PoltoS
Looks like. 3.0.2 then ;) soon

Re: logrotate z-way-server has wrong file mode

Posted: 01 May 2020 20:41
by micky1500
After upgrading to 3.0.6 using web UI
logfile is not rotating and getting large >300MB
same issue as before
after 3.0.6 -rw-rw-r-- 1 root root 231 Apr 28 02:03 z-way-server 01/05/2020
ran chmod, now -rw-r--r-- 1 root root 231 Apr 28 02:03 z-way-server

sudo chmod 0644 /etc/logrotate.d/z-way-server

Re: logrotate z-way-server has wrong file mode

Posted: 03 May 2020 00:12
by PoltoS
Group write access affects logrotate?

Re: logrotate z-way-server has wrong file mode

Posted: 03 May 2020 00:17
by micky1500
seems so, it wasn't working since 3.0.6
I did the old fix, sudo chmod 0644 /etc/logrotate.d/z-way-server
now its working.

Re: logrotate z-way-server has wrong file mode

Posted: 14 Jun 2020 22:45
by PoltoS
Hm.. deb package postinst file contains chmod 644 /etc/logrotate.d/z-way-server.... Since v3.0.2

Re: logrotate z-way-server has wrong file mode

Posted: 15 Jun 2020 21:47
by micky1500
I just looked in z-way-3.0.6_armhf.deb (downloaded on 28th April 2020) Extracting with 7-Zip
Found the file. C:\Z-Wave\Firmware\z-way-3.0.6_armhf.deb\data.tar\.\etc\logrotate.d\z-way-server
and the 'mode' column shows it with permissions -rw-rw-r--

All other files in the PI4 logrotate folder are set with permissions -rw-r--r-- (644)
and they work.