Zones on Console UI always says 0
Zones on Console UI always says 0
Everything is good except on the main Console UI, it says I have 0 zones for cameras when I actually have 1. I can't figure out what must be wrong in my DB or elsewhere... (note the last row on the right which is 0)
- Attachments
-
- Screenshot 2024-05-13 at 1.14.38 PM.png (278.58 KiB) Viewed 6561 times
Re: Zones on Console UI always says 0
My logs are good except it does occasionally say "Monitor 4 has incorrect zone_count 0 != 1" (insert any Monitor number)
Re: Zones on Console UI always says 0
I can open up the mysql console and they definitely have zones. I can run select queries against the monitorIds and the zones show up. And they are working. I don't get why the UI doesn't show them...
-
- Posts: 6
- Joined: Tue Mar 25, 2025 2:19 pm
Re: Zones on Console UI always says 0
I am having this same issue. Were you able to resolve it?
I am running 1.37 on Debian Bookworm
I am running 1.37 on Debian Bookworm
-
- Posts: 1370
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: Zones on Console UI always says 0
I may be mis-remembering, but I think when I saw this, going into the zone and saving it again corrected the count.
-
- Posts: 6
- Joined: Tue Mar 25, 2025 2:19 pm
Re: Zones on Console UI always says 0
Running this sql query updates all the monitor counts:
Update Monitors set ZoneCount=(SELECT COUNT(*) FROM Zones WHERE MonitorId=Monitors.Id);
..ran across that somewhere and it works, so I just have it book-marked in phpmyadmin so I can run it any time I delete/add a zone and get those log errors
Update Monitors set ZoneCount=(SELECT COUNT(*) FROM Zones WHERE MonitorId=Monitors.Id);
..ran across that somewhere and it works, so I just have it book-marked in phpmyadmin so I can run it any time I delete/add a zone and get those log errors