Can't see streaming images

Support and queries relating to all previous versions of ZoneMinder
Locked
ldenegri
Posts: 3
Joined: Wed Apr 09, 2008 12:36 pm

Can't see streaming images

Post by ldenegri »

Hi,

I'm testing zm 1.23.2 on Debian Linux (Etch).
I compiled and installed the software and everything seems to be working fine, except for the fact that when I click on monitor name (webcam1 in my case) I can't see the video stream from the camera, but only the icon of a broken picture link. If I click on "zones" in the same window, I can see a still image from my webcam.

I know there's a FAQ about this problem, but it doesn't apply to my case, because
1) I don't use Explorer, but Firefox (2.0.0.13) and
2) nph-zms is in the right directory (/usr/lib/cgi-bin)

http://janis/cgi-bin/nph-zms

Server: ZoneMinder Video Server/1.23.2
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Wed, 09 Apr 2008 13:54:25 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache

this is the configure line I used:
./configure --with-webdir=/var/www/zoneminder --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-ffmpeg=/usr/local ZM_DB_USER=root ZM_DB_PASS=<passwd>

The webcam is a Logitech QuickCam Pro 4000 and it works with other software

This is what I see in /var/log/syslog from when I start zoneminder until I open the window with the video streaming:

Apr 9 16:12:01 localhost zmpkg[29469]: INF [Command: start]
Apr 9 16:12:01 localhost zmdc[29476]: INF [Server starting at 08/04/09 16:12:01]
Apr 9 16:12:05 localhost zmdc[29498]: INF ['zmc -d /dev/video0' started at 08/04/09 16:12:05]
Apr 9 16:12:05 localhost zmdc[29476]: INF ['zmc -d /dev/video0' starting at 08/04/09 16:12:05, pid = 29498]
Apr 9 16:12:05 localhost zmc_dvideo0[29498]: INF [Debug Level = 0, Debug Log = <none>]
Apr 9 16:12:05 localhost zmdc[29476]: INF ['zmfilter.pl' starting at 08/04/09 16:12:05, pid = 29504]
Apr 9 16:12:05 localhost zmdc[29504]: INF ['zmfilter.pl' started at 08/04/09 16:12:05]
Apr 9 16:12:05 localhost zmc_dvideo0[29498]: INF [Starting Capture]
Apr 9 16:12:05 localhost zmfilter[29504]: INF [Scanning for events]
Apr 9 16:12:05 localhost zmdc[29506]: INF ['zmaudit.pl -c' started at 08/04/09 16:12:05]
Apr 9 16:12:05 localhost zmdc[29476]: INF ['zmaudit.pl -c' starting at 08/04/09 16:12:05, pid = 29506]
Apr 9 16:12:06 localhost zmdc[29476]: INF ['zmwatch.pl' starting at 08/04/09 16:12:06, pid = 29508]
Apr 9 16:12:06 localhost zmdc[29508]: INF ['zmwatch.pl' started at 08/04/09 16:12:06]
Apr 9 16:12:06 localhost zmwatch[29508]: INF [Watchdog starting]
Apr 9 16:12:06 localhost zmwatch[29508]: INF [Watchdog pausing for 30 seconds]
Apr 9 16:12:06 localhost zmdc[29476]: INF ['zmupdate.pl -c' starting at 08/04/09 16:12:06, pid = 29510]
Apr 9 16:12:06 localhost zmdc[29510]: INF ['zmupdate.pl -c' started at 08/04/09 16:12:06]
Apr 9 16:12:06 localhost Update agent starting at 08/04/09 16:12:06
Apr 9 16:13:03 localhost zms[29519]: INF [Debug Level = 0, Debug Log = <none>]
Apr 9 16:13:03 localhost zms[29519]: INF [Got signal (Terminated), exiting]
Apr 9 16:13:45 localhost zmc_dvideo0[29498]: INF [webcam1: 1000 - Capturing at 10.00 fps]

the only line I can think of that could indicate a problem is:
Apr 9 16:13:03 localhost zms[29519]: INF [Got signal (Terminated), exiting]
Is zms supposed to be terminated? If not, how can I find out what's terminating it?
Thanks for your help

Regards.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Never run ZM as root. It has to run as the same user as the Apache server otherwise Apache will not have permissions to access the ZM binaries.
ldenegri
Posts: 3
Joined: Wed Apr 09, 2008 12:36 pm

Post by ldenegri »

cordel wrote:Never run ZM as root. It has to run as the same user as the Apache server otherwise Apache will not have permissions to access the ZM binaries.
well, ZM is running as the same user as apache (www-data)
...
www-data 30774 0.0 1.2 10564 6492 ? S 21:04 0:00 /usr/bin/perl -wT /usr/local/bin/zmdc.pl startup
www-data 30796 12.1 2.4 136120 12468 ? S 21:04 0:04 /usr/local/bin/zmc -d /dev/video0
www-data 30802 0.9 2.1 14116 11080 ? S 21:04 0:00 /usr/bin/perl -wT /usr/local/bin/zmfilter.pl
www-data 30804 0.6 1.5 11180 8220 ? S 21:04 0:00 /usr/bin/perl -wT /usr/local/bin/zmaudit.pl -c
www-data 30806 0.5 1.4 10428 7472 ? S 21:04 0:00 /usr/bin/perl -wT /usr/local/bin/zmwatch.pl
www-data 30808 0.7 1.6 11648 8652 ? S 21:04 0:00 /usr/bin/perl -w /usr/local/bin/zmupdate.pl -c

I just picked root as the mysql db user. Do you think that could be the problem?

Regards
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

No, it makes no diff what user you use to login to the database. So the other issue would be in apache. What do the apache error log say when you try to view a monitor?
ldenegri
Posts: 3
Joined: Wed Apr 09, 2008 12:36 pm

Post by ldenegri »

there's no error in apache error log.
Now I copied camobozola.jar in ZM web root and enabled it in options, and the streaming works with Internet Explorer and Safari, but nothing changed with Firefox.
I guess this is good enough for me, I can live with having to use Safari, but let me know if you want me to run more tests with Firefox.

Regards.
delzy
Posts: 3
Joined: Fri Apr 11, 2008 5:52 am

Post by delzy »

Code: Select all

chmod 755 /usr/lib/cgi-bin
Locked