Page 1 of 1
[b3213] Daily BackupData routine only runs once after CMX restart
Posted: Wed 16 Nov 2022 4:31 am
by chrishudson
I have recently noticed that the daily BackupData routine only runs the first night after starting CMX. Subsequent nights the BackupData routine is not triggered. I turned Debugging on for a couple of days and have attached the resulting MXDiag file.
Does anyone else have this issue or is it unique to my setup?
Re: [b3213] Daily BackupData routine only runs once after CMX restart
Posted: Wed 16 Nov 2022 10:25 am
by mcrossley
It looks like it is running ok...
Code: Select all
2022-11-14 00:00:14.088 BackupData: Creating backup folder backup/daily/20221114000000/
..
2022-11-14 00:00:14.140 Created backup folder backup/daily/20221114000000/
Those two messages are output at the start and end of the backup process and no errors are flagged.
Re: [b3213] Daily BackupData routine only runs once after CMX restart
Posted: Wed 16 Nov 2022 10:31 am
by flort
It doesn't run for him on subsequent days. I've checked my log and it generates the backup at 5 seconds after midnight every day without fail.
Re: [b3213] Daily BackupData routine only runs once after CMX restart
Posted: Wed 16 Nov 2022 11:47 am
by mcrossley
Ah, yes!
Very odd, I've tried to trace what is happening, but it's a bit tricky as so many processes, even so I cannot see a cause for this.
The CPU temperature stops being displayed after this entry...
Code: Select all
2022-11-14 09:06:01.197 Current CPU temp = 84.9°C
That rPi is running hot!
The CPU temp is the last thing done the daily backup. But I cannot see anything in the log that indicates any sort of failure before the CPU temp is not run the following minute. The CPU temp code is in its own try/catch so if it fails it would output an error message to the log. As that is not happening it means the code isn't getting that far.
As an aside, the VP2 logger interval is set to 30 minutes, and CMX to 10 mins. That will cause a long delay at each start-up of CMX as it must process the entire logger contents each time.