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?
logrotate z-way-server has wrong file mode
Re: logrotate z-way-server has wrong file mode
I knew it was broken, as I had a file exceeding 900MB
sudo chmod 0644 /etc/logrotate.d/z-way-server
Thankyou to ibjr
sudo chmod 0644 /etc/logrotate.d/z-way-server
Thankyou to ibjr
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
Re: logrotate z-way-server has wrong file mode
Thanks for the tip. Will become part of 3.0.1
Re: logrotate z-way-server has wrong file mode
Looks like. 3.0.2 then soon
Re: logrotate z-way-server has wrong file mode
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
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
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
Re: logrotate z-way-server has wrong file mode
Group write access affects logrotate?
Re: logrotate z-way-server has wrong file mode
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.
I did the old fix, sudo chmod 0644 /etc/logrotate.d/z-way-server
now its working.
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
Re: logrotate z-way-server has wrong file mode
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
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.
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.
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38