Page 1 of 1

Broken Image / No Picture

Posted: Sat Jul 04, 2009 1:15 pm
by johntroberts
My problem is that I get a broken image link (no picture at all) when I click on the camera name from the ZM console. I get a picture through xawtv. Both the "function" and "source" are orange in color. Also, when I run "zmc --device /dev/video0", it returns instantly, which I believe it shouldn't. I have searched both google and the ZM forums and found similar issues but am still unable to fix the problem. The most common answer I have seen is "incorrect cgi path settings". I have tried dozens of different cgi settings both in apache and ZM, but still no image. I have included my information, errors logs, and a screenshot below. Any help would be greatly appreciated.

Code: Select all

OS - Ubuntu 8.04
ZM - Version 1.22.3
Camera - Logitech QuickCam Pro 4000

Code: Select all

07/04/09 08:08:35.802982 zmdc[5551].INF ['zmc -d /dev/video' stopping at 09/07/04 08:08:35]
07/04/09 08:08:36.100552 zmdc[5551].INF [Can't find child with pid of '7720']
07/04/09 08:08:36.101319 zmdc[5551].INF ['zmc -d /dev/video' starting at 09/07/04 08:08:36, pid = 7720]
07/04/09 08:08:46.407528 zmdc[5551].INF ['zmc -d /dev/video' stopping at 09/07/04 08:08:46]
07/04/09 08:08:46.695759 zmdc[5551].INF [Can't find child with pid of '7723']
07/04/09 08:08:46.696534 zmdc[5551].INF ['zmc -d /dev/video' starting at 09/07/04 08:08:46, pid = 7723]

Code: Select all

==> /tmp/zmaudit.log <==
07/04/09 07:39:15.819113 zmaudit[5580].DBG [Found filesystem monitor '2']
07/04/09 07:39:15.826616 zmaudit[5580].DBG [Got 0 events]
07/04/09 07:54:14.966080 zmaudit[5580].DBG [Found database monitor '1']
07/04/09 07:54:14.966808 zmaudit[5580].DBG [Got 0 events]
07/04/09 07:54:14.966980 zmaudit[5580].DBG [Found database monitor '2']
07/04/09 07:54:14.967559 zmaudit[5580].DBG [Got 0 events]
07/04/09 07:54:14.967861 zmaudit[5580].DBG [Found filesystem monitor '1']
07/04/09 07:54:14.968018 zmaudit[5580].DBG [Got 0 events]
07/04/09 07:54:14.968077 zmaudit[5580].DBG [Found filesystem monitor '2']
07/04/09 07:54:14.968176 zmaudit[5580].DBG [Got 0 events]

Code: Select all

07/04/09 08:09:50.050453 zmwatch[5582].ERR [Can't read 'shared_data:size' from shared memory '7a6d2001/557068': Permission denied]
07/04/09 08:09:50.050914 zmwatch[5582].INF [Restarting capture daemon for C1, shared memory not valid]
07/04/09 08:09:50.388951 zmwatch[5582].INF ['zmc -d /dev/video' stopping at 09/07/04 08:09:50]
07/04/09 08:09:50.389806 zmwatch[5582].ERR [Can't get shared memory id '7a6d2002', 2: No such file or directory]
07/04/09 08:09:50.390062 zmwatch[5582].INF [Restarting capture daemon for C2, shared memory not valid]
07/04/09 08:09:50.733475 zmwatch[5582].INF [Can't find child with pid of '7832'] at /usr/bin/zmwatch.pl line 119
07/04/09 08:10:00.735721 zmwatch[5582].ERR [Can't read 'shared_data:size' from shared memory '7a6d2001/557068': Permission denied]
07/04/09 08:10:00.736183 zmwatch[5582].INF [Restarting capture daemon for C1, shared memory not valid]

Image


Thanks again in advance.

Posted: Sat Sep 05, 2009 2:53 pm
by JanTijssen
This is exactly the same problem I am encountering.
Same screen shot.
I don't know which error report is needed to solve my problem (as I am quit new to Linix (Ubuntu 8.04) but addicted) just let me know and I generate it for you.

Posted: Sun Sep 06, 2009 11:55 am
by cordel
Video is streamed through zms which is a web cgi, and there for run by Apache. you will find the error in the Apache error_log usually located in one of the following places or very similar depending on your distro:
/var/log/httpd
or
/var/log/apache2

Posted: Mon Sep 07, 2009 7:30 am
by JanTijssen
After start-up I get this lines in the apache2 error log at location /var/log/apache2/
[Mon Sep 07 09:14:49 2009] [notice] caught SIGWINCH, shutting down gracefully
[Mon Sep 07 09:16:35 2009] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch configured -- resuming normal operations
I have no clue what this means.

Furthermore I have found the events in /usr/share/zoneminder/events/1
The .jpg files are black with time and date stamp, so, yes, the recording was done, but no monitor.

Because I suspect this problem is a possible combination of apache and zonedminder setting I am afraid to do something because I have the feeling to be close to the solution and I am afraid to take the working part down.

For your information: I am configuring my apache2 settings with webmin.
To be more complete: I am running Ubuntu 8.04.

Till now, thank you for responding to my problem.

September 17th
In the mean time I do have the pictures. So capturing the pictures is no problem. However, still having the broken picture symbol in stead of my web-cam picture. I can access the zoneminder app. from remote PC's but same same with monitoring. In Windows it shows an red-cross.

I have found more complaints on the internet with this failure, but I have fount no solution for it.
It is very frustrating, as everything seems to be working OK but no monitor. Apparently is seem to be difficult to pin-point and solve.

September 24th
Something to do with cgi-bin.
Probably this problem is to complicated since I do not hear ideas anymore....

October, 24th
Probably nobody can solve my problem... I can't......