Issues getting ZoneMinder started

Support and queries relating to all previous versions of ZoneMinder
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Issues getting ZoneMinder started

Post by ajpalm »

Hi there,

I'm having a few setup issues with ZM. I've got a four port BT878 chipset card thats installed. I've got a cam hooked upto one of the inputs, but can't seem to get a picture.

A few errors that I have are

ZoneMinder Console - Stopped (start) - v0.9.15

I can't start the console in the webserver, or can I get it working at all.

I'm getting these errors in my /var/log/messages

Sep 4 23:14:47 localhost zmu[4264]: ERR [Shared memory not initialised by capture daemon]
Sep 4 23:14:50 localhost zmu[4266]: ERR [Shared memory not initialised by capture daemon]
Sep 4 23:14:50 localhost zmu[4268]: ERR [Shared memory not initialised by capture daemon]
Sep 4 23:14:50 localhost zmu[4270]: ERR [Shared memory not initialised by capture daemon]

When I issue a zmc --device 0 I get the following

Sep 4 23:21:11 localhost zmc-d0[4700]: INF [Debug Level = 0, Debug Log = ]
Sep 4 23:21:11 localhost zmc-d0[4700]: INF [Got 5 monitors]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [X:0]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [Y:0]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [W:640]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [H:480]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [P:4]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [D:24]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [B:32512]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [h:32768]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [Cl:40960]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [Cn:0]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [vmb.frames = 2]
Sep 4 23:21:12 localhost zmc-d0[4700]: INF [vmb.size = 1843216]
Sep 4 23:21:12 localhost kernel: ov511.c: Invalid channel (3)
Sep 4 23:21:12 localhost zmc-d0[4700]: ERR [Failed to get camera source: Invalid argument]

Any tips would be great.

Andrew
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Issues getting ZoneMinder started

Post by ajpalm »

I should add I'm running Redhat 9.0
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Issues getting ZoneMinder started

Post by zoneminder »

Hi Andrew,

Can you tell me how you have set up your devices? Are they /dev/video0-4 or one device with multiple channels? Also, which card are you using?

Cheers,

Phil,
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Issues getting ZoneMinder started

Post by ajpalm »

Hi Phil,

It appears to be installed as /dev/video0 but I also have /dev/video1-3 but they don't do anywhere.

I've tried setting up cams on /dev/video0 with ports 0 to 3, and tried setting up /dev/video0-3 as well.

Its not even saving a picture.

Is there any way to test from the command line? I don't have X installed. If I could test from the command line a way to save the picture, I should be right.

I also have tried using a Creative Webcam III but it doesn't appear to install as a /dev/video port.
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Issues getting ZoneMinder started

Post by ajpalm »

Anyone?
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Issues getting ZoneMinder started

Post by ajpalm »

Anyone?
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Issues getting ZoneMinder started

Post by ajpalm »

Ok some more playing, after I removed the card and restart the system and reinstalled the card and restarted it installed it to /dev/video1 rather than /dev/video0.

I've now changed my monitor ports and appear to get something a little better. I have a screen capture (once, its not updating in the web side of things since 20 mins ago).

Any more hints?


