Path issues

Support and queries relating to all previous versions of ZoneMinder
Locked
r6rider
Posts: 8
Joined: Tue Jul 26, 2005 6:24 am

Path issues

Post by r6rider »

1.21.3

I have zm installed in /var/www/html/zm/ and /var/www/cgi-bin/zm/

If I set my images and events folder to be zm/images/ and zm/events, most things work, and video is recorded and I can watch it. However, when I attempt to look at a single frame, the path it is trying to get the image at looks like .../zm/zm/images...
it is referencing the file differently. If I try to set the paths to images and events without the zm, I can't look at any recorded video at all, and get errors like:

Jul 26 08:56:31 madman zma_m1[10517]: ERR [Can't make images/1/134: No such file or directory]
Jul 26 08:56:31 madman zma_m1[10517]: INF [WebCam: 041 - Starting new event 134]
Jul 26 08:56:31 madman zma_m1[10517]: ERR [Can't open images/1/134/001-capture.jpg: No such file or directory
Jul 26 08:57:11 madman zma_m1[10519]: INF [Debug Level = 0, Debug Log = <none>]
Jul 26 08:57:11 madman zma_m1[10519]: ERR [Can't make images: Permission denied]
Jul 26 08:57:11 madman zma_m1[10519]: ERR [Can't make images/1: No such file or directory]
Jul 26 08:57:11 madman zma_m1[10519]: INF [Warming up]

in /var/log/messages.

Inconsistencies in how the paths are used??

Thanks,

Adam
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Under your paths tab in options you should have set
ZM_DIR_EVENTS zm/events
ZM_DIR_IMAGES zm/images
ZM_PATH_ZMS /cgi-bin/zm/zms

Unless you have some wierd aliases set up this should work.
Regards,
Cordel
r6rider
Posts: 8
Joined: Tue Jul 26, 2005 6:24 am

Post by r6rider »

That is how I have the paths set up. If I try to drill down to an individual frame, the url for the image looks like this:
http://mysite/zm/zm/images/1/165/1000-capture.jpg, which obviously will not work.

Thanks,

Adam
r6rider
Posts: 8
Joined: Tue Jul 26, 2005 6:24 am

Post by r6rider »

If i add a symbolic link like so in the /var/www/html/zm folder:

ln -s ../zm

everything works.

Adam
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if i add another drive and mount it as /big if i chnage the path vaules in zm options will my images end up on there instead?

James
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

That should be possible, you might have to create the initial folders and set the permisions. I haven't had the need to try that as I'm some what anal about planning things a bit in advance.
You would probably need to create an alias for apache though.
Regards,
Cordel
Locked