Zoneminder wont start

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

Zoneminder wont start

Post by lewis » Fri Dec 23, 2011 12:36 am

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
Contact:

Re: Zoneminder wont start

Post by lewis » Sat Jan 14, 2012 1:46 pm

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 » Sun Jan 15, 2012 3:34 pm

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: 970
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Zoneminder wont start

Post by PacoLM » Sun Jan 15, 2012 5:22 pm

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

mini-ITX system (4 IPCams - Ubuntu20.04 - ZM1.34.15)
TelegramBot

lewis
Posts: 45
Joined: Mon Apr 03, 2006 11:41 pm
Location: Thessaloniki, Greece
Contact:

Re: Zoneminder wont start

Post by lewis » Tue Jan 17, 2012 9:41 am

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: 970
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Zoneminder wont start

Post by PacoLM » Tue Jan 17, 2012 8:54 pm

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!

mini-ITX system (4 IPCams - Ubuntu20.04 - ZM1.34.15)
TelegramBot

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests