zmcontrol: Socket connection refused

Forum for questions and support relating to the 1.24.x releases only.
Locked
user888
Posts: 13
Joined: Wed Apr 28, 2010 6:48 am

zmcontrol: Socket connection refused

Post by user888 »

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:

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
Around line 157 in zmcontrol.pl:

Code: Select all

        while (!connect( CLIENT, $saddr ))
        {
            $attempts++;
            Fatal( "Can't connect: $!" ) if ($attempts > MAX_CONNECT_DELAY);
            sleep(1);
        }
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

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 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.8)?
Could it be my x64 instead of x86?
Locked