can't open memory map

Forum for questions and support relating to the 1.29.x releases only.
Locked
gotkneebiters
Posts: 2
Joined: Tue Sep 19, 2017 6:05 pm

can't open memory map

Post by gotkneebiters »

Hi, installed ZoneMinder 1.29.0 on my synololgynas ds214se in chroot. Used the debian jessie easy instructions here https://wiki.zoneminder.com/Debian_8_64 ... e_Easy_Way

I accidentally tried the 1.30.0 instructions here (https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way) first and then had to uninstall everything and start over with the 1.29.0. I finally got all the pieces to install and start, and I can access the web interface. I added an amcrest ip camera, but the 'source' ip address is red, and in the log it says,

2017-09-19 11:36:25.856400 zmdc 5140 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2017-09-19 11:36:25.827515 zmc_m1 5717 FAT Can't open memory map file /dev/shm/zm.mmap.1, probably not enough space free: Permission denied zm_monitor.cpp 522
2017-09-19 11:36:25.775889 undef 5717 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139
2017-09-19 11:36:25.152120 zmdc 5717 INF 'zmc -m 1' started at 17/09/19 11:36:25 zmdc.pl
2017-09-19 11:36:25.146720 zmdc 5140 INF 'zmc -m 1' starting at 17/09/19 11:36:25, pid = 5717 zmdc.pl
2017-09-19 11:36:23.572200 zmwatch 5195 INF Restarting capture daemon for AMC001BW_3Y6893, shared data not valid zmwatch.pl
2017-09-19 11:36:23.566120 zmwatch 5195 ERR Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running. zmwatch.pl
2017-09-19 11:36:13.932930 zmdc 5140 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2017-09-19 11:36:13.922430 zmc_m1 5703 FAT Can't open memory map file /dev/shm/zm.mmap.1, probably not enough space free: Permission denied zm_monitor.cpp 522

This repeats over and over.

I confess that though I am persistent, I do not have any idea how to fix this.

Also in order to get apache2 to start, I had to go in twice and kill a nginx process that was listening on port 80. After doing this, my synology web interface seems to go down until I reboot. Sorry, I think I'm in over my head here, any help is appreciated.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: can't open memory map

Post by bbunge »

A NAS is not the ideal platform for Zoneminder as it usually does not have enough memory. Try to lower the camera resolution and frame rate. 320x240 and 5 or lower FPS. I've had Zoneminder running on an old HP NAS media vault or something with a USB camera. NAS had less than 500 MEG of RAM and ran Debian 8. A second camera would not load.
gotkneebiters
Posts: 2
Joined: Tue Sep 19, 2017 6:05 pm

Re: can't open memory map

Post by gotkneebiters »

Thanks! I'll test what you've described. In theory I can't see why it could not work, since my nas comes with surveillance software which has no trouble with two cameras at reasonable resolutions, but I don't claim to know the ins and outs of how it allocates resources compared to zoneminder. The specs say it has only 256MEG of ram, so that isn't much. I just had no idea what the warning message about memory map file meant in layman's terms, so thank you for your help!
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Re: can't open memory map

Post by Baylink »

You're not even going to get out of the gate in 256MB.

I understand the attraction of using hardware you already have, but if you're serious about ZM, plan to put some hardware underneath it. I've got a dual-4 core Dell SC1430 at 2GHz with 8GB RAM, and I'm running 13 IP cams on it, 720p at 6fps, and it's borderline, running at about 1.5-2LA per core. I'd planned on something faster, but everything I had available was too noisy for the space.
Locked