Page 1 of 1

ZONEMINDER PATH PROBLEMS

Posted: Mon Dec 07, 2009 2:14 pm
by zacdesai
Hello everybody ,

Thanks for a superb product in Zoneminder.

Ive been using it for about 2 months now. got it running on ubuntu 8.04. everythings running wonderfully on monitor mode. Ive attached a 1 TB HD for storage purposes and sym linked the ../zm/temp ; images & events folders to this new hdrive. Ive double checked permissions on the 1TB drive and have it set to www-data as owner. When I set the cameras to mocord, ZM writes events to the folders as the folder fills up with images. I cannot however play them back. Also, when trying to configure the zone - theres no image being loaded on the screen where you gotta define the zone area. Im attaching a part of the error log from apache. thanks for any help!
ray (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /var/www/html/zm/temp/zms-172740s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/html/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.0.154/zm/index.php?view=watch&mid=33
[Mon Dec 07 08:18:14 2009] [error] [client 192.168.0.159] socket_sendto( /var/www/html/zm/temp/zms-348678s.sock ) failed: No such file or directory, referer: http://192.168.0.154/zm/index.php?view=watch&mid=47
[Mon Dec 07 08:18:14 2009] [error] [client 192.168.0.159] array (\n 0 => \n array (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /var/www/html/zm/temp/zms-348678s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/html/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.0.154/zm/index.php?view=watch&mid=47
[Mon Dec 07 11:15:35 2009] [error] [client 192.168.0.156] File does not exist: /var/www/html/zm/function.mysql-pconnect, referer: http://192.168.0.154/zm/index.php?

Posted: Mon Dec 07, 2009 7:55 pm
by cordel
Check that Apache is configured with the option directive FollowSymlinks for the web directory ZM is installed in or otherwise alias those directories to the new drive in apache.

Reply

Posted: Tue Dec 08, 2009 1:21 pm
by zacdesai
Hi Cordel ,

thanks for your pointers.

Ok - I had the option FollowSymLinks in httpd.conf for the directory /var/www/html/zm/* ( Is this correct ? )

I tried inserting Aliases in httpd.conf & apache2.conf - can you please help me out with this part. My web dir is /var/www/html/zm/ & the dir where I want to store images/events is /var/lib/zoneminder/events etc (2nd HD ) . I am not sure if I am doing the alias bit correct and would appreciate some help. I am inserting part of my apache error.log. Theres a strange path logged in there : /var/www/html/zm//temp . Any Idea what would cause this. Thanks again!
Tue Dec 08 15:08:49 2009] [error] [client 192.168.0.159] array (\n 0
=> \n array (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n
'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array
(\n 0 => 'socket_sendto( /var/www/html/zm//temp/zms-848080s.sock )
failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n
'file' => '/var/www/html/zm/index.php',\n 'line' => 116,\n 'args'
=> \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n
),\n 'function' => 'require_once',\n ),\n), referer:
http://192.168.0.154/zm/index.php?view=watch&mid=47
[Tue Dec 08 15:08:52 2009] [error] [client 192.168.0.159] socket_sendto(
/var/www/html/zm//temp/zms-366471s.sock ) failed: No such file or
directory, referer: http://192.168.0.154/zm/index.php?view=watch&mid=33
[Tue Dec 08 15:08:52 2009] [error] [client 192.168.0.159] array (\n 0
=> \n array (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n
'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array
(\n 0 => 'socket_sen

Posted: Wed Dec 09, 2009 2:18 pm
by zacdesai
Hi ,

Quick update. I removed the symlinks and tried the alias method. I can now see an image when configuring the zones. thanks

Although when viewing events or timeline , I still get no image.
'socket_sendto( /var/lib/zoneminder/temp/zms-848080s.sock )
failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n
'file' => '/var/www/html/zm/index.php',\n 'line' => 116,\n 'args'
=> \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n
),\n 'function' => 'require_once',\n ),\n), referer:
http://192.168.0.154/zm/index.php?view=watch&mid=47
[Tue Dec 08 15:08:52 2009] [error] [client 192.168.0.159] socket_sendto(
/var/lib/zoneminder/temp/zms-366471s.sock ) failed: No such file or
directory, referer: http://192.168.0.154/zm/index.php?view=watch&mid=33
[Tue Dec 08 15:08:52 2009] [error] [client 192.168.0.159] array (\n 0
=> \n array (\n
I check the temp folders permissions / ownership and changed it all to www-data. I tried using the original location " /var/www/html/zm/temp " and also used the new location " /var/lib/zoneminder/temp " it creates the .sock files but they stay at 0 bytes. any help much appreciated.

Thanks

Posted: Wed Dec 09, 2009 6:13 pm
by ehymel
You might try this discussion:

http://www.zoneminder.com/forums/viewtopic.php?p=57753

I don't know why moving the zms and nph-zms scripts to the cgi-bin dir (as opposed to using scriptalias method) makes everything work and resolves error messages about /tmp/zm*.sock problems, but it does.

Posted: Mon Dec 14, 2009 7:15 am
by cordel
Looks like you have the wrong path configured in options under the paths tab for the socket files.

It should point somewhere out side of the web root. I'm not sure what the typical is for deb installs but I usually have mine in /var/lib/zm or the source default is in /tmp

SUCCESS

Posted: Thu Dec 17, 2009 2:35 pm
by zacdesai
Hi guys ,

Just wanna say thanks! everythings working. Yes, it seems as if it was a path problem - those little " ? " in the options window actually has a wealth of info in there and it was quite helpful.

I definately plan to do a donation. This software really really kIx @ss.

Thanks
Zakaria