Purge DB for reinstalling jira

After a failed upgrade of our test installation I need to reinstall the test instance with 4.4 standalone. The database is sqlserver and obviously isn't empty.

When running the installer, I get the error "The database specified is not empty. Please specify an empty database for your JIRA installation.", but unfortunately I haven't got the permission to install new databases.

How can I purge the old database, so that the installer is able to install cleanly? Is it enough to remove all tables? Views? Functions? What else?

1 answer

1 accepted

Accepted Answer
1 vote

There won't be anything more complex than tables and their indices. Jira doesn't do views, functions, triggers etc, it uses the database more as a slightly structured datastore than a database...

You should find that simply dropping all the tables will do the job fine.

Thank you.

Fortunately I have SSMS and can batch delete these tables like described here:

http://serverfault.com/questions/7251/microsoft-sql-server-management-studio-2008-deleting-multiple-user-tables

From https://developer.atlassian.com/display/AO/Installing+Active+Objects

Atlassian does not recommend that you install or upgrade Active Objects in a production environment, unless instructed by the Atlassian support team.

So, what else should I do?

At first it looked good, but after 90% it failed. I'm using the ActiveObjects plugin 0.15 that was bundled with the 4.4 standalone. UPM doesn't find an updated AO for 4.4.

I need to install 4.4 because I want to test upgrading from 4.4.

2012-11-20 11:14:43,574 JiraImportTaskExecutionThread-1 INFO admin 636x211x2 11b4vha 10.109.54.241,127.0.0.1 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Importing data is 90% complete...
2012-11-20 11:15:10,716 JiraImportTaskExecutionThread-1 INFO admin 636x211x2 11b4vha 10.109.54.241,127.0.0.1 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Finished storing Generic Values.
2012-11-20 11:15:11,219 JiraImportTaskExecutionThread-1 ERROR admin 636x211x2 11b4vha 10.109.54.241,127.0.0.1 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Error importing data: com.atlassian.dbexporter.ImportExportException: java.sql.SQLException: Table 'AO_60DB71_RANK_ISSUE_LINK' does not have the identity property. Cannot perform SET operation.
com.atlassian.dbexporter.ImportExportException: java.sql.SQLException: Table 'AO_60DB71_RANK_ISSUE_LINK' does not have the identity property. Cannot perform SET operation.
	at com.atlassian.dbexporter.importer.SqlServerAroundTableImporter.setIdentityInsert(SqlServerAroundTableImporter.java:45)

I'd raise this one with Atlassian support. I've stayed away from Active Objects because of that warning

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,290 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you