error when deleting events

Forum for questions and support relating to the 1.24.x releases only.
Locked
jsbsmd
Posts: 10
Joined: Mon Aug 08, 2011 10:13 pm

error when deleting events

Post by jsbsmd »

running zm 1.24.4 on ubuntu 10.04

Is there a way from a command line to delete all events from a specific camera?
I have 6200 events, and when i try to view all so i can delete them, I get the following error.

The website encountered an error while retrieving http: //192.168.0.191/zm/index.php?view=events&page=0&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=2&sort_field=StartTime&sort_asc=1&limit=. It may be down for maintenance or configured incorrectly.


I can however delete 1 page at a time.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: error when deleting events

Post by bb99 »

Can't give you a definitive reason why but my simple answer was to change "WEB_EVENTS_PER_PAGE" to 4000.
Attachments
web.png
web.png (57.63 KiB) Viewed 2024 times
jsbsmd
Posts: 10
Joined: Mon Aug 08, 2011 10:13 pm

Re: error when deleting events

Post by jsbsmd »

thanks, i ended up doing a filter search and that was able to list all 6000 events, which i could then delete.

maybe this is a bug?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Re: error when deleting events

Post by jameswilson »

Not a bug it will be a php timeout issue. Your logs will confirm.
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Locked