Page 1 of 1

"Scan Network" deletes all existing camera definitions

Posted: Wed Sep 27, 2023 5:24 pm
by AllenTuttle
My Ubuntu 22.04.3 LTS updated Zoneminder, it now shows as v1.37.45.
There is a very prominent button titled "Scan Network" which quickly gave me a list of all none camera devices on my network.
That was useless so I just clicked on the 'console' option to go back to checking my cameras.

Unfortunately, all cameras are gone now, nothing filters, cycle, montage, etc.

Camera data remains in /var/cache/zoneminder/events so that is nice.... I hope.

Log console shows ZM tried to reach at least one camera as there is an error "zmc_m5 Unable to read packet from stream 0: error -5 "Input/output error"."

All the usual processes are running except zmcontrol.pl and no "zmc -m <#>"

Of course I am hoping someone has seen something like this and knows how to non destructively recover the cameras configs that "Scan Network" destroyed.
---
Bonuos issue: Scan Network has never worked for me, if I click on the Add button on that screen the response pop-up is always "No url in button"

Re: "Scan Network" deletes all existing camera definitions

Posted: Thu Sep 28, 2023 3:43 am
by dougmccrary
Bummer. I'm guessing you don't have a backup of at least the Monitors table?

Re: "Scan Network" deletes all existing camera definitions

Posted: Thu Sep 28, 2023 12:13 pm
by iconnor
It may be that they are only marked deleted in the db. We don't actually delete monitors anymore

Re: "Scan Network" deletes all existing camera definitions

Posted: Thu Sep 28, 2023 4:00 pm
by AllenTuttle
You've given me hope, thank you!
Will locate the database and see if I can figure out the proper field to edit.

Re: "Scan Network" deletes all existing camera definitions

Posted: Fri Sep 29, 2023 1:17 pm
by iconnor
Once you get to a mysql command prompt... this should do it:

UPDATE Monitors SET Deleted=false;

Re: "Scan Network" deletes all existing camera definitions

Posted: Fri Sep 29, 2023 7:43 pm
by AllenTuttle
Thank you for your perfect help.
As you had suggested each camera was set "Deleted: 1".
After running "UPDATE Monitors SET Deleted=false;" they were set "Deleted: 0" and I can get back to monitoring the activities of the Hummingbirds.
Amazing how easy it is after someone sets me on the correct path....

Re: "Scan Network" deletes all existing camera definitions

Posted: Sat Sep 30, 2023 1:15 pm
by iconnor
The question remains why they were deleted. I suspect a simple miss click but you would have to select all an then click Delete... which seems unlikely...

If you have some nice footage of hummingbirds, would be nice to see and or use to train AI. Care to post some?