Page 1 of 1

Size of Log file

Posted: 29 Jul 2021 21:32
by luhrern
I have recently (210721) updated one of my razberry's to version 3.1.4. The program reported that the process was successful.

Rigth after the update I get a lot of messages reading "Could Not Post to InfluxDB statistics". See enclosed file for information. However the Razberry do post transactions to my InfluxDB instance. Have set up a 5 min interval and this has worked for 2 yeasr now without any problem. Using the "InfluxDb Statistics Collector" by Maros.

Curious to check the log file I go into the Razberry and search for the log file. This is approximately 2 MB large, and will not open. I suspect that it should not bit that huge. See enclosed file for information.

Reaching out for support.

Re: Size of Log file

Posted: 30 Jul 2021 14:01
by micky1500
There were issues where logrotate didn't work on older versions. 3.02 to 3.06
PoltoS has fixed it for later versions.

After you upgraded it should have archived the logfile within a few days. (z-way-server.log.1.gz)
Maybe 2.0Gb is too large for it to archive it.

Easiest option is to delete the old logfile. Or Split the file up and then delete the 2.0Gb file. (split --help)

sudo /etc/init.d/z-way-server stop
Delete the File
sudo /etc/init.d/z-way-server start

After a few days the archives should start appearing.

To test it :-
sudo logrotate --force /etc/logrotate.d/z-way-server

Re: Size of Log file

Posted: 01 Aug 2021 08:54
by luhrern
Dear micy1500

Thank you for your advice, I will stop the controller and delete the log file.