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

This widget could not be displayed.

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.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

52 views 1 0
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