Size of Log file

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
luhrern
Posts: 15
Joined: 12 Aug 2019 18:01

Size of Log file

Post 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.
Attachments
no_open.jpg
no_open.jpg (560.24 KiB) Viewed 2432 times
could_not.jpg
could_not.jpg (262.63 KiB) Viewed 2432 times
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: Size of Log file

Post 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
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
luhrern
Posts: 15
Joined: 12 Aug 2019 18:01

Re: Size of Log file

Post by luhrern »

Dear micy1500

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