Page 1 of 1
Odd...
Posted: Tue May 24, 2011 2:27 pm
by tibetfreedom
I know I should post more info but does anyone have ANY pointers ?
Zoneminder will not start at all, it built and installed fine, but will not start...
Re: Odd...
Posted: Tue May 24, 2011 9:38 pm
by tibetfreedom
tibetfreedom wrote:I know I should post more info but does anyone have ANY pointers ?
Zoneminder will not start at all, it built and installed fine, but will not start...
Here is the error…
root@CCTV:/usr/local/bin# zmpkg.pl start
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
Re: Odd...
Posted: Tue May 24, 2011 10:14 pm
by mastertheknife
Code: Select all
diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in
index f0109c3..30319a5 100644
--- a/scripts/zmdc.pl.in
+++ b/scripts/zmdc.pl.in
@@ -131,6 +131,9 @@ foreach my $arg ( @ARGV )
}
}
+# Create the directory first if it doesn't exist
+mkdir(ZM_PATH_SOCKS);
+
socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" );
my $saddr = sockaddr_un( SOCK_FILE );
If ZM is already installed, then do it for /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl)
mastertheknife
Re: Odd...
Posted: Tue May 24, 2011 10:39 pm
by tibetfreedom
mastertheknife wrote:Code: Select all
diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in
index f0109c3..30319a5 100644
--- a/scripts/zmdc.pl.in
+++ b/scripts/zmdc.pl.in
@@ -131,6 +131,9 @@ foreach my $arg ( @ARGV )
}
}
+# Create the directory first if it doesn't exist
+mkdir(ZM_PATH_SOCKS);
+
socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" );
my $saddr = sockaddr_un( SOCK_FILE );
If ZM is already installed, then do it for /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl)
mastertheknife
Thanks,
I don't understand your instructions, can you be a bit more specific, Do I paste this in terminal ? I am very familiar with terminal but not sure what to do with your very kind instructions,
Thanks.
Re: Odd...
Posted: Tue May 24, 2011 11:16 pm
by tibetfreedom
mastertheknife wrote:Code: Select all
diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in
index f0109c3..30319a5 100644
--- a/scripts/zmdc.pl.in
+++ b/scripts/zmdc.pl.in
@@ -131,6 +131,9 @@ foreach my $arg ( @ARGV )
}
}
+# Create the directory first if it doesn't exist
+mkdir(ZM_PATH_SOCKS);
+
socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" );
my $saddr = sockaddr_un( SOCK_FILE );
If ZM is already installed, then do it for /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl)
mastertheknife
do you mean
substitute diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in
with diff --git /usr/bin/zmdc.pl.in /usr/bin/zmdc.pl.in
?
for script /usr/bin/zmdc.pl ?
Re: Odd...
Posted: Tue May 24, 2011 11:19 pm
by mastertheknife
Heh ignore the patch, it will just make life harder i guess.
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:
mastertheknife
Re: Odd...
Posted: Tue May 24, 2011 11:43 pm
by tibetfreedom
mastertheknife wrote:Heh ignore the patch, it will just make life harder i guess.
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:
mastertheknife
Thanks,
That's easy… I'll do that.
Re: Odd...
Posted: Wed May 25, 2011 12:05 am
by tibetfreedom
tibetfreedom wrote:mastertheknife wrote:Heh ignore the patch, it will just make life harder i guess.
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:
mastertheknife
Thanks,
That's easy… I'll do that.
Thanks easy… done..
Re: Odd...
Posted: Wed May 25, 2011 12:27 am
by mastertheknife
ZM starts now?
mastertheknife