Page 1 of 1
Zoneminder Console - Stopped -v1.22.3
Posted: Thu Dec 07, 2006 7:14 pm
by paulandgabriela
Hi guys,
I finally managed to build and install it. I got the ****ing Logitech QuickCam Zoom working with xawtv. Configured it also in Zoneminder, my final camera's are still to be shipped.
But when I try to start zoneminder via the console it always shows stopped.
Anyone knows why?
Thanks,
Paul
Posted: Thu Dec 07, 2006 7:19 pm
by jameswilson
what happens when you type
service zm start?
also whats in your logs
have you build this or is it on one of the zm distros
Posted: Thu Dec 07, 2006 7:26 pm
by paulandgabriela
Found something I guess:
Dec 7 19:59:49 localhost zmfix[11461]: ERR [Can't stat /dev/video: Permission denied]
Dec 7 19:59:49 localhost zmdc[11465]: INF [Server starting at 06/12/07 19:59:49]
Posted: Thu Dec 07, 2006 7:52 pm
by paulandgabriela
I build it myself on Fedora Core 6. It is not a distro.
I did chmod 777 /dev/vide0 and now I get:
Dec 7 21:41:51 localhost kernel: audit(1165524111.149:4): avc: denied { write } for pid=3114 comm="zmdc.pl" name="zmdc.sock" dev=dm-0 ino=951697 scontext=system_u:system_r:httpd_t:s0 tcontext=root:object_r:tmp_t:s0 tclass=sock_file
Dec 7 21:41:52 localhost kernel: audit(1165524112.511:5): avc: denied { write } for pid=3149 comm="zmdc.pl" name="zmdc.sock" dev=dm-0 ino=951697 scontext=system_u:system_r:httpd_t:s0 tcontext=root:object_r:tmp_t:s0 tclass=sock_file
Dec 7 21:41:53 localhost kernel: audit(1165524113.076:6): avc: denied { read } for pid=3155 comm="uptime" name="utmp" dev=dm-0 ino=1146888 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file
Dec 7 21:41:53 localhost kernel: audit(1165524113.077:7): avc: denied { read } for pid=3155 comm="uptime" name="utmp" dev=dm-0 ino=1146888 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file
Posted: Thu Dec 07, 2006 7:55 pm
by cordel
Turn off SELinux.
Regards,
Corey
Posted: Thu Dec 07, 2006 8:10 pm
by paulandgabriela
Thanks,
Yes, that helped, the application now shows running and I can click on the name of the camera.. A window pops up with the name of the camera, however there is a small pictogram with a red X in it and no image to be seen
Cheers,
Paul
Posted: Thu Dec 07, 2006 8:48 pm
by paulandgabriela
This is what I get now:
Dec 7 22:46:15 localhost zmu[9872]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:16 localhost zmdc[3543]: INF [Starting pending process, zma -m 1]
Dec 7 22:46:16 localhost zmdc[3543]: INF ['zma -m 1' starting at 06/12/07 22:46:16, pid = 9878]
Dec 7 22:46:16 localhost zmdc[9878]: INF ['zma -m 1' started at 06/12/07 22:46:16]
Dec 7 22:46:16 localhost zma_m1[9878]: INF [Debug Level = 0, Debug Log = <none>]
Dec 7 22:46:16 localhost zma_m1[9878]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:16 localhost zmdc[3543]: ERR ['zma -m 1' exited abnormally, exit status 255]
Dec 7 22:46:17 localhost zmwatch[3616]: ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
Dec 7 22:46:17 localhost zmwatch[3616]: INF [Restarting capture daemon for Webcam, shared memory not valid]
Dec 7 22:46:17 localhost zmdc[3543]: INF ['zmc -d /dev/video' starting at 06/12/07 22:46:17, pid = 9882]
Dec 7 22:46:17 localhost zmwatch[3616]: INF ['zmc -d /dev/video' starting at 06/12/07 22:46:17, pid = 9882]
Dec 7 22:46:17 localhost zmdc[9882]: INF ['zmc -d /dev/video' started at 06/12/07 22:46:17]
Dec 7 22:46:17 localhost zmc_dvideo[9882]: INF [Debug Level = 0, Debug Log = <none>]
Dec 7 22:46:18 localhost zmc_dvideo[9882]: ERR [Failed to set picture attributes: Invalid argument]
Dec 7 22:46:18 localhost zmdc[3543]: ERR ['zmc -d /dev/video' exited abnormally, exit status 255]
Dec 7 22:46:19 localhost zms[9899]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:19 localhost zms[9898]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:26 localhost zmu[9902]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:27 localhost zmwatch[3616]: ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
Dec 7 22:46:27 localhost zmwatch[3616]: INF [Restarting capture daemon for Webcam, shared memory not valid]
Dec 7 22:46:28 localhost zmdc[9910]: INF ['zmc -d /dev/video' started at 06/12/07 22:46:28]
Dec 7 22:46:28 localhost zmdc[3543]: INF ['zmc -d /dev/video' starting at 06/12/07 22:46:28, pid = 9910]
Dec 7 22:46:28 localhost zmc_dvideo[9910]: INF [Debug Level = 0, Debug Log = <none>]
Dec 7 22:46:28 localhost zmwatch[3616]: INF ['zmc -d /dev/video' starting at 06/12/07 22:46:28, pid = 9910]
Dec 7 22:46:28 localhost zmc_dvideo[9910]: ERR [Failed to set picture attributes: Invalid argument]
Dec 7 22:46:28 localhost zmdc[3543]: ERR ['zmc -d /dev/video' exited abnormally, exit status 255]
Dec 7 22:46:34 localhost zms[9926]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:34 localhost zms[9928]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:37 localhost zmu[9934]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:38 localhost zmwatch[3616]: ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
Dec 7 22:46:38 localhost zmwatch[3616]: INF [Restarting capture daemon for Webcam, shared memory not valid]
Dec 7 22:46:39 localhost zmdc[3543]: INF ['zmc -d /dev/video' starting at 06/12/07 22:46:39, pid = 9941]
Dec 7 22:46:39 localhost zmdc[9941]: INF ['zmc -d /dev/video' started at 06/12/07 22:46:39]
Dec 7 22:46:39 localhost zmc_dvideo[9941]: INF [Debug Level = 0, Debug Log = <none>]
Dec 7 22:46:39 localhost zmwatch[3616]: INF ['zmc -d /dev/video' starting at 06/12/07 22:46:39, pid = 9941]
Dec 7 22:46:39 localhost zmc_dvideo[9941]: ERR [Failed to set picture attributes: Invalid argument]
Dec 7 22:46:39 localhost zmdc[3543]: ERR ['zmc -d /dev/video' exited abnormally, exit status 255]
Posted: Thu Dec 07, 2006 9:06 pm
by cordel
paulandgabriela wrote:This is what I get now:
Dec 7 22:46:34 localhost zms[9928]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:37 localhost zmu[9934]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Dec 7 22:46:38 localhost zmwatch[3616]: ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
Dec 7 22:46:38 localhost zmwatch[3616]: INF [Restarting capture daemon for Webcam, shared memory not valid]
Dec 7 22:46:39 localhost zmdc[3543]: INF ['zmc -d /dev/video' starting at 06/12/07 22:46:39, pid = 9941]
Dec 7 22:46:39 localhost zmdc[9941]: INF ['zmc -d /dev/video' started at 06/12/07 22:46:39]
Dec 7 22:46:39 localhost zmc_dvideo[9941]: INF [Debug Level = 0, Debug Log = <none>]
Dec 7 22:46:39 localhost zmwatch[3616]: INF ['zmc -d /dev/video' starting at 06/12/07 22:46:39, pid = 9941]
Dec 7 22:46:39 localhost zmc_dvideo[9941]: ERR [Failed to set picture attributes: Invalid argument]
Dec 7 22:46:39 localhost zmdc[3543]: ERR ['zmc -d /dev/video' exited abnormally, exit status 255]
See the README or the FAQ in the Wiki
Regards,
Corey
Posted: Fri Dec 08, 2006 11:38 pm
by paulandgabriela
Hi Corey,
Thanks for your support till now. I looked into the shared memory:
When looking at the shared memory:
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 0 root 644 790528 2 dest
0x00000000 32769 root 644 790528 2 dest
0x00000000 65538 root 644 790528 2 dest
0x00000000 163843 root 600 393216 2 dest
0x00000000 196612 root 600 393216 2 dest
0x00000000 229381 root 600 393216 2 dest
0x00000000 262150 root 600 393216 2 dest
0x00000000 294919 root 600 393216 2 dest
0x00000000 327688 root 600 393216 2 dest
0x00000000 360457 root 600 393216 2 dest
0x00000000 393226 root 600 393216 2 dest
0x00000000 425995 root 600 393216 2 dest
0x00000000 458764 root 600 393216 2 dest
0x00000000 491533 root 600 393216 2 dest
0x7a6d2001 557070 apache 700 18433028 0
The entry 0x7a6d2001 is the one for ZoneMinder. However the odd thing is that compared with the rest the NATTCH=0 and Status=blank does not correspond with the rest???
There is also a similar post being:
ZoneMinder Forum Index -> Hardware Compatibility List->Logitech QuickCam Messenger
I suspect him to have the same kind of problem. I have put the image size 640x480 and RGB24
I do not have a clue what it means but at least it is odd.
This is the result of the ZMU command:
[root@localhost ~]# zmu -d /dev/video0 -q -v
Video Capabilities
Name: Logitech QuickCam Zoom
Type: 1
Can capture
Video Channels: 1
Audio Channels: 1
Maximum Width: 640
Maximum Height: 480
Minimum Width: 160
Minimum Height: 120
Window Attributes
X Offset: 0
Y Offset: 0
Width: 160
Height: 120
Picture Attributes
Palette: 15 - YUV 4:2:0 Planar
Colour Depth: 24
Brightness: 32256
Hue: 65535
Colour :32768
Contrast: 64512
Whiteness: 63488
Channel 0 Attributes
Name: Webcam
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
While writing this it turns out that I have to set it to YUV420P and NOT PAL
PROBLEM SOLVED!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Cheers,
Paul
Posted: Sat Dec 09, 2006 1:20 am
by cordel
paulandgabriela wrote:
Dec 7 22:46:39 localhost zmc_dvideo[9941]: ERR [Failed to set picture attributes: Invalid argument]
Yep, That would expain this error Message.
Glad you got it going.
Cheers,
Corey