I am a linux noob that has been trying to get zm up and running on gentoo for quite a while now with no luck. I have mysql and apache with php working well. I have a Logitech Quickcam 4000 Pro running well with module pwcx providing 640x480 with no problems in xawtv.
I am able to open the web interface to zm, but cannot get a green light on "function." The following is from my syslog. I don't know where to go from here. Any suggestions?
Dec 28 07:01:49 linux zms[5560]: INF [Debug Level = 0, Debug Log = ]
Dec 28 07:01:49 linux zms[5560]: INF [Got 1 monitors]
Dec 28 07:01:49 linux zms[5560]: INF [monitor purpose=0]
Dec 28 07:01:49 linux zms[5560]: INF [shm.size=92160448]
Dec 28 07:01:49 linux zms[5560]: ERR [Shared memory not initialised by capture daemon]
Dec 28 07:01:50 linux zmu[5562]: ERR [Shared memory not initialised by capture daemon]
Dec 28 07:01:53 linux zmu[5567]: ERR [Shared memory not initialised by capture daemon]
Dec 28 08:28:09 linux zms[5644]: INF [Debug Level = 0, Debug Log = ]
Dec 28 08:28:09 linux zmu[5645]: ERR [Shared memory not initialised by capture daemon]
Dec 28 08:28:10 linux zms[5644]: INF [Got 1 monitors]
Dec 28 08:28:10 linux zms[5644]: INF [monitor purpose=0]
Dec 28 08:28:10 linux zms[5644]: INF [shm.size=92160448]
Dec 28 08:28:10 linux zms[5644]: ERR [Shared memory not initialised by capture daemon]
Dec 28 08:28:13 linux zmu[5651]: ERR [Shared memory not initialised by capture daemon]
shared memory not initialized - QC 4000 Pro
-
- Posts: 5
- Joined: Sun Dec 28, 2003 2:59 pm
-
- Posts: 5
- Joined: Sun Dec 28, 2003 2:59 pm
Re: shared memory not initialized - QC 4000 Pro
Here is some additional info from my apache2 error_log:
[Sun Dec 28 06:59:48 2003] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/zm/favicon.ico
[Sun Dec 28 07:01:49 2003] [error] [client 127.0.0.1] Premature end of script headers: zms, referer: http://localhost/zm.php?view=watchfeed&m$
[Sun Dec 28 08:28:10 2003] [error] [client 127.0.0.1] Premature end of script headers: zms, referer: http://localhost/zm.php?view=watchfeed&m$
[Sun Dec 28 06:59:48 2003] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/zm/favicon.ico
[Sun Dec 28 07:01:49 2003] [error] [client 127.0.0.1] Premature end of script headers: zms, referer: http://localhost/zm.php?view=watchfeed&m$
[Sun Dec 28 08:28:10 2003] [error] [client 127.0.0.1] Premature end of script headers: zms, referer: http://localhost/zm.php?view=watchfeed&m$
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: shared memory not initialized - QC 4000 Pro
Hi Jim,
I suspect the important errors occured before those you list in your first log. They are almost sure to be either a problem with your kernel not configured to allow enough shared memory or a video configuration problem (try turning STRICT_VIDEO_CONFIG off). Check earlier in your log and try the shared memory tweaks detailed in the troubleshooting section of the README.
If you don't get anywhere with that come back here and let me know.
Cheers,
Phil,
I suspect the important errors occured before those you list in your first log. They are almost sure to be either a problem with your kernel not configured to allow enough shared memory or a video configuration problem (try turning STRICT_VIDEO_CONFIG off). Check earlier in your log and try the shared memory tweaks detailed in the troubleshooting section of the README.
If you don't get anywhere with that come back here and let me know.
Cheers,
Phil,
-
- Posts: 5
- Joined: Sun Dec 28, 2003 2:59 pm
Re: shared memory not initialized - QC 4000 Pro
I am out of my league dealing with shared memory. Here is the output of ipcs -l. Does it tell you anything useful?
bash-2.05b# ipcs -l
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 131072
max total shared memory (kbytes) = 536870912
min seg size (bytes) = 1
bash-2.05b# ipcs -l
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 131072
max total shared memory (kbytes) = 536870912
min seg size (bytes) = 1
-
- Posts: 5
- Joined: Sun Dec 28, 2003 2:59 pm
Re: shared memory not initialized - QC 4000 Pro
Here is what bash tells me while xawtv is running. The picture is great.
bash-2.05b# xawtv -f
This is xawtv-3.86, running on Linux/i686 (2.6.0-test11)
/dev/v4l/video0 [v4l]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
Xlib: extension "GLX" missing on display ":0.0".
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=7): Invalid argument
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=5): Invalid argument
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=4): Invalid argument
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=1): Invalid argument
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=13): Invalid argument
ioctl: VIDIOCSYNC(int=0): Interrupted system call
The last line is where I exited xawtv. I went farther back in time in syslog looking for errors as you suggested and didn't see anything. Any thoughts?
bash-2.05b# xawtv -f
This is xawtv-3.86, running on Linux/i686 (2.6.0-test11)
/dev/v4l/video0 [v4l]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
Xlib: extension "GLX" missing on display ":0.0".
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=7): Invalid argument
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=5): Invalid argument
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=4): Invalid argument
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=1): Invalid argument
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=13): Invalid argument
ioctl: VIDIOCSYNC(int=0): Interrupted system call
The last line is where I exited xawtv. I went farther back in time in syslog looking for errors as you suggested and didn't see anything. Any thoughts?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: shared memory not initialized - QC 4000 Pro
Hi Jim,
Try 'ipcs -m' rather than 'ipcs -l'.
Also I've put a FAQ up about shared memory, have a look there and see if any of that helps.
Cheers,
Phil,
Try 'ipcs -m' rather than 'ipcs -l'.
Also I've put a FAQ up about shared memory, have a look there and see if any of that helps.
Cheers,
Phil,
-
- Posts: 5
- Joined: Sun Dec 28, 2003 2:59 pm
Re: shared memory not initialized - QC 4000 Pro
Thanks for your help. I should have mentioned earlier that I followed your README advice on shared memory prior to submitting my first post. I am not receiving "Can't shmget" errors. Here is some add'l info.
bash-2.05b# cat /proc/sys/kernel/shmall
134217728
bash-2.05b# cat /proc/sys/kernel/shmmax
134217728
bash-2.05b# ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
I assume there should be data under each of these columns, but there is not. What does that mean?
bash-2.05b# cat /proc/sys/kernel/shmall
134217728
bash-2.05b# cat /proc/sys/kernel/shmmax
134217728
bash-2.05b# ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
I assume there should be data under each of these columns, but there is not. What does that mean?