Page 1 of 1

Unable to start ZM

Posted: Thu May 26, 2011 10:23 am
by planet4
Hi! I have installed ZM 1.24.3 on ubuntu 64bit today and after installation it runs fine. The problem is after reboot. The etc/init.d script was created but when I start it manually it tells me:

Starting ZoneMinder: Can't connect: No such file or directory at /usr/local/share/perl/5.10.1/ZoneMinder/Debug.pm line 349
ZoneMinder::Debug::Fatal('Can\'t connect: No such file or directory') called at /usr/local/bin/zmdc.pl line 168
failure


I have tried all kinds of configuration without succsess. Any one who has the same problem?

Re: Unable to start ZM

Posted: Thu May 26, 2011 10:26 am
by mastertheknife
Open /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl depending on your installation) with an editor
Find this piece of code:

Code: Select all

socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" );

my $saddr = sockaddr_un( SOCK_FILE );
my $server_up = connect( CLIENT, $saddr );
Add this above it:

Code: Select all

mkdir(ZM_PATH_SOCKS);
mastertheknife

Re: Unable to start ZM

Posted: Thu May 26, 2011 10:52 am
by planet4
Wonderful! Works perfect. Thanks for a very quick reply.

:D