Page 1 of 1

FC3 rpm upgrade from 1.21.4 -> 1.22.0-1.7 can't start

Posted: Thu Feb 16, 2006 3:44 am
by hp1
I just downloaded and upgraded my 1.21.4 rpm install to the 1.22.0-1.7 lastest. rpm upgrade went OK, however I have to manually upgrade the database, as trying to start it using /etc/init.d/zm start kept giving me 'manually run the upgrade script'

I ran zmfix.pl, zmupgrade.pl -f and zmupdate.pl --version=1.21.4. everything ran OK. However, zm doesn't start up. When I try to start up I get the following:


Starting ZoneMinder: Can't connect: No such file or directory at /usr/lib/perl5/site_perl/5.8.5/ZoneMinder/Debug.pm line 321
ZoneMinder::Debug::Fatal('Can\'t connect: No such file or directory') called at /usr/lib/zm/bin/zmdc.pl line 141

Looking in /var/log/messages I see:


Feb 15 20:33:17 cx1 zmdc[1220]: INF [Server starting at 06/02/15 20:33:17]
Feb 15 20:33:20 cx1 zmdc[1220]: FAT [Can't bind: Permission denied]
Feb 15 20:33:20 cx1 Can't bind: Permission denied at /usr/lib/perl5/site_perl/5.8.5/ZoneMinder/Debug.pm line 321 ZoneMinder::Debug::Fatal('Can\'t bind: Permission denied') called at /usr/lib/zm/bin/zmdc.pl line 166
Feb 15 20:33:27 cx1 zmdc[1217]: FAT [Can't connect: No such file or directory]
Feb 15 20:33:27 cx1 su(pam_unix)[1216]: session closed for user apache
Feb 15 20:33:27 cx1 zmpkg[1197]: ERR [Unable to run 'su apache -c '/usr/lib/zm/bin/zmdc.pl startup'', output is 'Starting server']


Any ideas?

Posted: Thu Feb 16, 2006 4:03 am
by cordel
That error appears if ZM can not get to the database.
Check and make sure /etc/zm.conf got updated correctly and that the permissions are proper.
Or you can copy your old config (zm.conf.old) back and restart and it should make the correct config for you.

Regards,
Corey

PS Let me know what you find.

Posted: Fri Feb 17, 2006 1:03 am
by hp1
SOLVED

Strangely enough, it wasn't a database issue -- but rather a directory permission issue. the apache account didn't have write access to /var/lib/zm . root:apache was the owner/group, however the mod was rwxr-xr-x . Granted group write access and everything started a-ok.

h

Posted: Fri Feb 17, 2006 4:10 am
by cordel
Glad you found the issue, I found a typo in the start script :oops:
As far as the other error about running zmupdate, If is not able to determin the database version, you have to do it manualy and depends on if a value had been set in the database.
Thank you for letting me know.
Regards,
Corey