Page 1 of 1

Starting service zm ...

Posted: Tue Sep 06, 2011 1:33 am
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?

Re: Starting service zm ...

Posted: Wed Sep 07, 2011 12:31 am
by devineyfajr
Never mind, I somehow had an empty database. Didn't realize the config info was in there.

Re: Starting service zm ...

Posted: Wed Sep 07, 2011 6:38 am
by markkern
Sorry no idea regarding the bug. Have a search on Google.

Re: Starting service zm ...

Posted: Mon Sep 19, 2011 4:54 pm
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