Page 1 of 1

Can't view event pics

Posted: Thu Mar 29, 2007 9:10 pm
by theenglishman
Everything seems to be going well, with a monitor configured, green and viewable. A zone has been configured and triggers events.

The problem is that the events are not viewable. I can see a number of boxes, some of them with a red outline but all of them contain a red X in the top left corner.

The only error I can see is in apache:-
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:10 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:11 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:11 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Thu Mar 29 21:48:11 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/zoneminder/events/2/18, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
I can't know where to look next - I'm sure it's a configuration issue...

Any help/tips appreciated

Posted: Fri Mar 30, 2007 3:21 pm
by zoneminder
Do the files e.g. /var/www/localhost/htdocs/zoneminder/events/2/18 actually exist? Is this the correct path for your system?

Posted: Fri Mar 30, 2007 6:28 pm
by robi
I had similar errors when I changed ZM_EVENT_IMAGE_DIGITS (How many significant digits are used in event image numbering). The events recorded with the old setting were't viewable anymore.

Posted: Fri Mar 30, 2007 11:37 pm
by cordel
Also check your permissions in /var/www/localhost/htdocs/zoneminder/events/ and make sure it is read and writable recursively by your web user.

Posted: Fri Mar 30, 2007 11:51 pm
by theenglishman
robi wrote:I had similar errors when I changed ZM_EVENT_IMAGE_DIGITS (How many significant digits are used in event image numbering). The events recorded with the old setting were't viewable anymore.
It was 3 and I changed it to 5. Neither had any effect. :(
zoneminder wrote:Do the files e.g. /var/www/localhost/htdocs/zoneminder/events/2/18 actually exist? Is this the correct path for your system?
OK - I'm getting there :wink:

I've added the full paths to events, images and sounds and event .jpg files now get written.

However, I still can't view them with the following in the apache error log:-
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
[Sat Mar 31 00:40:56 2007] [error] [client 10.10.11.10] File does not exist: /var/www/localhost/htdocs/var, referer: https://10.10.11.5/zoneminder/index.php ... c=0&page=1
Sorry if this is an RTFM but I just can't seem to find anything.

Posted: Sat Mar 31, 2007 12:49 am
by cordel
If you want and the system is accessable online you can PM me the ssh info and I can take a look.

Posted: Sat Mar 31, 2007 6:34 am
by robi
Try ro right-click on the image placeholder and select Properties. See what file was supposed to be there according to the php script.

Posted: Sun Apr 01, 2007 10:21 pm
by theenglishman
cordel wrote:If you want and the system is accessable online you can PM me the ssh info and I can take a look.
Hey! Thanks for the offer, but you're west coast and I'm 9 hours ahead I think, so perhaps over Easter, if I haven't got it going by then - But I'm sure I will... It's something I've not got quite right... :wink:



robi wrote:Try ro right-click on the image placeholder and select Properties. See what file was supposed to be there according to the php script.
Right... First, thanks for point me in the right direction :D

If we're sitting comfortably, I'll describe whats happening:-

ZM_DIR_EVENTS = /var/www/localhost/htdocs/zoneminder/events
with ZM_DIR_EVENTS set to the physical path on the server, a triggered event places .jpg files in /var/www/localhost/htdocs/zoneminder/events/6/51

but the path in the Event window is https://10.10.11.5/var/www/localhost/ht ... apture.jpg, which obviously doesn't exist.


Now if I set :-
ZM_DIR_EVENTS = /zoneminder/events
I thought this would display properly in the web browser...

but (you could sense the 'but' couldn't you :wink: )

The path in the Event window is now correct - https://10.10.11.5/zoneminder/events/6/ ... apture.jpg, which works if the file exists in this directory, but the actual files don't get written. /var/www/localhost/htdocs/zoneminder/events/6 is empty - the sub-event directories don't get written and neither do the .jpg files.


I read the other posts about cgi-bin issues, but that's a bit beyond my level of knowledge.....

cgi-bin is in /var/www/localhost/cgi-bin and contains nph-zms and zms
zoneminder is in /var/www/localhost/htdocs/zoneminder
The web site is reached at https://10.10.11.5/zoneminder

I installed Gentoo 2006.1 Minimal, Apache2, MySQL5, php-5.2.1 and zonemindr 1.22.3. I'm close, but no cigar yet...

As ever, TIA