Database version issue after upgrading to 1.26.5

Forum for questions and support relating to the 1.26.x releases only.
Locked
DigitalDeviant
Posts: 17
Joined: Wed Jul 24, 2013 2:25 pm

Database version issue after upgrading to 1.26.5

Post by DigitalDeviant »

After upgrading from 1.26.4 to 1.26.5 I get the following error running zmupdate.pl --version=1.26.4 --user=xxx --pass=xxx

Code: Select all

routine main::ZM_VERSION redefined at /usr/bin/zmupdate.pl line 47
        main::BEGIN() called at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 47
        eval {...} called at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 47
Prototype mismatch: sub main::ZM_VERSION () vs none at /usr/bin/zmupdate.pl line 47
        main::BEGIN() called at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 47
        eval {...} called at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 47
Subroutine ZoneMinder::Database::ZM_DB_USER redefined at /usr/bin/zmupdate.pl line 102.

Database already at version 1.26.4, update aborted.
Original install and update were done with the RPMs here. Any help would be appreciated.
michael smith
Posts: 49
Joined: Wed Mar 14, 2007 12:58 pm

Re: Database version issue after upgrading to 1.26.5

Post by michael smith »

ubuntu 12.04 a new deb package just came through, 1.25.5-1 and toasted my ZM with the same error

Database already at version 1.26.4, update aborted. ZM is now stopped and complainin that the Db is 1.26.4 not 1.26.5 it just happened now~
Cheers
Michael Smith
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Database version issue after upgrading to 1.26.5

Post by Magic919 »

Can you try a suggestion I saw in another thread -
The workaround for this is to put the following line back into your zm.conf file:

ZM_VERSION=1.26.5
-
DigitalDeviant
Posts: 17
Joined: Wed Jul 24, 2013 2:25 pm

Re: Database version issue after upgrading to 1.26.5

Post by DigitalDeviant »

Magic919 wrote:Can you try a suggestion I saw in another thread -
The workaround for this is to put the following line back into your zm.conf file:

ZM_VERSION=1.26.5
Thanks, that looks like it works. It throws errors but seems to run. Likewise starting the service throws errors but works.

Code: Select all

zmupdate.pl --version=1.26.4 --user=xxx --pass=xxx
Constant subroutine main::ZM_VERSION redefined at /usr/bin/zmupdate.pl line 47
        main::BEGIN() called at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 47
        eval {...} called at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 47
Prototype mismatch: sub main::ZM_VERSION () vs none at /usr/bin/zmupdate.pl line 47
        main::BEGIN() called at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 47
        eval {...} called at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 47
Subroutine ZoneMinder::Database::ZM_DB_USER redefined at /usr/bin/zmupdate.pl line 102.

Code: Select all

ZoneMinder: Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/vendor_perl/ZoneMinder/Config.pm line 33
I'm still testing but functionality seems OK.
Locked