Cannot create zm.mmap.1 ; zmc not running
Posted: Wed Dec 31, 2014 4:27 pm
I built a Fedora 20 image (VM based) in order to test a new install of 1.28. I need to update two 1.24.2 servers and am going total new install, rather than upgrade (will keep the old archives elsewhere). I used the helpful packages from zmrepo at connortechnology, specifically zoneminder-1.28.0-3 . I followed instructions to a tee and everything went smooth.
Issue: zoneminder is unable to start zmc capture, and the logs all point to (repeats every few seconds when zmc tries to start):
ERR [Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running.] seems to be the operative issue, to me.
SElinux is disabled (verified), I've already adjusted kernel.shmmax to 512MB. I chose one AXIS camera to test and it is up and running (I can view it direct from the VM in a web browser) and I am using the exact same configuration info that works in my 1.24.2 server, where that camera is being monitored and recorded.
I've tried what I can and I am stumped. I have even nuked the whole VM image and created a new one (with fresh install) to be sure my previous attempts at fixing it didn't cause problems. New VM - same problem.
As a hint that might help, I manually created a zero-loaded zm.mmap.1 file (dd'd zeros into it) and zmwatch actually saw it and complained it was not the right size. When I did a restart of zoneminder, the file was removed. So I know ZM is seeing /dev/shm and can at least read/delete (which implies write).
Any ideas where to look next? Any idea why zmc is failing on start? Also, anyone have a handy list of exit codes for the various processes, just in case exit code 127 means something I cannot discover without chasing through source?
Thanks in advance.
Issue: zoneminder is unable to start zmc capture, and the logs all point to (repeats every few seconds when zmc tries to start):
Code: Select all
Started Video security and surveillance system.
INF [Scanning for events]
INF [Watchdog starting]
INF [Watchdog pausing for 30 seconds]
INF [Starting pending process, zmc -m 1]
INF ['zmc -m 1' starting at 14/12/31 07:33:54, pid = 3108]
INF ['zmc -m 1' started at 14/12/31 07:33:54]
ERR ['zmc -m 1' exited abnormally, exit status 127]
ERR [Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running.]
SElinux is disabled (verified), I've already adjusted kernel.shmmax to 512MB. I chose one AXIS camera to test and it is up and running (I can view it direct from the VM in a web browser) and I am using the exact same configuration info that works in my 1.24.2 server, where that camera is being monitored and recorded.
I've tried what I can and I am stumped. I have even nuked the whole VM image and created a new one (with fresh install) to be sure my previous attempts at fixing it didn't cause problems. New VM - same problem.
As a hint that might help, I manually created a zero-loaded zm.mmap.1 file (dd'd zeros into it) and zmwatch actually saw it and complained it was not the right size. When I did a restart of zoneminder, the file was removed. So I know ZM is seeing /dev/shm and can at least read/delete (which implies write).
Any ideas where to look next? Any idea why zmc is failing on start? Also, anyone have a handy list of exit codes for the various processes, just in case exit code 127 means something I cannot discover without chasing through source?
Thanks in advance.