The error happens because the database hasn't been updated to utf-8 before installing the new BASE version. The safest thing is to revert to a backup and restart from there. If you don't have that possibility you may try the manual "workaround" that is described here: http://base.thep.lu.se/ticket/1169#comment:6
/Nicklas david vilanova wrote: > H, > While trying to uypdate to 2.12.1 i got the following errors. > Current schema version=65 > > I might help that i didn't apply the utf8 fiw when i moved from 2.8.2 to > 2.9.1. I realized that when tryning to upgrade to 2.12.1. So before > upgrading i have applied the utf8 fix that has converted the encoding > charset to utf8 successfully. > > After that when applying sh updatedb.sh password i have the following > problems (compaling about a duplicate key ???) > Any help would be appreciated. > > [0%] --System information----------------------------- > BASE : 2.12.1 > Database : > jdbc:mysql://localhost/base2?useCursorFetch=true&defaultFetchSize=100&useServerPrepStmts=true > Dialect : > org.hibernate.dialect.MySQLInnoDBDialect > > > JDBC : com.mysql.jdbc.Driver; version > 5.1 > Java : Java(TM) SE Runtime Environment; 1.6.0_11-b03; Sun > Microsystems Inc. > OS : Linux; i386; > 2.6.27.7-desktop-1mnb > > > ------------------------------------------------- > > > [0%] Building > database........................ > > > [30%] Database built > successfully. > > > [35%] Initialising > database... > > > [36%] --Creating quota > types... > > [37%] --Creating > quota... > > > [38%] --Creating > roles... > > > [39%] --Creating > users... > > > [40%] --Creating > groups... > > > [41%] --Creating > keys... > > > [42%] --Creating units...09:23:26,141 ERROR Install:1468 - createUnit: > FAILED [name=Megaohm] > net.sf.basedb.core.DatabaseException: Duplicate entry '18-M?' for key > 2 > at > net.sf.basedb.core.HibernateUtil.commit(HibernateUtil.java:1021) > > > at > net.sf.basedb.core.Install.createUnit(Install.java:1440) > > > at > net.sf.basedb.core.Install.installUnits(Install.java:1341) > > > at > net.sf.basedb.core.Install.initDatabase(Install.java:424) > > > at net.sf.basedb.install.InitDB.main(InitDB.java:74) > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > > > ------------------------------------------------------------------------ > > _______________________________________________ > The BASE general discussion mailing list > basedb-users@lists.sourceforge.net > unsubscribe: send a mail with subject "unsubscribe" to > basedb-users-requ...@lists.sourceforge.net ------------------------------------------------------------------------------ _______________________________________________ The BASE general discussion mailing list basedb-users@lists.sourceforge.net unsubscribe: send a mail with subject "unsubscribe" to basedb-users-requ...@lists.sourceforge.net