Zones on Console UI always says 0

Current Development version likely to have breaking changes
Post Reply
jubishop
Posts: 9
Joined: Mon May 13, 2024 3:44 pm

Zones on Console UI always says 0

Post by jubishop »

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
Screenshot 2024-05-13 at 1.14.38 PM.png (278.58 KiB) Viewed 6561 times
jubishop
Posts: 9
Joined: Mon May 13, 2024 3:44 pm

Re: Zones on Console UI always says 0

Post by jubishop »

My logs are good except it does occasionally say "Monitor 4 has incorrect zone_count 0 != 1" (insert any Monitor number)
jubishop
Posts: 9
Joined: Mon May 13, 2024 3:44 pm

Re: Zones on Console UI always says 0

Post by jubishop »

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...
adam.robertson
Posts: 6
Joined: Tue Mar 25, 2025 2:19 pm

Re: Zones on Console UI always says 0

Post by adam.robertson »

I am having this same issue. Were you able to resolve it?

I am running 1.37 on Debian Bookworm
dougmccrary
Posts: 1370
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Zones on Console UI always says 0

Post by dougmccrary »

I may be mis-remembering, but I think when I saw this, going into the zone and saving it again corrected the count.
adam.robertson
Posts: 6
Joined: Tue Mar 25, 2025 2:19 pm

Re: Zones on Console UI always says 0

Post by adam.robertson »

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
Post Reply