Page 1 of 1

java.io.FileNotFoundException

Posted: Wed Jun 01, 2011 1:55 pm
by Mad Professor
Good Day All.

I have just done a clean install of Ubuntu 11.04 64Bit Server, and Installed zoneminder v1.24.2 via "aptget install zoneminder"

Now each time I try and view a monitor or stream I get the following error.
I have seen that there have been other posts regarding this problem in the post.

But none of them clearly show how to fix this problem.

Can you please advice me?

Thanks for your time.

Best Regards.

Re: java.io.FileNotFoundException

Posted: Wed Jun 01, 2011 6:30 pm
by DREMA
In your options on the High B/W tab, change WEB_H_CAN_STREAM from "auto" to "yes" and WEB_H_STREAM_METHOD to "jpeg", save it and try again. Be sure to be using "Configured for HIGH speed" on your console.

Re: java.io.FileNotFoundException

Posted: Wed Jun 01, 2011 6:40 pm
by Mad Professor
Thanks for your reply.

I can not see WEB_H_CAN_STREAM or WEB_H_STREAM_METHOD.

In my High B/W tab I only have the following:
WEB_H_REFRESH_MAIN: 300.
WEB_H_REFRESH_CYCLE: 10.
WEB_H_REFRESH_IMAGE: 5.
WEB_H_REFRESH_STATUS: 3.
WEB_H_REFRESH_EVENTS: 30.
WEB_H_DEFAULT_SCALE: 100.
WEB_H_DEFAULT_RATE: 100.
WEB_H_VIDEO_BITRATE: 150000.
WEB_H_VIDEO_MAXFPS: 15.
WEB_H_SCALE_THUMBS: Unticked.
WEB_H_USE_STREAMS: Ticked.
WEB_H_EVENTS_VIEW: events.
WEB_H_SHOW_PROGRESS: Ticked.
WEB_H_AJAX_TIMEOUT: 3000.
Under my Images Tab I do have CAN_STREAM & STREAM_METHOD.

I have changed CAN_STREAM from auto to yes.

I no longer get the error, I now just get a white box with a red cross in top left hand corner.

If I then right click the white box (dead picture) and goto Properties, I can see under the address (url) ending that it is trying to pull nph-zms from: "http://xxx.xxx.xxx.xxx/cgi-bin/nph-zms"

Putting that into the address bar just brings back a 404 page error, but if you put "http://xxx.xxx.xxx.xxx/zm/cgi-bin/nph-zms" into the address bar it downloads the nph-zms file.

Re: java.io.FileNotFoundException

Posted: Wed Jun 01, 2011 6:54 pm
by DREMA
Sorry I skip that you're using v1.24.2

Have you setup your camera correctly? Is the monitor green/orange/red ?

Re: java.io.FileNotFoundException

Posted: Wed Jun 01, 2011 8:05 pm
by Mad Professor
The camera is showing as Green.
I have it set to Modect, and it is recording events.

But I am just not able to view live feed, or replay any events.

Re: java.io.FileNotFoundException

Posted: Fri Jun 03, 2011 3:39 am
by cordel
Mad Professor wrote:If I then right click the white box (dead picture) and goto Properties, I can see under the address (url) ending that it is trying to pull nph-zms from: "http://xxx.xxx.xxx.xxx/cgi-bin/nph-zms"

Putting that into the address bar just brings back a 404 page error, but if you put "http://xxx.xxx.xxx.xxx/zm/cgi-bin/nph-zms" into the address bar it downloads the nph-zms file.
Sounds like a misconfiguration of the apache cgi-bin directory in the apache config somewhere. You will have to find where zms and nph-zms is on the system and make sure that apache is configured to run scripts from that location. There are several ways to do this though and depends on what else you use this system for as any change in apache might break something else.

Re: java.io.FileNotFoundException

Posted: Fri Jun 03, 2011 5:20 am
by Mad Professor
Thanks for your reply.

Here is where the nph-zms & zms are on my system.

/usr/lib/cgi-bin/nph-zms
/usr/lib/cgi-bin/zms

But as I am not a linux or apache guru I don't know where to start looking can you please advice me.

Re: java.io.FileNotFoundException

Posted: Fri Jun 03, 2011 7:57 am
by Mad Professor
I am not sure if this is the right way to fix the problem, but it seems to be working now.

The file here: "/etc/apache2/httpd.conf" was empty so I added "ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/" and restarted the server.

Now I can play back events, and view live stream.

Re: java.io.FileNotFoundException

Posted: Sat Jun 04, 2011 2:05 am
by cordel
That is sort of the correct fix.
The syntax you added is spot on....
But in sites-available/
and would either go in ZM (if it has this) or default.

Good show!