cannot see image in watch window but camera is capturing...

Support and queries relating to all previous versions of ZoneMinder
Locked
intenseblu
Posts: 14
Joined: Thu Aug 03, 2006 2:24 pm

cannot see image in watch window but camera is capturing...

Post by intenseblu »

hello, i just finished a pretty painful (<-newb) install on ubuntu. it is running on 6.06 ubuntu server and i am using the custom zm_remote_camera.cpp zm_remote_camera.h that was created for the sony SNC-1/3 cameras.

when i log in through firefox into the ZM interface all is working fine except when i click to check my monitor instead of a picture i get a broken link icon displayed (as if its poiting to the wrong place) but i know ZM is capturing images fine cause when i click to go to configure zones for that monitor i see a picture it captured from the camera.

what i thought it is, a problem with executing the zms cgi script ... all my files are stored under /var/www/cgi-bin/ so technically apache should have no problem recognizing them there or letting them run ... i tried to access the cgi-bin directory directly through firefox and it tells me permission denied error (not sure if i should be able to access it?) and when i try to access /cgi-bin/zms/ it tells me the file was not found (it is there ... i just can't get in there). under ZM config i have attempted to use both /cgi-bin/zms and /cgi-bin/nph-zms

i have tried to get apache to access the cgi-bin scripts by editing apache2.conf with the following:

uncommented this line:
AddHandler cgi-script .cgi

and added this line:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

with no results...

can you guys think of anything i may be not doing right ?
other posts on this subject have been no help so far so please if you can think of anything... i am so close i can taste it :P
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

never used ubuntu but something i suggested a bit ago seemed to help someone else. Got settings and change your path from nph-zms to just zms. Ubuntu default apache install doesnt like non parsed headers for some reason
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
intenseblu
Posts: 14
Joined: Thu Aug 03, 2006 2:24 pm

Post by intenseblu »

aye, james, i read your post and had it set to zms already ... still no dice
intenseblu
Posts: 14
Joined: Thu Aug 03, 2006 2:24 pm

Post by intenseblu »

solved, ubuntu's apache config is done so that the default cgi-bin is not in the web directory so i would of had to enabled it with a ScriptAlias in the sites-enabled directory .... instead i justed cp'ed zms and nph-zms into /usr/lib/cgi-bin and all is working great now ... thats where the ubuntu lamp server stores the cgi files by default ...
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

cheers for the followup!
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
dyuen
Posts: 16
Joined: Mon Jul 10, 2006 5:58 pm

Post by dyuen »

intenseblu,

yea, I have a similar problem on a number of suse boxes.I can see the camera stream fine, but I cannot see the still images on still windows; however, I have one zoneminder setup fine on a server,which has a lot of packages installed, works without this problem, so I guess we are missing some optional packages from either zoneminder or zoneminder's required packages.

One way I got around with this problem is to set bandwidth option, displayed on main interface, to high, then the picture will display. If you have find out how to fix it, please let us know.

Daniel
intenseblu
Posts: 14
Joined: Thu Aug 03, 2006 2:24 pm

Post by intenseblu »

missing stills huh ? i would venture you are missing either libjpeg (libjpeg62 and libjpeg62-dev package on ubuntu) or netpbm utilities ... if i remember correctly the netpbm package had some involvment in thumbnail creation ...

let us know if you trace it down ...

my problem is solved, it was a cgi-bin issue.... i had no stream or stills...
dyuen
Posts: 16
Joined: Mon Jul 10, 2006 5:58 pm

Post by dyuen »

Thanks, intenseblu. updating netpbm does solve the problem :D
Locked