Page 1 of 1
Zoneminder success and problem.
Posted: Mon Nov 24, 2003 5:30 pm
by johnpaul76
I was able to get zoneminder to work over the weekend. (We caught some felons dumping leaves.)
:)
But, now it doesn't want to start on boot, or via the command prompt.
When I run /etc/init.d/zm start
I get
Starting ZoneMinder: /etc/init.d/zm: line 17: echo_success: command not found
It takes a long time to run and none of the services (zmc, zma, etc) don't appear.
Any ideas?
Its SuSE 8.2 and the capture card works with KWinTV.
Thanks
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 7:32 am
by eelch
HI
couldt you please tell me which capture card you are using and which Suse 8.2
(Personal or Professional )
I will try on the weekend a fresh installation on Suse 8.2 (on my old Suse 8.1 it rans ZM great) and if i found any problems, i can resolve it and will post here.
Thomas
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 9:52 am
by tommy
Regarding echo_success: command not found
I had the same problem on my Debian installation. It seems we are missing a function library that is standard on Red Hat installations. You can see it referenced at the beginning of the zm script:
#Source function library
/etc/init.d/functions
I simply created a file called functions and put it into /etc/init.d
Here is the contents of the file
#!/bin/sh
#My own simple version of functions library
echo_success() {
echo -n "OK"
return 0
}
echo_failure() {
echo -n "FAILED"
return 1
}
There are more functions in the Red Hat version but this is all that ZoneMinder needs.
Hope this helps.
Tom
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 2:06 pm
by johnpaul76
(Thomas Irmscher) - I'm using a BT878 (Pinnicle PCTV Rave) and SuSE Personal.
(Tom) - Thanks, that cleared up one problem, its still not starting though.
:)
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 2:53 pm
by eelch
Hi
@John Paul, with my Suse 8.1 it works fine.
but i will try it with Suse 8.2 and will post if any problems ocurs.
(I think todays evening is a good time for it ;) )
Thomas
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 6:37 pm
by eelch
Hi
Iam back and the install was gone with no problems.
Iam using Suse 8.2 with standard installation (with all modules which required),an BT 878 card (TV card lifeview Flyvideo 2)
and it runs from begin with no probs.
Iam starting/stopping it from the webinterface and it works fine.
Iam not using any script to start it with the computer .
The only thing that are the most problem is the webgroup:webuser.
For Suse its most wwwrun:nogroup.
You can try with these options on the configure and i think it works.
If not post it and i will try to help.
Here are the link to my server with Zoneminder.
http://kleinerpreis.homeip.net:81/zm.php
Please don't kill it or do other things on it its only for test for people who will
see the Zoneminder real on SUSe 8.2
After a few days it will shutdown.
Thomas
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 6:56 pm
by johnpaul76
Great, Thanks.
Is there any way to get zm to tell you what its doing? I set VERBOSE=1 in zmpkg.pl and zmdc.pl but I don't see any messages.
Also, I can start the processes using zmdc.pl start (process.) I went through zmpkg.pl and started all the commands it called manual.
The streaming of the live image worked, but the console still said the processes were stopped, also, zma was not working when I started it this way.
It worked once, really.
:)
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 7:14 pm
by eelch
HI
Oh I think you must only start with "zmpkg.pl start" and all runs from this script.
This have I tried as i made my first install with the zm script and nothing works.
Later Iam testet it with start/stop zoneminder from the webinterface and it runs perfectly.
Thomas
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 8:32 pm
by johnpaul76
What is your configure statement? I think my problem is with the user. I changed the webuser and webgroup to root and zoneminder seems to start (zm status).
The console still says it is stopped.
Sorry, I am a newbie and linux and permissions.
Thanks
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 8:45 pm
by eelch
Hi
iam working as root and using this:
./configure --with-mysql=/usr/lib/mysql --with-webdir=/srv/www/htdocs
--with-cgi-dir=/srv/www/cgi-bin --with-webuser=wwwrun --with-webgroup=nogroup
The apache runs under Suse ans wwwrun and nogroup.
The permissions was my first error bevor iam know the right permissions.
Thomas
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 9:20 pm
by johnpaul76
when i use
./configure ...... --with-webuser=root --with-webgroup=root
zm start works (the webpage still doesn't)
but when I configure with any other user and group,
zm start doesn't work.
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 10:07 pm
by zoneminder
When you say 'zm start' doesn't work do you mean the 'zm' script? Or starting it anyhow? The 'zm' script is only really meant as an example and is not portable across distributions as you have discovered.
To check for errors look in /var/log/messages (or possibly other files in /var/log) and for zm*.log either in /tmp or wherever you have configured them to go.
Phil,
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 10:12 pm
by johnpaul76
zmpkg.pl start takes a while and then exits.
then zmpkg.pl status says "stopped"
/var/log/messages doesn't say much, but /tmp/zmpkg.log says:
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmwatch.pl'
Can't open log file: Permission denied at /usr/local/bin/zmdc.pl line 153.
Can't connect: No such file or directory at /usr/local/bin/zmdc.pl line 145.
and more of the same repeated.
I guess the permissions are wrong. :(
Re: Zoneminder success and problem.
Posted: Tue Nov 25, 2003 10:18 pm
by zoneminder
Yes, it sounds like the directory you have configured for writing to logs either doesn't exist or won't let you write to it. This is a 'bad thing'. It's odd that the zmpkg.log exists and not the others, can your web user not write to /tmp? I would be a bit surprised if not otherwise things like sessions files wouldn't be created etc etc.
Phil,
Re: Zoneminder success and problem.
Posted: Wed Nov 26, 2003 1:51 pm
by johnpaul76
there were log files in the /tmp directory - zmaudit.log zmdc.log zmpkg.log zmwatch.log
I deleted them to get a fresh set and the I started it with /etc/init.d/zm start
and everything worked fine. It is now up and running.
:)
Strange. Thank you for all your help and thanks for this great program.