com.cenqua.crucible.hibernate.CruDBException during restore of the backup

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

The following appears in the atlassian-fisheye.log:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 java.io.IOException: Error talking to database: Problem running drop script (you may have to manually drop the DB) D:\Atlassian\fe cru-3.4.3\sql\SQLSERVER2008\schema\drop_76.sql at com.atlassian.crucible.migration.item.SQLBackup.restore(SQLBackup.java:208) at com.atlassian.crucible.migration.item.SQLBackup$1.restore(SQLBackup.java:173) at com.cenqua.fisheye.ctl.Restore.run(Restore.java:197) at com.cenqua.fisheye.ctl.Restore.main(Restore.java:273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:99) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) Caused by: com.cenqua.crucible.hibernate.CruDBException: Problem running drop script (you may have to manually drop the DB) D:\Atl assian\fecru-3.4.3\sql\SQLSERVER2008\schema\drop_76.sql at com.cenqua.crucible.hibernate.DefaultDBControl.dropTables(DefaultDBControl.java:356) at com.atlassian.crucible.migration.item.DBImporter.importData(DBImporter.java:105) at com.atlassian.crucible.migration.item.SQLBackup.restore(SQLBackup.java:192) ... 9 more Caused by: com.cenqua.crucible.hibernate.CruDBException: SQL script error on line 1: "alter table cru_changeset_comment drop const raint FK1C588BB9A697BC70;" ('FK1C588BB9A697BC70' is not a constraint.), please contact http://www.atlassian.com/support/ at com.cenqua.crucible.hibernate.DefaultDBControl.executeScript(DefaultDBControl.java:593) at com.cenqua.crucible.hibernate.DefaultDBControl.executeScript(DefaultDBControl.java:524) at com.cenqua.crucible.hibernate.DefaultDBControl.dropTables(DefaultDBControl.java:352)

Cause

This was observed while trying to restore a backup with Fisheye/Crucible still running.

Resolution

  • Stop Fisheye/Crucibe.

  • Ensure to go over the restore process again using a clean database (from Migrating to an external database you can go to the page of each DBMS in order to check yours is configured properly).

  • Make sure Fisheye/Crucible is stopped during the restore process.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.