Page 1 of 1

problem with zms-*.sock

Posted: Mon Sep 07, 2009 11:27 am
by ddk
Hello.
I had zoneminder 1.23.3 working on gentoo, with few ip-cams (axis m1011), all was fine until i run 'emerge world'... Zoneminder succesfully upgrade to version 1.24.2 and after that i see nothing :) There is no images when i try to see events or view monitors.
When i click on one of monitors firebug wrotes:

Code: Select all

getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-794731s.sock ) failed: No such file or directory

Code: Select all

ls -la /var/run/ | grep zm
drwxr-xr-x  2 apache apache 4096 Sep  7 15:18 zm
but where is no zms*.sock files in all other system

Code: Select all

find / -iname 'zms*.sock'
shows nothing.

i suggest that this is problem with zms file in cgi-bin, i check zm.conf and cgi-bin folder:

Code: Select all

ZM_PATH_CGI=/var/www/zoneminder/cgi-bin

Code: Select all

ls -l /var/www/zoneminder/cgi-bin/
-rwxr-xr-x 2 apache apache 503172 Sep  3 14:36 nph-zms
-rwxr-xr-x 2 apache apache 503172 Sep  3 14:36 zms
all seems fine...but not works...

/var/log/zoneminder/zmwatch.log:

Code: Select all

09/07/09 15:39:13.550932 zmwatch[3958].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/07/09 15:39:13.551180 zmwatch[3958].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
09/07/09 15:39:13.551403 zmwatch[3958].ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory]

can anybody help me?

ps sorry for my english :oops:

Posted: Tue Sep 08, 2009 11:51 am
by ddk
something new :)
firebug wrote:

Code: Select all

 /var/run/zm/zms-785751s.sock ) failed: No such file or directory
but in /var/run/:

Code: Select all

# ls -las /var/run/zm/ | grep zm
4 -rw-r--r-- 1 apache apache    5 Sep  7 18:18 zm.pid
0 srwxr-xr-x 1 apache apache    0 Sep  7 18:18 zmdc.sock
0 srwxr-xr-x 1 apache apache    0 Sep  8 15:45 zms-785751w.sock
so just on letter, one letter...
but how to change it?

Posted: Tue Sep 08, 2009 2:54 pm
by mitch
Not the actual issue . The sockets are created by zms / nph-zms the streaming daemon and then the php scripts connect to it. The problem here is the zms script is not working properly so its not getting setup. I would turn up debugging and check the ZMS log for whats really going wrong.

Re: problem with zms-*.sock

Posted: Wed Sep 09, 2009 4:43 am
by terracenter
Hey, maybe it's the same mistake I had, but I just did this.

Code: Select all

cp -r /var/www/zoneminder/cgi-bin /var/www/localhost/
I think there is a mistake, because this line is not taken into account by the application

Code: Select all

ZM_PATH_CGI=/var/www/zoneminder/cgi-bin

Code: Select all

 # ls -la  /var/www/localhost/cgi-bin/
total 920
drwxr-xr-x 2 root root   4096 2009-09-09 00:01 .
drwxr-xr-x 4 root root   4096 2009-09-09 00:01 ..
-rwxr-xr-x 1 root root 462244 2009-09-09 00:01 nph-zms
-rwxr-xr-x 1 root root 462244 2009-09-09 00:01 zms
 
and this is working

Note: My English is not very good, and I use to communicate trductor of google, I hope forgive me if I write with many errors

Another note: please all who speak in Spanish, I invite you to have a channel in Spanish for zoneminder.

Posted: Wed Sep 09, 2009 6:49 am
by ddk
terracenter
thank you, right you are. it works after i copy cgi-bin and create new monitors with old settings :)

problem with zms-*.sock

Posted: Tue Sep 15, 2009 8:43 am
by ykulyev
I have installed new zoneminder 1.24.2 from ports on Gentoo.
There was no image/video streaming from Apache2
I had to edit file
/etc/apache2/vhosts.d/default_vhost.include

DocumentRoot "/var/www/zoneminder/htdocs"
ScriptAlias /cgi-bin/ "/var/www/zoneminder/cgi-bin/"
<Directory>

all 'localhost' replaced for 'zoneminder' and after that video streaming works fine.