Running zoneminder on current Fedora 33
[edited to fix the version of Zoneminder I'm using]:
Zoneminder 1.36.1-3.fc33 rpm from rpmfusion-free-updates-testing
It looks like there is no way to manually delete database log entries via the web UI, and the auto delete of them is failing because there are too many database log entries.
What SQL commands can I use to manually delete zoneminder database log entries from the command line?
Some details:
After updating to 1.36, I ran out of disk space due to excessive logging.
I don't have the older set of log messages that caused my first out of space problems, as I had to delete them to recover and I can't use zm to get DB logs and getting DB settings is really slow, but I think it was the number of frames or such and processing not being able to keep up.
I disabled those cameras as I wanted to get the system back in working order, and I can get the exact logs later (and plan to fix whatever settings are bad) once I get the main system back and working without excessive logging.
But then there was another set of errors being logged excessively, these about 10 per second:
Code: Select all
Jun 11 07:40:47 specu zmc_m11[1158613]: ERR [zmc_m11] [Unable to free up older packets. Not queueing this video packet.]
I changed the logging option to save 1 million rows, but now I'm getting these failures about every 5 minutes, it looks like it's failing to delete the database log entries because there are too many database log entries
Code: Select all
Jun 11 08:40:17 umbrella zmstats[9023]: ERR [Failed DELETE low_priority FROM `Logs` ORDER BY `TimeKey` ASC LIMIT '18119067' :Lock wait timeout exceeded; try restarting transaction]