Page 1 of 1

Zoneminder wont start

Posted: Fri Dec 23, 2011 12:36 am
by lewis
hello all,
i had my zoneminder working, installed on a Linux 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux (wheezy)
but suddenly stopped....
this is the error i get:

root@localhost:~# /etc/init.d/zoneminder start
Starting ZoneMinder: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/ZoneMinder/Debug.pm line 265.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 34.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 34.
Compilation failed in require at /usr/bin/zmpkg.pl line 46.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 46.
failure

can anyone help me ?

Re: Zoneminder wont start

Posted: Sat Jan 14, 2012 1:46 pm
by lewis
i tried to install another package on my Debian, and i got this message...


Setting up zoneminder (1.24.4-1+b2) ...
Starting ZoneMinder: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/ZoneMinder/Debug.pm line 265.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 34.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 34.
Compilation failed in require at /usr/bin/zmpkg.pl line 46.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 46.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--configure):
subprocess installed post-installation script returned error exit status 2

Re: Zoneminder wont start

Posted: Sun Jan 15, 2012 3:34 pm
by maclag
I have exactly the same message and issue. Could it be a Debian only issue linked with a dependancy upgrade?
Maybe we should fill a bug report?

Re: Zoneminder wont start

Posted: Sun Jan 15, 2012 5:22 pm
by PacoLM
Try to recreate the database, I had the same failure, the config table was broken.

Re: Zoneminder wont start

Posted: Tue Jan 17, 2012 9:41 am
by lewis
i did a mysqlcheck --all-databases --auto-repair -u root -p

now, i can login but it redirects me to http://xx.xx.xx.xx/zm/undefined

Re: Zoneminder wont start

Posted: Tue Jan 17, 2012 8:54 pm
by PacoLM
Maybe the tables are repaired but void. Try to recreate them using :

Code: Select all

cd /usr/share/zoneminder
mysqladmin -u root -p -f drop zm
mysql -u root -p < db/zm_create.sql
#Password that is requested is Mysql root password that was entered during install, not your debian password.
mysql -u root -p
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
quit
mysqladmin -p reload
Give it a try, you will need to configure again your system, but maybe is better than nothing!