Page 1 of 1

Newly installed, unable to see images

Posted: Wed Mar 15, 2006 1:28 pm
by GabiAPF
First of all, hello.

I'm running ZoneMinder 1.22.0 on Debian Sarge and I created a monitor, but when I click on it (Firefox/1.0.4), I get a broken image. If I try to view the image, it says The requested URL /cgi-bin/nph-zms was not found on this server.

The file exists, and all users have permitions to read it and execute it.

Looking at zmdc.log I see a long succession of the following:

03/15/06 10:23:34.009817 zmdc[15833].INF ['zmc -d /dev/video0' starting at 06/03/15 10:23:34, pid =16367]
03/15/06 10:23:34.061413 zmdc[15833].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/15/06 10:23:44.137596 zmdc[16371].INF ['zmc -d /dev/video0' started at 06/03/15 10:23:44]
03/15/06 10:23:44.140981 zmdc[15833].INF ['zmc -d /dev/video0' starting at 06/03/15 10:23:44, pid =16371]
03/15/06 10:23:44.194670 zmdc[15833].ERR ['zmc -d /dev/video0' crashed, exit status 255]

... And so on.

zmwatch.log has a succession of:
03/15/06 10:34:32.587997 zmwatch[15877].INF [Restarting capture daemon for Morfeus, shared memory not valid]
03/15/06 10:34:32.718849 zmwatch[15877].INF ['zmc -d /dev/video0' started at 06/03/15 10:34:32] at /usr/local/bin/zmwatch.pl line 118
(Morfeus is the machine's name.)

Could anyone please help me figure out what the problem is?
Thanks in advance.

Update:
I've told ZoneMinder where zm-nph is, but the image is still broken. Now all attempts to view it (http://192.168.1.9/webcam/cgi-bin/nph-z ... 1142432282) result in a download dialog that attempts to download zm-nph, of type BIN. Any idea how I can fix this?

Posted: Wed Mar 15, 2006 2:45 pm
by jameswilson
you need to have cambazola installed on the server to view mpjpegs in ie or use firefox

Posted: Wed Mar 15, 2006 2:47 pm
by wmoore
Is this a fresh install, or has it worked in the past..? ..previous versions..?

If fresh, I would ensure that your http server is set up to enable CGI.

Also may want to ensure that if it is, you can run executables without the '.cgi' extention. It's rare, but i have seen that. The simple fix, if that is the case, is to rename the zms and nph-zms with '.cgi' extentions. Be sure to update the path in your zm console. Then don't forget to recopy if you upgrade in the future.

In any case, the http server logs are where I would be looking for clues on this one.

-WAM

Posted: Wed Mar 15, 2006 4:30 pm
by GabiAPF
Thanks, wmoore, it turned out that the web server wasn't allowing execution of cgi scripts in that directory. It works now. :)