Odd...

Forum for questions and support relating to the 1.24.x releases only.
Locked
tibetfreedom
Posts: 163
Joined: Fri Oct 22, 2010 11:21 am

Odd...

Post 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...
tibetfreedom
Posts: 163
Joined: Fri Oct 22, 2010 11:21 am

Re: Odd...

Post 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
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Odd...

Post 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
Kfir Itzhak.
tibetfreedom
Posts: 163
Joined: Fri Oct 22, 2010 11:21 am

Re: Odd...

Post 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.
tibetfreedom
Posts: 163
Joined: Fri Oct 22, 2010 11:21 am

Re: Odd...

Post 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 ?
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Odd...

Post 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:

Code: Select all

mkdir(ZM_PATH_SOCKS);
mastertheknife
Kfir Itzhak.
tibetfreedom
Posts: 163
Joined: Fri Oct 22, 2010 11:21 am

Re: Odd...

Post 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:

Code: Select all

mkdir(ZM_PATH_SOCKS);
mastertheknife
Thanks,
That's easy… I'll do that.
tibetfreedom
Posts: 163
Joined: Fri Oct 22, 2010 11:21 am

Re: Odd...

Post 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:

Code: Select all

mkdir(ZM_PATH_SOCKS);
mastertheknife
Thanks,
That's easy… I'll do that.
Thanks easy… done..
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Odd...

Post by mastertheknife »

ZM starts now? :D

mastertheknife
Kfir Itzhak.
Locked