Page 1 of 1

ZM does not create memory map files

Posted: Sun Jan 09, 2011 4:31 pm
by colbec
Compiled zm from source in Opensuse 11.3 with --enable-mmap.
Files are not created in /dev/shm/.zm.mmap.* but they are deleted when created for zm, and I close zm down..

zmwatch reports -

ERR [Can't open memory map file '/dev/shm/.zm.mmap.7': No such file or directory]

So if I create (touch) the file I then get

ERR [Can't open memory map file '/dev/shm/.zm.mmap.7': Permission denied]

chmod 777 in /dev/shm/.zm.mmap.*

and the errors stop, but there is still no image in ZM.

Look familiar to anybody?

Posted: Tue Jan 11, 2011 4:08 am
by midian
I just spent a week wrestling with this error and thought I would share the solution to my problem in case it helps. In my case, the issue was that the installer and "make uninstall" really don't work very reliably. My issue was that I had a mix of two different versions on my machine even though I had "make uninstall" between builds. The tip off is the /dev/shm file location shows in 1.24.3 as "/dev/shm/zm.mmap.x", but in 1.24.2 the location is "/dev/shm/.zm.mmap.x". The fix for me was to:

* make uninstall
* find /usr/share/perl -name 'ZoneMinder' -exec rm -R {} \;
* find /usr/local/share/perl -name 'ZoneMinder' -exec rm -R {} \;
* find /usr/lib -name 'ZoneMinder' -exec rm -R {} \;
* find /usr/local/lib -name 'ZoneMinder' -exec rm -R {} \;
* rm /dev/shm/.zm*
* rm /dev/shm/zm*

Then, make install a clean version. Don't know if this is your issue too, but hope this helps.

Posted: Tue Jan 11, 2011 5:54 pm
by colbec
Thanks for the suggestion midian, but it did not help in my case. I even cleaned out the /tmp folder of all the dead sessions and stuff.

Such a pity, I did have ZM working on this system a month ago, but after some upgrades and updates I suddenly have problems, you know how it goes.

Probably my solution is to install a precompiled version on a different machine so that I can accept the collateral damage of the dependencies which I cannot permit on this machine.

Posted: Tue Jan 11, 2011 6:46 pm
by midian
Hmm... very strange issue. I have a 11.3 box running ZM with mmap running. I did have to use CPAN for a few modules, but most of what is needed is in standards packages. I used the standard ffmpeg 0.5.x packages and then compiled ZM 1.24.2 from source. Oh, don't forget the libarch=64 and many other configuration work-arounds needed. If you need it, let me know and I can dig up the config parameters I used.

With that said, yes, zm on OpenSuse 11.3 works. However, the quality control (or lack there of) drove me nuts I just migrated my servers off Suse to Debian Squeeze. Squeeze is rock solid, far easier to setup, and overall I am extremely happy with the switch. Thus, if you are thinking of making a switch off Suse, it might be worth it.