Zoneminder wont start

Forum for questions and support relating to the 1.24.x releases only.
Locked
lewis
Posts: 45
Joined: Mon Apr 03, 2006 11:41 pm
Location: Thessaloniki, Greece

Zoneminder wont start

Post 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 ?
Ye-Olde's Manor - http://ye-olde.net
lewis
Posts: 45
Joined: Mon Apr 03, 2006 11:41 pm
Location: Thessaloniki, Greece

Re: Zoneminder wont start

Post 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
Ye-Olde's Manor - http://ye-olde.net
maclag
Posts: 4
Joined: Tue Nov 01, 2011 6:10 am

Re: Zoneminder wont start

Post 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?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Zoneminder wont start

Post by PacoLM »

Try to recreate the database, I had the same failure, the config table was broken.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
lewis
Posts: 45
Joined: Mon Apr 03, 2006 11:41 pm
Location: Thessaloniki, Greece

Re: Zoneminder wont start

Post 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
Ye-Olde's Manor - http://ye-olde.net
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Zoneminder wont start

Post 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!

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked