MigrateDB.bat failing

Hello All!

I'm trying to migrate to MySQL from the default built in database and running into problems.

I'm running:
Window Server 2003 Standard
TeamCity 3.1.1
MySQL 5.0.51b
mysql connector 5.0.8

I don't have any jre or jdk installed.

I've been following the instructions at http://www.jetbrains.net/confluence/display/TCD3/Migrating+to+an+External+Database for a 3.1 upgrade.

I've installed TeamCity under C:\TeamCity and the configuration directory is C:\TeamCity\Configuration

This is the exception I'm getting:
C:\TeamCity\bin>migratedb migrate
TeamCity data directory (TEAMCITY_DATA_PATH) is not defined.
Enter TeamCity data directory (.BuildServer) path [C:\Documents and Settings\Adm
inistrator.CORE\.BuildServer]:C:/TeamCity/Configuration/system/buildserver
Using TeamCity data directory location: "C:/TeamCity/Configuration/system/builds
erver" Set TEAMCITY_DATA_PATH property to override.
TeamCity database migration utility.

Using propeties file 'dbMigration.properties'.
Mon May 26 20:24:41 MDT 2008 Connecting to the source database jdbc:hsqldb:file:
C:/TeamCity/Configuration/system/buildserver
Mon May 26 20:24:41 MDT 2008 Connecting to the target database jdbc:mysql://loca
lhost:3306/teamcity
Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/Sign
ature
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at jetbrains.buildServer.serverSide.DBMTool.main(DBMTool.java:116)
Critical error has occurred during migration.
Done.

Anyone have any ideas about what's going on?

Cheers,
Jonah

2 comments

Jonah,

Seems, some extra libs are put in the classpath and cause the error.

Please make sure you used "mysql-connector-java-5.0.8-bin.jar" form the root of the driver distribution, NOT "mysql-connector-java-5.0.8-bin-G.jar" form the "debug" directory of MySQL connector.

If this is not the case, we will need additional details on your installation, like:
How TeamCity was installed?
What is the output on executing "findJava.bat" from the TeamCity\bin ?
Could you remove the first line in the migrateDB.bet (@echo off), rerun the script and let us know the console output?

--
Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.