Starting service zm ...

Forum for questions and support relating to the 1.25.x releases only.
Locked
devineyfajr
Posts: 2
Joined: Tue Sep 06, 2011 1:30 am

Starting service zm ...

Post by devineyfajr »

I made it through the script for installation of 1.25.x on Ubuntu 64-bit server, but when I try to start the service in Webmin I get this:

Starting service zm ..

Starting ZoneMinder: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/local/share/perl/5.10.1/ZoneMinder/Logger.pm line 153.
BEGIN not safe after errors--compilation aborted at /usr/local/share/perl/5.10.1/ZoneMinder/Logger.pm line 168.
Compilation failed in require at /usr/local/share/perl/5.10.1/ZoneMinder.pm line 34.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/ZoneMinder.pm line 34.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 37.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 37.
failure

.. failed!

Any suggestions?
devineyfajr
Posts: 2
Joined: Tue Sep 06, 2011 1:30 am

Re: Starting service zm ...

Post by devineyfajr »

Never mind, I somehow had an empty database. Didn't realize the config info was in there.
markkern
Posts: 1
Joined: Wed Sep 07, 2011 6:31 am

Re: Starting service zm ...

Post by markkern »

Sorry no idea regarding the bug. Have a search on Google.
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Re: Starting service zm ...

Post by caseystone »

Hello:

I just upgraded my whole setup, from scratch, and have this exact same error on the same system (Ubuntu 10.04 LTS 64-bit). It's frustrating because I actually had the system up and working, then I got bold and decided why not have the same box be my router also. Could be a coincidence, but after working on that project for a while now I can't start ZM and get your error. How did you fix it? I do have a database called ZM that is about 1 MB in size. I'd rather not start over completely again.

Thanks.

-Casey

-- update--

Looking at my ZM database using myphpadmin I see there are 0 records in the 'config' table. That seems bad! Other tables are populated.

-- update--

I backed up my zm database, made a new zm database and repopulated it with the default database, then renamed it zm_virgin and made my old one zm again, then copied the Config table from the default to mine. This seems to have worked. When I switched authenticated logins back on it did remember my user and pass, it remembered my monitors, but there were no old events anymore, which is fine.

To copy in mysql:

DROP TABLE IF EXISTS `zm`.`Config`;
CREATE TABLE `zm`.`Config` SELECT * FROM `zm_virgin`.`Config`;

Case sensitive it is!
I'm not sure this is a good solution, but you may want to try it some day.

-Casey
Locked