You must run /srv/zoneminder/bin/zminit manually

Forum for questions and support relating to the 1.25.x releases only.
Locked
duffrecords
Posts: 14
Joined: Thu Jan 05, 2012 8:23 pm

You must run /srv/zoneminder/bin/zminit manually

Post by duffrecords »

This morning at 9:25 AM I unexpectedly got an alert that ZoneMinder stopped. When I tried to start it, it failed and said "You must run /srv/zoneminder/bin/zminit manually." No packages had been upgraded or modified (in fact I had not used the computer since the night before) so I suspected a problem with the MySQL database. I backed it up, checked the tables, and they all reported an OK status. I ran zminit, dropped the database, and started ZoneMinder without any problem (although all my settings were now gone). So I restored the database, and ZoneMinder still insists I run zminit manually. Oddly, if I run "/etc/rc.d/zm stop" it displays a number of Perl errors:

Code: Select all

Bareword "ZM_DYN_DB_VERSION" not allowed while "strict subs" in use at /srv/zoneminder/bin/zmpkg.pl line 150.                                                              
Bareword "ZM_DYN_DB_VERSION" not allowed while "strict subs" in use at /srv/zoneminder/bin/zmpkg.pl line 149.
Bareword "ZM_DYN_DB_VERSION" not allowed while "strict subs" in use at /srv/zoneminder/bin/zmpkg.pl line 151.
Execution of /srv/zoneminder/bin/zmpkg.pl aborted due to compilation errors.
This is really strange because I did not upgrade or modify any files since it was last working. Does anyone have a recommendation on how to recover the info in my database?
duffrecords
Posts: 14
Joined: Thu Jan 05, 2012 8:23 pm

Re: You must run /srv/zoneminder/bin/zminit manually

Post by duffrecords »

This is really strange. I wanted to start fresh so I dropped the database and tried to reinstall the working package I had built earlier. Now there are additional errors:

Code: Select all

[***@******* zoneminder]$ sudo pacman -U zoneminder-1.25.0-13-x86_64.pkg.tar.xz 
loading packages...
warning: zoneminder-1.25.0-13 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): zoneminder-1.25.0-13

Total Installed Size:   7.11 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                                                                                                                   [----------------------------------------------------------------------------------------------------] 100%
(1/1) loading package files                                                                                                                                        [----------------------------------------------------------------------------------------------------] 100%
(1/1) checking for file conflicts                                                                                                                                  [----------------------------------------------------------------------------------------------------] 100%
(1/1) upgrading zoneminder                                                                                                                                         [----------------------------------------------------------------------------------------------------] 100%
DBD::mysql::st execute failed: Table 'zm.Config' doesn't exist at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 92.
Can't execute: Table 'zm.Config' doesn't exist at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 100.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/ZoneMinder/Config.pm line 100.
Compilation failed in require at /srv/zoneminder/bin/zmupdate.pl line 47.
BEGIN failed--compilation aborted at /srv/zoneminder/bin/zmupdate.pl line 47.
error: command failed to execute correctly
It's strange because up until ZoneMinder stopped working this morning I had not tampered with anything.
Locked