When I create a new monitor and manually select a deleted monitor ID, it appears to save (twice) but it does not show up. What am I doing wrong?
zoneminder-1.37.50-1.104.20240130gitg517652907.fc39.x86_64
Regards,
Mark
Reuse Deleted Monitor IDs
-
- Posts: 1336
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: Reuse Deleted Monitor IDs
I just cloned one of mine in 1.37.50~20240208144613-jammy, and it showed up at the bottom of my console...
Re: Reuse Deleted Monitor IDs
It does if you leave the ID as automatic. It picks the next available ID and it goes at the bottom. I chose the ID manually, one that was deleted. It did not show up.dougmccrary wrote: ↑Mon Feb 12, 2024 2:06 am I just cloned one of mine in 1.37.50~20240208144613-jammy, and it showed up at the bottom of my console...
Regards,
Mark
-
- Posts: 1336
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: Reuse Deleted Monitor IDs
No, my next was 25. I selected 12 and it came up 12 at the bottom.
Ah -
But yes, there is some messiness there. I can only reuse ones suggested below the ID field, and apparently only once, even after a reboot.
There was a temporary browser problem, but I think that will resolve when this is fixed.
Ah -
But yes, there is some messiness there. I can only reuse ones suggested below the ID field, and apparently only once, even after a reboot.
There was a temporary browser problem, but I think that will resolve when this is fixed.
Re: Reuse Deleted Monitor IDs
We don't actually delete monitors anymore. We just mark them deleted. SO it may have silently failed because there is still a record at that id. This is why we list some available ids in the ui
Re: Reuse Deleted Monitor IDs
In the ID, I can pick any ID. My use case is I replaced my camera #1 that had issues with another that is the same as a later ID camera and I want the new Camera #1 to be listed first. So, I cloned a later ID and want it to replace #1. It does seem that #1 has been edited, as if I do the following, I can get the result I want.
I select the check box for another monitor, and select Clone.
I manually choose ID #1. Note, all IDs can be chosen, not just the deleted or unused ones.
I select Save and it does appear to save that data in ID #1. It stays on the editing screen and I select Save again. It silently fails and there is an error in the log that the ID was used.
I then manually enter this in the location bar: https://<IP Address>/zm/index.php?view=monitor&mid=1
It shows #1, saying it is deleted, and allows me to say undelete. I undelete and the monitor with new data is there.
Regards,
Mark
I select the check box for another monitor, and select Clone.
I manually choose ID #1. Note, all IDs can be chosen, not just the deleted or unused ones.
I select Save and it does appear to save that data in ID #1. It stays on the editing screen and I select Save again. It silently fails and there is an error in the log that the ID was used.
I then manually enter this in the location bar: https://<IP Address>/zm/index.php?view=monitor&mid=1
It shows #1, saying it is deleted, and allows me to say undelete. I undelete and the monitor with new data is there.
Regards,
Mark
-
- Posts: 1336
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: Reuse Deleted Monitor IDs
OK, marklg!
I see that works. I was mislead because I recently had to rebuild my 1.37, and the monitor IDs I used were actually empty at first, as listed below the ID field.
Good to know.
I see that works. I was mislead because I recently had to rebuild my 1.37, and the monitor IDs I used were actually empty at first, as listed below the ID field.
Good to know.