zmcontrol: Socket connection refused
Posted: Thu Apr 29, 2010 10:38 am
Symptoms:
Cannot get PT(Z) control to work
"Can't connect: Connection refused" logged
My findings:
When running zmcontrol manually, there are more details shown:
Around line 157 in zmcontrol.pl:
It tries to open socket /var/run/zm/zmcontrol-9.sock (which does exists) but the connection is refused for some reason. I'm running openSUSE 11.2, custom baked kernel, no SELinux installed afaik
Could anybody help me with this problem. When searching the forum I saw others with the same problem, but no solutions.
Could it be my perl version (5.10 instead of 5.?
Could it be my x64 instead of x86?
Cannot get PT(Z) control to work
"Can't connect: Connection refused" logged
My findings:
When running zmcontrol manually, there are more details shown:
Code: Select all
/usr/bin/zmcontrol.pl --id=9 --command=moveConDown
Can't connect: Connection refused at /usr/lib/perl5/vendor_perl/5.10.0/ZoneMinder/Debug.pm line 349
ZoneMinder::Debug::Fatal('Can\'t connect: Connection refused') called at /usr/bin/zmcontrol.pl line 157
Code: Select all
while (!connect( CLIENT, $saddr ))
{
$attempts++;
Fatal( "Can't connect: $!" ) if ($attempts > MAX_CONNECT_DELAY);
sleep(1);
}
Code: Select all
uname -a
Linux turpin 2.6.31.12-0.2-mdb #3 SMP Sat Mar 27 18:53:57 CET 2010 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
rpm -qa | grep perl-base
perl-base-5.10.0-72.6.1.x86_64
Could it be my perl version (5.10 instead of 5.?
Could it be my x64 instead of x86?