Zoneminder not working anymore after upgrade

Forum for questions and support relating to the 1.25.x releases only.
Locked
CyberAng3l
Posts: 4
Joined: Wed Feb 27, 2013 7:10 pm

Zoneminder not working anymore after upgrade

Post by CyberAng3l »

Hello,

I had a working zoneminder 1.24.2 installation on an Ubuntu 10.04 and today that I upgraded to Ubuntu 12.04 and zoneminder 1.25.0, it stopped working.
I have a a Kodikom 4400r card setup as described in the wiki here: http://www.zoneminder.com/wiki/index.php/Kodicom_4400r)
4 Analog cameras are connected on it and the error I get for all of them is this:

Code: Select all

Feb 27 21:09:26 cerberus zmdc[9011]: INF [Starting pending process, zmc -d /dev/video1]
Feb 27 21:09:26 cerberus zmdc[9011]: INF ['zmc -d /dev/video1' starting at 13/02/27 21:09:26, pid = 14026]
Feb 27 21:09:26 cerberus zmdc[14026]: INF ['zmc -d /dev/video1' started at 13/02/27 21:09:26]
Feb 27 21:09:26 cerberus zmc_dvideo1[14026]: INF [Starting Capture]
Feb 27 21:09:26 cerberus zmc_dvideo1[14026]: FAT [Failed to get picture attributes: Inappropriate ioctl for device]
Feb 27 21:09:26 cerberus zmdc[9011]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
Feb 27 21:09:26 cerberus zma_m1[11324]: WAR [Waiting for capture daemon]
Feb 27 21:09:26 cerberus zma_m2[11453]: WAR [Waiting for capture daemon]
Feb 27 21:09:26 cerberus zma_m4[11236]: WAR [Waiting for capture daemon]
Feb 27 21:09:27 cerberus zma_m1[11324]: WAR [Waiting for capture daemon]
Feb 27 21:09:27 cerberus zma_m4[11236]: WAR [Waiting for capture daemon]
Feb 27 21:09:27 cerberus zma_m2[11453]: WAR [Waiting for capture daemon]
Feb 27 21:09:28 cerberus zma_m1[11324]: WAR [Waiting for capture daemon]
Feb 27 21:09:28 cerberus zma_m4[11236]: WAR [Waiting for capture daemon]
Feb 27 21:09:28 cerberus zma_m2[11453]: WAR [Waiting for capture daemon]
Feb 27 21:09:29 cerberus zma_m1[11324]: WAR [Waiting for capture daemon]
Feb 27 21:09:29 cerberus zma_m2[11453]: WAR [Waiting for capture daemon]
....
....
This "Waiting for capture daemon" message is endless.

Xawtv is working fine.

Any ideas?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Re: Zoneminder not working anymore after upgrade

Post by jameswilson »

id say you have a config issue on your monitors. How are they set?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
CyberAng3l
Posts: 4
Joined: Wed Feb 27, 2013 7:10 pm

Re: Zoneminder not working anymore after upgrade

Post by CyberAng3l »

I did not change my working configuration after the upgrade.
Anyway, just to be sure, I removed all of my configuration, database and recorded events and made a clean installation of zoneminder but still the same problem.

I also realised something more after many tests I made...
If I change to Video For Linux version 2 (even thouth the wiki for kodikom 4400r says that you have to use V1 and that's what I was using successfully with ubuntu 10.04 and zoneminder 1.24.2), 320x240, PAL and GREY (very minimum settings comparing to PAL, RGB24 and 924x576 I was using before) I see something but it is not stable. The video is flipping between device channel 0 and 1 (I have chosen 0 so I do not know why it goes to 1 and back) and the link "/dev/video0 (0)" of my monitor is orange (instead of green.. At least not red).
The output I get then is this:

Code: Select all

Feb 27 23:53:47 cerberus zmdc[28101]: INF ['zmc -d /dev/video0' started at 13/02/27 23:53:47]
Feb 27 23:53:47 cerberus zmc_dvideo0[28101]: ERR [Got unexpected memory map file size 9217524, expected 3073524]
Feb 27 23:53:47 cerberus zmc_dvideo0[28101]: INF [Starting Capture]
Feb 27 23:53:48 cerberus zmdc[22915]: WAR [Can't find process with command of 'zma -m 1']
Feb 27 23:54:26 cerberus zmc_dvideo3[24050]: INF [Eisodos: 14000 - Capturing at 6.02 fps]
CyberAng3l
Posts: 4
Joined: Wed Feb 27, 2013 7:10 pm

Re: Zoneminder not working anymore after upgrade

Post by CyberAng3l »

OK! It looks like I made it to work but I have a few comments.

First of all, Kodikom 4400r card after the upgrade needs V4L2 to work! So the entry in the wiki is not valid for me anymore. Someone can correct this? At least remove the following part from there:
For video display in ZonEMindeR, make sure you select "Video For Linux Version 1" and the proper resolution for the camera.
Second finding: I realized that if you change the image size and consequently more memory is needed for each monitor, you get an error like this (numbers might change) and your monitors might go red, meaning they are not capturing anything:

Code: Select all

[Got unexpected memory map file size 3073524, expected 9217524]
This is related to the mmap and the files located in /dev/shm/zm.mmap.*
If you restart zoneminder, this error is fixed. It would be nice if zoneminder could remove those files and reallocate them in similar way as it did before the use of mmap without restart. This drove me crazy as I could not realize why my monitors didn't work when I increased size/buffers etc.

Third finding: With Kodikom 4400r and V4L2 that I use now, RGB24 is not working anymore for me, but BGR24 looks like its working fine :/

I did not manage to find why when I had only one monitor it would flip between a couple of different composites, but when I added all 4 monitors this stopped.

Now it looks like my zoneminder is working fine, but I will let it work for a few more days to make sure that everything works as before without any drawbacks before making the final assumption.
axelm
Posts: 46
Joined: Wed Feb 06, 2013 1:50 pm

Re: Zoneminder not working anymore after upgrade

Post by axelm »

My setup has two Kodicom 4400R cards and I had mmap problems similar to your with stock zm 1.25.

After almost giving up on zm completely I installed this branch and it works much better than stock zm 1.25.

http://www.zoneminder.com/forums/viewto ... =9&t=20587

There are still some bugs to be squashed, inherited from upstream zm.
tduncklee
Posts: 10
Joined: Sun Sep 22, 2013 2:07 am

Re: Zoneminder not working anymore after upgrade

Post by tduncklee »

CyberAng3l,

I'm having the problem where my high res monitor goes red after several hours also. I am using mmap. How did you resolve the issue?

Thanks,
TD
CyberAng3l
Posts: 4
Joined: Wed Feb 27, 2013 7:10 pm

Re: Zoneminder not working anymore after upgrade

Post by CyberAng3l »

I did nothing more than what I explain in the post above
Locked