Page 1 of 1

Can't open /dev/shm/zmswap-i00xxx.jpg: Permission denied

Posted: Tue Apr 19, 2016 12:18 am
by gcarbone
Hello all!

I just installed a brand new CentOS 7.2 system. I installed zoneminder, configured 1 camera, and even got zmNinja working with live views!

I'm now playing with the alerting capabilities, and realized that it will not playback any recordings for an event. When I click on the event, the picture shows the broken link symbol and in the logs I get the following error

Can't open /dev/shm/zmswap-i00xxx.jpg: Permission denied


where xxx can be any random number. I'm hoping someone has run into this before, because I don't see how to resolve this. FYI, the link given for the broken image is as follows, in case it helps:

https://<hostname>/cgi-bin-zm/nph-zms?source=event&mode=jpeg&event=13&frame=1&scale=100&rate=100&maxfps=5&replay=single&auth=4160200a676dc8dbd1cb1454e748e5de&connkey=131805&rand=1461024712

Any help or guidance would be appreciated.

Regards,

gcarbone

Re: Can't open /dev/shm/zmswap-i00xxx.jpg: Permission denied

Posted: Tue Apr 19, 2016 8:46 pm
by bbunge
Looks like you set your PATH_SWAP to /dev/shm

Make sure that you have just /dev/shm in the value box and that there is no trailing space. This may not be a fix for your problem but I remember something like it when I set up a ZM on Centos 7

Also make sure that you have free space in /dev/shm for 999 jpeg's and your mapped memory files.

Re: Can't open /dev/shm/zmswap-i00xxx.jpg: Permission denied

Posted: Wed Apr 20, 2016 4:41 pm
by gcarbone
BBunge,

Thank you for the suggestion. I switched the path over to a larger disk space and that seems to have resolve the problem!

Regards,

GCarbone