zmfix eror upon starting zmpkg.pl

Support and queries relating to all previous versions of ZoneMinder
Locked
qworld12
Posts: 1
Joined: Wed May 17, 2006 10:03 pm

zmfix eror upon starting zmpkg.pl

Post by qworld12 »

hello , i am trying to start zmpkg.pl from the shell and I get this error when I do a tail -f /var/log/zm/zmpkg.pl file :

05/17/2006 17:59:49.028267 zmpkg[7429].INF [Command: start]
05/17/2006 17:59:50.254292 zmpkg[7429].ERR [Unable to run "sudo -u apache /usr/local/bin/zmfix", output is ""]

I su as apache and went to /usr/local/bin and could run the files jsut fine , so i dont think its a permissions issue , but for giggles i did a chown apache:apache on all the zm perl scripts and set them to 775

I am running FC4 , and trying to run zm 1.22.1 , everyting else seems fine

Any help woud be greatly appreciated =)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If you log in as root and run

Code: Select all

sudo -u apache /usr/local/bin/zmfix
directly, does it work then?
Phil
daktak
Posts: 11
Joined: Mon Jul 14, 2003 9:10 am

Post by daktak »

I've upgraded in gentoo from 1.22.2 to 1.22.3 and get the error
12/15/06 12:11:07.974421 zmpkg[6718].INF [Command: start]
12/15/06 12:11:08.478448 zmpkg[6718].ERR [Unable to run "sudo -u apache /usr/bin/zmfix", output is ""]


When i run manually I get no output...
daktak@nintynine ~ $ sudo -u apache /usr/bin/zmfix
daktak@nintynine ~ $
human_step
Posts: 2
Joined: Sun Dec 17, 2006 10:41 pm

Post by human_step »

I also just upgraded on a Gentoo box from 1.22.2 -> 1.22.3 and fixed it by running `zmupdate.pl -f' after updating the database tables.
daktak
Posts: 11
Joined: Mon Jul 14, 2003 9:10 am

Post by daktak »

That worked a treat.

Thanks.

So what was the problem? Database not upgraded to 1.22.3 specs?
human_step
Posts: 2
Joined: Sun Dec 17, 2006 10:41 pm

Post by human_step »

The developers or the ebuild maintainers can probably answer better than I can and I might be wrong with my guess. But I believe that the zm.conf file that zmfix was expecting was in the /var/tmp/portage/zoneminder-[version] path instead of the /etc path due to the way that the Gentoo ebuild works. So just as you get this same behavior when the database user or password are not specified correctly in zm.conf, the configuration file that is referenced contains the Gentoo default user and password and most likely not what you have configured.
Locked