Fisheye/Crucible fail to start due to database schema version error

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Starting Fisheye/Crucible fails with the following error:

2012-09-07 13:11:59,115 ERROR [main ] mortbay.log Slf4jLog-warn - Failed startup of context com.cenqua.fisheye.web.jetty.FishEyeWebApplicationContext@4bdccc{/,/FISHEYE_HOME/fecru-2.7.12/content}
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbControlFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: 
 Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cenqua.crucible.hibernate.DBControlFactoryImpl]: 
 Constructor threw exception; nested exception is java.lang.IllegalStateException:
 Problem starting the database : 
 The current database schema version is 79, but it should be 76 or below. Downgrading of the database is not supported. 
 Please visit http://docs.atlassian.com/fisheye/docs-027/Backing+Up+and+Restoring+Fisheye+Data for information on restoring from a backup

Cause

The current database has been changed because a more recent version of Fisheye/Crucible has been installed on top of it (upgrading it) and it is now trying to run an older version with a recent version's database.

The list below shows a breakdown of Fisheye/Crucible versions to schema versions:

Fisheye/Crucible VersionDatabase Schema Version
4.8.0 - 4.8.15108
4.6.0 - 4.7.3107
4.5.1 - 4.5.4106
4.3.1 - 4.5.0105
4.3.0104
4.2.0 - 4.2.2103
4.1.2 - 4.1.3101
4.1.1100
4.1.099
4.0.3 - 4.0.495
4.0.294
4.0.0 - 4.0.193
3.10.0 - 3.10.491
3.8.0 - 3.9.290
3.6.0 - 3.7.189
3.2.0 - 3.5.587
3.1.0 - 3.1.786
3.0.1 - 3.0.485
3.0.084
2.10.4 - 2.10.881
2.10.0 - 2.10.380
2.8.1 - 2.9.279
2.8.078
2.7.5 - 2.7.1576
2.7.0 - 2.7.475

Resolution

Upgrade the Fisheye/Crucible instance to the version corresponding to the higher database scheme version number, or restore a backup that was created while running the desired version following the backing up and restoring Fisheye/Crucible data guide .

Last modified on Mar 7, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.