ZM stopped displaying RTSP camera

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
greyduk
Posts: 2
Joined: Thu Apr 01, 2021 2:47 am

ZM stopped displaying RTSP camera

Post by greyduk »

Hello,
I've read through as many forum posts as I can to try and solve this problem, but I cant seem to find anything that works.

Zoneminder had been working perfectly for several months, until the 25th of February. I was away, so I didn't take the time to troubleshoot it (zm is a backup for me for now because I have Unifi Protect for all my current cameras)

I noticed it hasn't recorded any events since that date, and can't display the camera even the probe or any other place. No thumbnails in the zone editor. The rtsp provided by unifi works in VLC. The resolution I get in VLC after actually loading the stream matches the setting in zm

the ZM /dev/shm is sitting at 100% whenever I have my one camera actually enabled. When I disable it, it goes to 0%. Re-enable - immediately back to 100%.

I've checked the zm/cgi-bin/nph-zms paths are correct, and they seem to be.

Here is the log of the errors I get:

Code: Select all

Mar 31 21:46:38 3bc120055754 zmdc[822]: INF [Starting pending process, zma -m 3]
Mar 31 21:46:38 3bc120055754 zmdc[1344]: INF ['zma -m 3' started at 21/03/31 21:46:38]
Mar 31 21:46:38 3bc120055754 zmdc[822]: INF ['zma -m 3' starting at 21/03/31 21:46:38, pid = 1344]
Mar 31 21:46:38 3bc120055754 zmc_m3[1343]: INF [zmc_m3] [Enabling ffmpeg logs, as LOG_DEBUG+LOG_FFMPEG are enabled in options]
Mar 31 21:46:38 3bc120055754 zmdc[822]: INF ['zmc -m 3' crashed, signal 6]
Mar 31 21:46:38 3bc120055754 zma_m3[1344]: ERR [zma_m3] [Shared data not initialised by capture daemon for monitor Doorbell]
Mar 31 21:46:38 3bc120055754 zmdc[822]: ERR ['zma -m 3' exited abnormally, exit status 255]
Mar 31 21:46:42 3bc120055754 zmwatch[863]: INF [Restarting capture daemon for Doorbell, shared data not valid]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF [Command 'zma -m 3' removed from pending list at 21/03/31 21:46:43]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF [Command 'zmc -m 3' removed from pending list at 21/03/31 21:46:43]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF ['zmc -m 3' starting at 21/03/31 21:46:43, pid = 1349]
Mar 31 21:46:43 3bc120055754 zmdc[1349]: INF ['zmc -m 3' started at 21/03/31 21:46:43]
Mar 31 21:46:43 3bc120055754 zmdc[1352]: INF ['zma -m 3' started at 21/03/31 21:46:43]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF ['zma -m 3' starting at 21/03/31 21:46:43, pid = 1352]
Mar 31 21:46:43 3bc120055754 zmc_m3[1349]: INF [zmc_m3] [Enabling ffmpeg logs, as LOG_DEBUG+LOG_FFMPEG are enabled in options]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF ['zmc -m 3' crashed, signal 6]
Mar 31 21:46:43 3bc120055754 zma_m3[1352]: ERR [zma_m3] [Shared data not initialised by capture daemon for monitor Doorbell]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF [Starting pending process, zmc -m 3]
Mar 31 21:46:43 3bc120055754 zmdc[1353]: INF ['zmc -m 3' started at 21/03/31 21:46:43]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF ['zmc -m 3' starting at 21/03/31 21:46:43, pid = 1353]
Mar 31 21:46:43 3bc120055754 zmdc[822]: ERR ['zma -m 3' exited abnormally, exit status 255]
Mar 31 21:46:43 3bc120055754 zmc_m3[1353]: INF [zmc_m3] [Enabling ffmpeg logs, as LOG_DEBUG+LOG_FFMPEG are enabled in options]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF [Starting pending process, zma -m 3]
Mar 31 21:46:43 3bc120055754 zmdc[1354]: INF ['zma -m 3' started at 21/03/31 21:46:43]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF ['zma -m 3' starting at 21/03/31 21:46:43, pid = 1354]
Mar 31 21:46:43 3bc120055754 zmdc[822]: INF ['zmc -m 3' crashed, signal 6]
Mar 31 21:46:43 3bc120055754 zma_m3[1354]: ERR [zma_m3] [Shared data not initialised by capture daemon for monitor Doorbell]
Mar 31 21:46:43 3bc120055754 zmdc[822]: ERR ['zma -m 3' exited abnormally, exit status 255]
I don't know what changed on February 25th, but I do know I updated the docker install sometime around then. I can't prove they're related, but it seems like the logical conclusion.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: ZM stopped displaying RTSP camera

Post by Magic919 »

None of us know what changed. I'd guess that ZM can no longer reach the camera.
-
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ZM stopped displaying RTSP camera

Post by iconnor »

zmc crashing is not good.

/dev/shm being 100% is likely the cause of crash.

Reduce imagebuffercount. Increase /dev/shm.
greyduk
Posts: 2
Joined: Thu Apr 01, 2021 2:47 am

Re: ZM stopped displaying RTSP camera

Post by greyduk »

Thank you.

The problem was I needed to change the video writer from camera passthrough to encoder. Camera passthrough worked originally, but the docker update must have changed something.
Post Reply