zoneminder in a container - Can't open memory map file /dev/shm/zm.mmap.2

bread-baker

Member
Mar 6, 2010
432
0
16
solved: zoneminder in a container - Can't open memory map file /dev/shm/zm.mmap.2

I get this error in syslog:
Code:
FAT [Can't open memory map file /dev/shm/zm.mmap.2

could someone point me in the direction to get that fixed?

thanks!
 
Last edited:
this was not a proxmox issue, the problem was the zoneminder package not ready to use /run .

to fix it I did this
Code:
mkdir /run/shm  ; chown www-data /run/shm

I also did this to get around /run issue :
Code:
mkdir /run/lock

this system was made from ubuntu-11.04-standard_11.04-1_amd64.tar.gz , which I updated to 11.11 in order to use a more recent zoneminder. so the issue may not have been a zm bug, as in a kvm installed with 11.11 Ubuntu iso, I did not have the issue.

In any case I do have zoneminder working in a container.
 
Last edited:
OK I also ran into this using Debian Wheezy .

this may be a ubuntu/debian zoneminder package bug, so I'll try to post info there.
 
Here, I'm running Zoneminder 1.24.2 on Debian Squeeze on openvz without problem if this can help.
 
I guess my post was not clear. I ran in to the same issues regarding /run on wheezy as ubuntu 11.11 . permissions were not set right on /dev/shm , and it is probably a bug to be reported to the zoneminder packagers.