Can't view event pics

Support and queries relating to all previous versions of ZoneMinder
Locked
theenglishman
Posts: 13
Joined: Wed Aug 03, 2005 4:38 pm

Can't view event pics

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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?
Phil
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

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

Post 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.
theenglishman
Posts: 13
Joined: Wed Aug 03, 2005 4:38 pm

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

Post by cordel »

If you want and the system is accessable online you can PM me the ssh info and I can take a look.
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post 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.
theenglishman
Posts: 13
Joined: Wed Aug 03, 2005 4:38 pm

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