java.io.FileNotFoundException

Forum for questions and support relating to the 1.24.x releases only.
Locked
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

java.io.FileNotFoundException

Post 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.
DREMA
Posts: 162
Joined: Fri Dec 12, 2008 2:39 am
Location: México

Re: java.io.FileNotFoundException

Post 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.
Just... enjoy life! :D
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

Re: java.io.FileNotFoundException

Post 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.
DREMA
Posts: 162
Joined: Fri Dec 12, 2008 2:39 am
Location: México

Re: java.io.FileNotFoundException

Post by DREMA »

Sorry I skip that you're using v1.24.2

Have you setup your camera correctly? Is the monitor green/orange/red ?
Just... enjoy life! :D
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

Re: java.io.FileNotFoundException

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: java.io.FileNotFoundException

Post 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.
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

Re: java.io.FileNotFoundException

Post 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.
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

Re: java.io.FileNotFoundException

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: java.io.FileNotFoundException

Post 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!
Locked