Error upgrading from 1.20.1 to 1.21.0

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
amit
Posts: 44
Joined: Wed Nov 17, 2004 11:35 am
Location: New Delhi

Error upgrading from 1.20.1 to 1.21.0

Post by amit »

There seems to be error in the database when upgrading from 1.20.1 to 1.21.0
The error is related with the ZM_OPT_CONTROL value in the config table, which is not insert into the Config table.
Although after upgrading, the schema gets updated but the values are not inserted.
This error would not alllow the ZM service to be started.
Make sure to insert this values in the Config if there is any error related with ZM_OPT_CONTROL
________
Suzuki GS500 history
Last edited by amit on Tue Feb 01, 2011 2:27 am, edited 1 time in total.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Any new configuration should be inserted when you rerun zmconfig.pl during the upgrade. Are you saying that this did not happen?

Phil
User avatar
amit
Posts: 44
Joined: Wed Nov 17, 2004 11:35 am
Location: New Delhi

Post by amit »

i don't want to effect my old db which has the events and just want alter the tables in that...
so what I did is ...
used the scripts available in db directory..to upgrade..
there should have been something to insert..
although running zmconfig.pl -noi will insert values into tables....
I don't want to disturb m earlier values...
________
Ford Tempo history
Last edited by amit on Tue Feb 01, 2011 2:27 am, edited 1 time in total.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You must run zmconfig.pl -noi (at least) when doing an upgrade as otherwise you may get errors if the configuration is reindexed (which it nearly always is). It will preserve your existing settings and only insert anything new (and delete anything not used any more).

It's always worth doing a DB backup to be on the safe side though.

Phil
Locked