Tried upgrading to 6.0 EAP (build 15638) but fails

Just tried upgrading to new EAP build but the upgrade screen just keeps refreshing with a status of 'starting upgrade'.  I took a look in the teamcity-server.log and found the following.

[2010-11-02 22:10:47,734]   INFO - ide.db.TeamCityDatabaseManager - Using the following database settings:
    database type: HSQLDB
    database driver: org.hsqldb.jdbcDriver
    connection: jdbc:hsqldb:file:D:/shares/Software/Settings/TeamCity/Server Config/system/buildserver
    login as: <empty>
[2010-11-02 22:57:44,609]   INFO - brains.buildServer.MAINTENANCE - Initializing...
[2010-11-02 22:57:44,656]   INFO - brains.buildServer.MAINTENANCE - Will export all builds.
[2010-11-02 22:57:44,656]   INFO - brains.buildServer.MAINTENANCE - Listing tables...
[2010-11-02 22:57:44,671]  ERROR - brains.buildServer.MAINTENANCE - java.lang.NullPointerException

Let me know if you need any more info.

Cheers.

5 comments

Can you please enable debug server logs so that the stacktrace of the erorr is logged and attach it here?

0

Hi,

I'm on holiday till the 21st but will do so when I get back.

Cheers,
Martin

0

Hi Yegor,

The stack race is as follows (this attempt was using the latest RC2):

[2010-11-22 21:39:40,906]  ERROR - brains.buildServer.MAINTENANCE -  
java.lang.NullPointerException
 at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:180)
 at com.google.common.collect.Lists.newArrayList(Lists.java:106)
 at com.google.common.collect.Collections2.toCollection(Collections2.java:74)
 at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:183)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor.perfromBackup(BackupProcessor.java:264)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor.access$000(BackupProcessor.java:45)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor$1.run(BackupProcessor.java:215)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor$1.run(BackupProcessor.java:211)
 at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.withDB(TeamCityDatabaseManager.java:488)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor.runProcessWithDatabaseAndFiles(BackupProcessor.java:210)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor.runProcess(BackupProcessor.java:172)
 at jetbrains.buildServer.serverSide.maintenance.AbstractMaintenanceProcess.run(AbstractMaintenanceProcess.java:133)
 at jetbrains.buildServer.serverSide.maintenance.MaintenanceProcessManagerImpl$ProcessProxy.run(MaintenanceProcessManagerImpl.java:153)
 at java.lang.Thread.run(Unknown Source)
[2010-11-22 21:39:40,921]  ERROR -   jetbrains.buildServer.SERVER - Server startup exception: java.lang.NullPointerException
java.lang.NullPointerException
 at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:180)
 at com.google.common.collect.Lists.newArrayList(Lists.java:106)
 at com.google.common.collect.Collections2.toCollection(Collections2.java:74)
 at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:183)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor.perfromBackup(BackupProcessor.java:264)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor.access$000(BackupProcessor.java:45)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor$1.run(BackupProcessor.java:215)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor$1.run(BackupProcessor.java:211)
 at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.withDB(TeamCityDatabaseManager.java:488)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor.runProcessWithDatabaseAndFiles(BackupProcessor.java:210)
 at jetbrains.buildServer.serverSide.maintenance.BackupProcessor.runProcess(BackupProcessor.java:172)
 at jetbrains.buildServer.serverSide.maintenance.AbstractMaintenanceProcess.run(AbstractMaintenanceProcess.java:133)
 at jetbrains.buildServer.serverSide.maintenance.MaintenanceProcessManagerImpl$ProcessProxy.run(MaintenanceProcessManagerImpl.java:153)
 at java.lang.Thread.run(Unknown Source)
[2010-11-22 21:39:40,937]  ERROR -   jetbrains.buildServer.SERVER - Express backup has failed.

0

Martin,

It seems that backup is not supported for the version you were using previously or the databse is not in a consistent state.

What version do you try to upgrade from?

Anyway, we should improve the reporting, so I filed the issue as TW-14508.

Please reply there.

0

I was upgrading from EAP builds 15509 to 15638 and then from 15509 to 15700.  I've reverted back to version 15509 and am unable to create a data backup using the link in the Administration page. I guess it looks like the database is not right.  I'm just going to do a complete refresh using 15700.  I only had one build configuration so shouldn't be too much hassle.

0

Please sign in to leave a comment.