Page 1 of 1

Start script does not work..

Posted: Tue Nov 22, 2005 12:28 am
by turtle
I am having trouble here of locating the problem.

All i can learn is that when i try to manually run the bootscript or select the "Start State" from the webgui, nothing happens.

Both fail and I cannot isolate where the problem exists.

dmesg returns nothing relevant.

I am not able to make a screenshot of the gui.
the zm version is 1.21.4

The "type" of distribution should best be described as "hacked" or "in somewhat distance past, LFS". Entirely shared based, using uClibc, instead of glibc.
The only static files on the system are the cdrecord files..
Distribution is Turtle (mine)

there is only one possible cause I can think of. I don't use /tmp/mysql.sock. For now I am using a symbolic link until i get on a faster machine that can recompile php and get that sock file updated accordingly as noted by relating threads.

Posted: Tue Nov 22, 2005 1:45 am
by cordel
What errors do you have in either apache, messages, and/or zmdc.log as a result of tring to start zm?

Posted: Tue Nov 22, 2005 5:59 pm
by turtle
aha!
thanks, i overlooked the apache error logs.

it seems that whenI passed --bindir=/usr/bin is not completely accepted:
(configured with --prefix=/home/services/zoneminder --bindir=/usr/bin)

Apache Error Log (relevant):

Code: Select all

sh: /home/services/zm/bin/zmdc.pl: No such file or directory
sh: /home/services/zm/bin/zmdc.pl: No such file or directory
sh: /home/services/zm/bin/zmdc.pl: No such file or directory
sh: /home/services/zm/bin/zmdc.pl: No such file or directory
sh: /home/services/zm/bin/zmdc.pl: No such file or directory
edit: I just remember I had sed'd this situation before. perhaps the incorrect path was pushed into the binaries? I am making a symblic links from /usr/bin /home/services/zoneminder/bin
Only for a temporary fix

Now I get the following message:

Code: Select all

Can't connect: No such file or directory at /home/services/zm/bin/zmdc.pl line 159
This is a more useful error message. BTW, I mean the prefix is /home/services/zm and not /home/services/zoneminder. (my mistake

one more edit:
there are no messages being spitout about zoneminder services other than:

Code: Select all

Nov 22 10:56:29 [bootlog] \n\n/etc/rc.d/rc6.d/K09zm failed and exited with a return value of 1.
Nov 22 10:56:29 [bootlog] FAILURE:\n\nYou should not be reading this error message.\n\n  It means that an unforseen error took  place in /etc/rc.d/rc6.d/K09zm, which exited with a return value of  1.\n[/code
Which means it won't even shutdown properlly.  But why it is not logging the failed startups is beyond me at the moment.

Posted: Wed Nov 23, 2005 3:12 pm
by turtle
cordel wrote:zmdc.log
Never gets created.

Posted: Wed Nov 23, 2005 4:19 pm
by cordel
That section of code looks like it trys to open up the zmdc.sock file and is failing.
Have you checked to make sure the location that you have place it can actualy create and read the file?

Posted: Wed Nov 23, 2005 5:36 pm
by turtle
thanks, that was the end-problem.

I had to change the /home/services/zm folder's group to apache.

though i did not notice a configure command to specify where the zmdc.scok should go. perhaps a future option so that I can send --with-zmdc-sock=/tmp/zmdc.sock?

Posted: Wed Nov 23, 2005 9:55 pm
by cordel
It's actually there in the zmconfig.pl and is also accessable though the web interface under the paths tab in options ZM_PATH_SOCKS :wink:
Regards,
Cordel