Sep 9 20:41:25 localhost zmu[4904]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:26 localhost zmu[4906]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:35 localhost zmu[4908]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:35 localhost zmu[4910]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:35 localhost zmu[4912]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:36 localhost zmu[4914]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:45 localhost zmu[4916]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:45 localhost zmu[4918]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:46 localhost zmu[4920]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:46 localhost zmu[4922]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:55 localhost zmu[4925]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:55 localhost zmu[4927]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:55 localhost zmu[4929]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:55 localhost zmu[4931]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:55 localhost zmu[4933]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:56 localhost zmu[4935]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:56 localhost zmu[4937]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:56 localhost zmu[4939]: ERR [Can't shmget: Permission denied]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Debug Level = 0, Debug Log = ]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Got 4 monitors]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [X:0]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Y:0]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [W:320]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [H:240]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [P:1]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [D:8]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [B:32768]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [h:32768]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Cl:32512]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Cn:27648]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [vmb.frames = 4]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [vmb.size = 8519680]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [C:3]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [F:0]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Fl:2]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [T:2]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [X:0]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Y:0]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [W:320]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [H:240]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [P:1]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [D:8]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [B:32768]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [h:32768]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Cl:32512]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Cn:27648]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [monitor mode=1]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [shm.size=7680448]
Sep 9 20:41:59 localhost zmc-d1[4941]: INF [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port4 has function 3]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port4 LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port4 IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Got 1 zones for monitor Port4]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Initialised zone 10/All - 1 - 320x240 - Rgb:ff0000, AT:25, MnAP:2304, MxAP:57600, FB:3x3, MnFP:2304, MxFP:57600, MnBS:1536, MxBS:0, MnB:1, MxB:0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Loaded monitor 10(Port4), 1 zones]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [monitor mode=1]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [shm.size=7680448]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port3 has function 3]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port3 LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port3 IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Got 1 zones for monitor Port3]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Initialised zone 9/All - 1 - 320x240 - Rgb:ff0000, AT:25, MnAP:2304, MxAP:57600, FB:3x3, MnFP:2304, MxFP:57600, MnBS:1536, MxBS:0, MnB:1, MxB:0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Loaded monitor 9(Port3), 1 zones]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [monitor mode=1]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [shm.size=7680448]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port2 has function 3]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port2 LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port2 IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Got 1 zones for monitor Port2]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Initialised zone 8/All - 1 - 320x240 - Rgb:ff0000, AT:25, MnAP:2304, MxAP:57600, FB:3x3, MnFP:2304, MxFP:57600, MnBS:1536, MxBS:0, MnB:1, MxB:0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Loaded monitor 8(Port2), 1 zones]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [monitor mode=1]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [shm.size=7680448]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port1 has function 3]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port1 LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Monitor Port1 IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Got 1 zones for monitor Port1]
Sep 9 20:42:00 localhost zmc-d1[4941]: INF [Initialised zone 7/All - 1 - 320x240 - Rgb:ff0000, AT:25, MnAP:2304, MxAP:57600, FB:3x3, MnFP:2304, MxFP:57600, MnBS:1536, MxBS:0, MnB:1, MxB:0]
Sep 9 20:42:01 localhost zmc-d1[4941]: INF [Loaded monitor 7(Port1), 1 zones]
Sep 9 20:42:01 localhost zmc-d1[4941]: INF [Starting Capture]
Sep 9 20:42:05 localhost zmu[4943]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:06 localhost zmu[4945]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:06 localhost zmu[4947]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:06 localhost zmu[4949]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:06 localhost zmu[4951]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:06 localhost zmu[4953]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:06 localhost zmu[4955]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:07 localhost zmu[4957]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:07 localhost zmu[4959]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:08 localhost zmu[4961]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:09 localhost zmu[4963]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:09 localhost zmu[4965]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:09 localhost zmu[4967]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:09 localhost zmu[4969]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:09 localhost zmu[4971]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:09 localhost zmu[4973]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:09 localhost zmu[4975]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:13 localhost zmu[4977]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:13 localhost zmu[4979]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:14 localhost zmu[4981]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:14 localhost zmu[4983]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:14 localhost zmu[4985]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:14 localhost zmu[4987]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:14 localhost zmu[4989]: ERR [Can't shmget: Permission denied]
Sep 9 20:42:14 localhost zmu[4991]: ERR [Can't shmget: Permission denied]
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Issues getting ZoneMinder started

Post by ajpalm »

This help as well? Takes a long time to start ZM

Sep 9 20:49:56 localhost zm: Starting ZoneMinder:
Sep 9 20:49:57 localhost su(pam_unix)[2423]: session opened for user apache by (uid=0)
Sep 9 20:49:57 localhost su(pam_unix)[2423]: session closed for user apache
Sep 9 20:49:58 localhost su(pam_unix)[2429]: session opened for user apache by (uid=0)
Sep 9 20:49:58 localhost zmfix[2430]: INF [Debug Level = 0, Debug Log = ]
Sep 9 20:49:58 localhost zmfix[2430]: INF [Resetting permissions on /dev/video1 to 20606]
Sep 9 20:49:58 localhost su(pam_unix)[2429]: session closed for user apache
Sep 9 20:49:58 localhost su(pam_unix)[2432]: session opened for user apache by (uid=0)
Sep 9 20:50:08 localhost su(pam_unix)[2432]: session closed for user apache
Sep 9 20:50:08 localhost su(pam_unix)[2466]: session opened for user apache by (uid=0)
Sep 9 20:50:19 localhost su(pam_unix)[2466]: session closed for user apache
Sep 9 20:50:19 localhost su(pam_unix)[2484]: session opened for user apache by (uid=0)
Sep 9 20:50:30 localhost su(pam_unix)[2484]: session closed for user apache
Sep 9 20:50:30 localhost su(pam_unix)[2502]: session opened for user apache by (uid=0)
Sep 9 20:50:41 localhost su(pam_unix)[2502]: session closed for user apache
Sep 9 20:50:41 localhost su(pam_unix)[2520]: session opened for user apache by (uid=0)
Sep 9 20:50:51 localhost su(pam_unix)[2520]: session closed for user apache
Sep 9 20:50:51 localhost su(pam_unix)[2540]: session opened for user apache by (uid=0)
Sep 9 20:51:02 localhost su(pam_unix)[2540]: session closed for user apache
Sep 9 20:51:02 localhost su(pam_unix)[2596]: session opened for user apache by (uid=0)
Sep 9 20:51:13 localhost su(pam_unix)[2596]: session closed for user apache
Sep 9 20:51:13 localhost su(pam_unix)[2615]: session opened for user apache by (uid=0)
Sep 9 20:51:23 localhost su(pam_unix)[2615]: session closed for user apache
Sep 9 20:51:23 localhost su(pam_unix)[2633]: session opened for user apache by (uid=0)
Sep 9 20:51:34 localhost su(pam_unix)[2633]: session closed for user apache
Sep 9 20:51:34 localhost su(pam_unix)[2651]: session opened for user apache by (uid=0)
Sep 9 20:51:45 localhost su(pam_unix)[2651]: session closed for user apache
Sep 9 20:51:45 localhost su(pam_unix)[2669]: session opened for user apache by (uid=0)
Sep 9 20:51:55 localhost su(pam_unix)[2669]: session closed for user apache
Sep 9 20:51:55 localhost su(pam_unix)[2687]: session opened for user apache by (uid=0)
Sep 9 20:52:06 localhost su(pam_unix)[2687]: session closed for user apache
Sep 9 20:52:06 localhost su(pam_unix)[2705]: session opened for user apache by (uid=0)
Sep 9 20:52:17 localhost su(pam_unix)[2705]: session closed for user apache
Sep 9 20:52:17 localhost su(pam_unix)[2723]: session opened for user apache by (uid=0)
Sep 9 20:52:27 localhost su(pam_unix)[2723]: session closed for user apache
Sep 9 20:52:27 localhost su(pam_unix)[2741]: session opened for user apache by (uid=0)
Sep 9 20:52:38 localhost su(pam_unix)[2741]: session closed for user apache
Sep 9 20:52:38 localhost zm:
Sep 9 20:52:38 localhost rc: Starting zm: succeeded
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Issues getting ZoneMinder started

Post by zoneminder »

Hi Andrew,

The shmget errors are a little odd.

Can you answer the folowing questions,
1) Which version ZM are you running?
2) Are you running in authenticated mode?
3) Can you do an 'ipcs -m' (as root to be on the safe side) and post it here?

