Ever-increasing monitor ids?

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
User avatar
Bluemax
Posts: 121
Joined: Wed Jun 12, 2019 5:15 pm

Ever-increasing monitor ids?

Post by Bluemax »

When i add/del/add a monitor the monitor id is ever increasing (1, 2, 3...) even though the ids are free after deleting the previous monitor. If you do this some time you'll get some weird numbering in the console (2x cameras, ids 2 + 6 for example). Is it possible to get back to id 1 or the last free id (when adding a new camera)?

Or am i missing something to flush/purge properly?
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Ever-increasing monitor ids?

Post by bbunge »

Nope. Just the way it works. To avoid this just disable a monitor you no longer want and reuse it for the next camera. Easy enough to delete its old events.
User avatar
Bluemax
Posts: 121
Joined: Wed Jun 12, 2019 5:15 pm

Re: Ever-increasing monitor ids?

Post by Bluemax »

Ok, thanks for the feedback.
User avatar
iconnor
Posts: 2880
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Ever-increasing monitor ids?

Post by iconnor »

There is actually a case to be made for re-using id's. The multi-port case. It is annoying to have to keep allocating ports as the id #'s go up. I have made a few modifications to ease re-using id's, expect more in 1.35.
wallacebw
Posts: 9
Joined: Mon Mar 29, 2021 9:30 pm

Re: Ever-increasing monitor ids?

Post by wallacebw »

Ha!

Just spent the better part of an hour trying to setup a new camera that was throwing

Code: Select all

PHP message: ERR [Socket /run/zoneminder/zms-956776s.sock does not exist
turns out that i didn't add the new port to the webserver (nginx in my case)

+1 on implementing this, because I am now skipping several ports due to my troubleshooting.

:oops: :roll:
wallacebw
Posts: 9
Joined: Mon Mar 29, 2021 9:30 pm

Re: Ever-increasing monitor ids?

Post by wallacebw »

May also be worth adding here:

https://zoneminder.readthedocs.io/en/la ... window-etc

Would have saved me an hour and kept me from banging my head against the desk
Post Reply