mmap file's not being created (exit status 127)

Forum for questions and support relating to the 1.30.x releases only.
Locked
Phat32
Posts: 3
Joined: Sun Nov 06, 2016 1:35 am

mmap file's not being created (exit status 127)

Post by Phat32 »

I had a working install of Zoneminder a CentOS 6.5 install, but I couldn't load in the zmNinja API and my machine can't do 64bit so I went with Ubuntu 16.04 Server and I had nothing but issues so I abandoned that one and am where I am now.

I installed Fedora 24 Server (i386 cause my old laptop can't do 64) and I have everything working except the camera, which is only a little hinderance...

I have tried many different options like using the USB camera I was already using, setting it up as a local IP Camera with RTSP and HTTP, different camera's and just nothing is working. In the Console the source is always red. I can confirm the camera's work and they work when I use VLC to stream them as I can open the feed on my main tower.

After 2 days of fighting it and several OS reloads (I tired Ubuntu server and I didn't like it) I have gotten here

Code: Select all

Nov 05 18:30:39 TLinx zmwatch[2811]: ERR [Memory map file '/dev/shm/zm.mmap.4' does not exist.  zmc might not be running.]
Nov 05 18:30:39 TLinx zmwatch[2811]: INF [Restarting capture daemon for Monitor-4, shared data not valid]
Nov 05 18:30:39 TLinx zmdc[2749]: INF ['zmc -d /dev/video0' starting at 16/11/05 18:30:39, pid = 3121]
Nov 05 18:30:39 TLinx zmdc[3121]: INF ['zmc -d /dev/video0' started at 16/11/05 18:30:39]
Nov 05 18:30:40 TLinx zmdc[2749]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 127]
Nov 05 18:30:49 TLinx zmwatch[2811]: ERR [Memory map file '/dev/shm/zm.mmap.4' does not exist.  zmc might not be running.]
Nov 05 18:30:50 TLinx zmwatch[2811]: INF [Restarting capture daemon for Monitor-4, shared data not valid]
Nov 05 18:30:50 TLinx zmdc[2749]: INF ['zmc -d /dev/video0' starting at 16/11/05 18:30:50, pid = 3160]
Nov 05 18:30:50 TLinx zmdc[3160]: INF ['zmc -d /dev/video0' started at 16/11/05 18:30:50]
Nov 05 18:30:50 TLinx zmdc[2749]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 127]
I am not sure where to go now. Any help would be awesome. If you need any other info let me know and I will be happy to provide it.
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: mmap file's not being created (exit status 127)

Post by iconnor »

You may not have enough ram. zm tries to create a shared memory file at /dev/shm/ and /dev/shm is typically a ram disk set at a certain percentage of ram. You can set this higher, or you can reduce the # of buffers set aside under each monitor. There are a million posts along this topic, look back in the discussions here.

Changing the allocated buffers is probably your best bet. I think the defaults are a bit excessive, but it depends on your needs.
Phat32
Posts: 3
Joined: Sun Nov 06, 2016 1:35 am

Re: mmap file's not being created (exit status 127)

Post by Phat32 »

Thanks, I will give it a try. It was working with the defaults in my CentOS install, but different builds do different things

EDIT:

It did not work, I reduced the buffers very very low and still no luck. The laptop I am using has 4GB of ram and has nothing but zoneminder installed so there isn't much taking up the memory
Phat32
Posts: 3
Joined: Sun Nov 06, 2016 1:35 am

Re: mmap file's not being created (exit status 127)

Post by Phat32 »

So I gave up on the fedora for now, I think it would run better in the proper 64bit OS. I am going to try on a spare PC later this week after I pick it up and will see what happens.

Whats interesting though is I installed CentOS 6.7 and got Zoneminder fully operational inside of 30min
Locked