22.1->22.2 upgrade: minor doco note and error

Support and queries relating to all previous versions of ZoneMinder
Locked
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

22.1->22.2 upgrade: minor doco note and error

Post by Baylink »

It might be good to note in the upgrade section of the documentation that running the new build stomps the old zm.conf file (or at least it is for me), and that the zm.conf file *must be re-edited to contain the proper ZM_DB_USER and ZM_DB_PASS* *even if you're supplying the -u and -p options*.

Also, the zmupdate script (which the doco still says is in the build directory; it's actually in the scripts subdirectory) threw me this error:

Code: Select all

acsi:/appl/ZoneMinder-1.22.2/scripts # perl zmupdate.pl -v 1.22.1 -u root -p terdea
Update agent starting at 06/05/30 11:26:37

Initiating database upgrade to version 1.22.2
Please ensure that ZoneMinder is stopped on your system prior to upgrading the database.
Press enter to continue or ctrl-C to stop :

Do you wish to take a backup of your database prior to upgrading?
This may result in a large file if you have a lot of events.
Press 'y' for a backup or 'n' to continue : y
Creating backup to zm-1.22.1.dump. This may take several minutes.
Database successfully backed up to zm-1.22.1.dump, proceeding to upgrade.

Upgrading database to version 1.22.2

Database successfully upgraded from version 1.22.1.
Loading config from DB
DBI::db=HASH(0x874a43c)->disconnect invalidates 1 active statement handle (either destroy statement handles or call finish on them before disconnecting) at /usr/lib/perl5/site_perl/5.8.1/ZoneMinder/ConfigAdmin.pm line 1649, <STDIN> line 2.
Saving config to DB

Database upgrade to version 1.22.2 successful.
Update agent exiting at 06/05/30 11:26:49
acsi:/appl/ZoneMinder-1.22.2/scripts #
It thinks it succeeded, and maybe it's right... but that looks like maybe a minor bug. SuSE 9.0; factory (RPM) perl.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks. I will check the DBI issue, though I don't think it is anything other than a warning.

If you pass in your db user and pass via configure then zm.conf should be generated correctly. I don't know how this flies with the rpm though as I don't really have a lot to do with that.
Phil
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Post by Baylink »

I built from source, but I likely don't have the ZM_DB_USER and ZM_DB_PASS specified in the ./build script I built to capsulize the call to configure, which is probably why.

Configure builds everything in zm.conf? So it's never necessary to pick manual configuration up from the old one in an upgrade?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Pretty much. You should be able to build and install each version from it's own dir. So long as you use the same configure options everything else should be hunky dory.
Phil
Locked