Zoneminder success and problem.

Support and queries relating to all previous versions of ZoneMinder
Locked
johnpaul76
Posts: 20
Joined: Mon Nov 10, 2003 4:05 pm

Zoneminder success and problem.

Post 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
eelch
Posts: 7
Joined: Thu Nov 20, 2003 12:38 pm

Re: Zoneminder success and problem.

Post 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
tommy
Posts: 45
Joined: Sun Aug 17, 2003 2:58 am

Re: Zoneminder success and problem.

Post 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
johnpaul76
Posts: 20
Joined: Mon Nov 10, 2003 4:05 pm

Re: Zoneminder success and problem.

Post 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.
:)
eelch
Posts: 7
Joined: Thu Nov 20, 2003 12:38 pm

Re: Zoneminder success and problem.

Post 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
eelch
Posts: 7
Joined: Thu Nov 20, 2003 12:38 pm

Re: Zoneminder success and problem.

Post 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
johnpaul76
Posts: 20
Joined: Mon Nov 10, 2003 4:05 pm

Re: Zoneminder success and problem.

Post 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.
:)
eelch
Posts: 7
Joined: Thu Nov 20, 2003 12:38 pm

Re: Zoneminder success and problem.

Post 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
johnpaul76
Posts: 20
Joined: Mon Nov 10, 2003 4:05 pm

Re: Zoneminder success and problem.

Post 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
eelch
Posts: 7
Joined: Thu Nov 20, 2003 12:38 pm

Re: Zoneminder success and problem.

Post 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
johnpaul76
Posts: 20
Joined: Mon Nov 10, 2003 4:05 pm

Re: Zoneminder success and problem.

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Zoneminder success and problem.

Post 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,
johnpaul76
Posts: 20
Joined: Mon Nov 10, 2003 4:05 pm

Re: Zoneminder success and problem.

Post 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. :(
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Zoneminder success and problem.

Post 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,
johnpaul76
Posts: 20
Joined: Mon Nov 10, 2003 4:05 pm

Re: Zoneminder success and problem.

Post 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.
Locked