Cheers,

Phil,
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Issues getting ZoneMinder started

Post by ajpalm »

Hi Phil,

Thanks for your help, My answers are

1) v0.9.15 as per the webpage and I know I downloaded the lastest build

2) No I'm not running authenticated mode, my box is behind a firewall and its internal only (for the moment, till I get it working)

3) Sure can, the results seem strange, as last time I did it, I had quite a bit more...

[root@matrix root]# ipcs -m

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x007a201c 0 root 700 7680448 1
0x007a2017 32769 root 700 7680448 1

[root@matrix root]#

I'm running the bog standard Redhat 9, no X installed.

Andrew
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Issues getting ZoneMinder started

Post by ajpalm »

Update on the issues.

I removed the database and started again, including a 'make' again to make sure everything is fine.

my ipcs shows

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7a6d2001 0 root 700 3840248 1
0x7a6d2002 32769 apache 700 3840248 0

------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 65536 apache 600 1
0x00000000 98305 apache 600 1
0x00000000 131074 apache 600 1

------ Message Queues --------
key msqid owner perms used-bytes messages

and I'm now getting this in the /var/log/messages

Sep 14 23:16:35 localhost zmc-d0[5429]: INF [Got 1 zones for monitor Port1]
Sep 14 23:16:35 localhost zmc-d0[5429]: INF [Initialised zone 1/All - 1 - 320x240 - Rgb:ff0000, AT:25, MnAP:2304, MxAP:57600, FB:3x3, MnFP:2304, MxFP:57600, MnBS:1536, MxBS:0, MnB:1, MxB:0]
Sep 14 23:16:35 localhost zmc-d0[5429]: INF [Loaded monitor 1(Port1), 1 zones]
Sep 14 23:16:35 localhost zmc-d0[5429]: INF [Starting Capture]
Sep 14 23:16:39 localhost zmu[5431]: ERR [Can't shmget: Permission denied]
Sep 14 23:16:40 localhost zmu[5436]: ERR [Can't shmget: Permission denied]
Sep 14 23:16:42 localhost zmu[5438]: ERR [Can't shmget: Permission denied]
Sep 14 23:16:43 localhost zmu[5442]: ERR [Can't shmget: Permission denied]
Sep 14 23:16:43 localhost zmu[5444]: ERR [Can't shmget: Permission denied]
Sep 14 23:17:52 localhost zmfix[5490]: INF [Debug Level = 0, Debug Log = ]
Sep 14 23:17:52 localhost zmfix[5490]: INF [Resetting permissions on /dev/video0 to 20606]
Sep 14 23:17:53 localhost zmc-d0[5429]: INF [Port1: 1000 - Capturing at 12.82 fps]
Sep 14 23:18:52 localhost zmu[5593]: ERR [Can't shmget: Permission denied]
Sep 14 23:18:52 localhost zmu[5595]: ERR [Can't shmget: Permission denied]
Sep 14 23:18:52 localhost zmu[5597]: ERR [Shared memory not initialised by capture daemon]
Sep 14 23:18:52 localhost zmu[5599]: ERR [Shared memory not initialised by capture daemon]
Sep 14 23:18:55 localhost zmu[5601]: ERR [Can't shmget: Permission denied]
Sep 14 23:18:55 localhost zmu[5603]: ERR [Shared memory not initialised by capture daemon]
Sep 14 23:18:57 localhost zmu[5605]: ERR [Can't shmget: Permission denied]
Sep 14 23:18:57 localhost zmu[5607]: ERR [Shared memory not initialised by capture daemon]
Sep 14 23:18:58 localhost zmu[5609]: ERR [Can't shmget: Permission denied]
Sep 14 23:18:59 localhost zmu[5611]: ERR [Shared memory not initialised by capture daemon]
Sep 14 23:19:02 localhost zmu[5613]: ERR [Can't shmget: Permission denied]
Sep 14 23:19:02 localhost zmu[5615]: ERR [Shared memory not initialised by capture daemon]
Sep 14 23:19:02 localhost zmu[5617]: ERR [Can't shmget: Permission denied]
Sep 14 23:19:02 localhost zmu[5619]: ERR [Shared memory not initialised by capture daemon]
Sep 14 23:19:05 localhost zmu[5621]: ERR [Can't shmget: Permission denied]
Sep 14 23:19:11 localhost zmc-d0[5429]: INF [Port1: 2000 - Capturing at 12.82 fps]
Sep 14 23:20:29 localhost zmc-d0[5429]: INF [Port1: 3000 - Capturing at 12.82 fps]

I've also installed X onto my box and tested the card setup with xawtv and its working correctly.
User avatar
tech_fixer
Posts: 132
Joined: Tue Jul 29, 2003 3:07 pm

Re: Issues getting ZoneMinder started

Post by tech_fixer »

Sometimes, starting the ZoneMinder daemons can get a little tricky when starting from the interface.

Try shutting down all ZoneMinder Daemons by doing "zmpkg.pl stop" on a command shell. Afterwards, do "zmpkg.pl start" to get all daemons running. This will make all daemons run as root and have the needed access to the shared memory segments.

0x7a6d2002 32769 apache 700 3840248 0
The number 700 on the line above means that only the user owner can read/write/execute from that shared memory segment. No other users can access it. Perhaps it should be 770? Hopefully Phillip with take a look at this for the next version.

Regards,
Jose Rodriguez
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Issues getting ZoneMinder started

Post by ajpalm »

Hi Jose,

I've down a reboot of the server, and then issued the zmpkg.pl stop and then a zmpkg.pl start.

I don't see the zmc or zma processes running in the background, I have to start them by hand from a command prompt. Once I do this I can view a picture on the camera, but when events are logged they don't get saved to the events web folder.

I can see the events, but they come up as broken images.

I'm using Redhat 9.0, which a lot of people seem to be having issues with.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Issues getting ZoneMinder started

Post by zoneminder »

Hi Andrew,

Can you have a look through the various ZM logs (in /tmp by default) and see if there's anything suspcious in there.

Cheers,

Phil,
User avatar
tech_fixer
Posts: 132
Joined: Tue Jul 29, 2003 3:07 pm

Re: Issues getting ZoneMinder started

Post by tech_fixer »

First, are you doing "zmpkg.pl" as root? If not, give it a try.

Now, here's a quick and dirty hack I used to get rid of the shared memory permissions problems...
1. On the ZM source tree go to directory "src"
2. There, edit the file zm_monitor.cpp line 87, I believe. Look for "IPC_CREAT|0700".
3. Edit the 0700 and change it to 0777. Now, I'm not so sure about the security implications of this, but lets do it just for testing purposes. Maybe 0770 is a better option?
4. Recompile and re-install.

I run RH9 and the only problem I've got after this fix is not being able to start the processes from the interface. But I believe that was addressed on another thread on this forum.

Regards,
Jose Rodriguez.
Locked