zm trying to connect to an old (deleted) monitor

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
jschwalbe
Posts: 4
Joined: Sun Aug 23, 2020 8:50 pm

zm trying to connect to an old (deleted) monitor

Post by jschwalbe »

Hi, I was browsing my logs for another reason, and saw that zm is still trying to connect to a monitor that's been deleted and re-added.

It's under zmc_m1 and it's spamming the log with this over and over:

Code: Select all

2020-12-19 16:26:50	zmc_m1		14842	ERR	Unable to open input rtsp://login:pw@192.168.25.183/Streaming/channels/101 due to: Server returned 401 Unauthorized (authorization failed)	zm_ffmpeg_camera.cpp	394
2020-12-19 16:27:20	zmc_m1		14842	ERR	Failed to prime capture of initial monitor	zmc.cpp	257
I've no idea where to find out about getting this removed, but 192.168.25.183 is a real camera on my network, so I can't believe hammering it with rtsp requests every 10 seconds is healthy for it.

For what it's worth, heading to https://serverIP:8443/zm/index.php?view=monitor&mid=1 is blank (i.e. empty forms).

Help?
jschwalbe
Posts: 4
Joined: Sun Aug 23, 2020 8:50 pm

Re: zm trying to connect to an old (deleted) monitor

Post by jschwalbe »

Sorry, forgot to mention: running v1.34.19 in the dlandon container.

thanks!
User avatar
burger
Posts: 475
Joined: Mon May 11, 2020 4:32 pm

Re: zm trying to connect to an old (deleted) monitor

Post by burger »

So, the monitor has been deleted and re-added. Every time you add a new monitor it increments the Monitor # (Monitors - Id in the DB). Therefore the new monitor is probably Id 2 or 3, and the old Monitor is somewhere in the DB as 1 still.

Connect to the DB and delete any references to the old monitor. To stop ZM before editing the DB is good practice. I would imagine you have the DB stored in its own mysql container.

https://wiki.zoneminder.com/MySQL

e.g.

Code: Select all

select * from Monitors where Id="1"\G
(confirm that it looks correct, then)
delete from Monitors where Id="1";
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Post Reply