Restoration failed: Error executing update for SQL statement 'DROP TABLE

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

 

 

問題

Following error thrown during restoration, restoration failed, hit to 505 error

The following appears in the atlassian-jira.log

 /secure/SetupDatabase.jspa [c.a.jira.startup.DatabaseInitialImporter] Error importing data: com.atlassian.activeobjects.spi.ActiveObjectsImportExportException: There was an error during import/export with plugin JIRA DVCS Connector Plugin(com.atlassian.jira.plugins.jira-bitbucket-connector-plugin) #3.3.30 (table AO_E8B6CC_REPOSITORY_MAPPING):Error executing update for SQL statement 'DROP TABLE "AO_E8B6CC_REPOSITORY_MAPPING" PURGE'
	at com.atlassian.activeobjects.backup.ImportExportErrorServiceImpl.newImportExportSqlException(ImportExportErrorServiceImpl.java:26)
	at com.atlassian.activeobjects.backup.SqlUtils.onSqlException(SqlUtils.java:46)
	at com.atlassian.activeobjects.backup.SqlUtils.executeUpdate(SqlUtils.java:37)
	at com.atlassian.activeobjects.backup.ActiveObjectsDatabaseCleaner.doCleanup(ActiveObjectsDatabaseCleaner.java:67)
	at com.atlassian.activeobjects.backup.ActiveObjectsDatabaseCleaner.cleanup(ActiveObjectsDatabaseCleaner.java:45)
	at com.atlassian.activeobjects.backup.ActiveObjectsBackup.clear(ActiveObjectsBackup.java:160)
	at com.atlassian.jira.bc.dataimport.DefaultDataImportService.removeActiveObjects(DefaultDataImportService.java:1162)
...
Caused by: java.sql.SQLException: ORA-02449: unique/primary keys in table referenced by foreign keys

診断

環境

  • Using Oracle DB

原因

This error is referring to a missing permission in the database, it seems the user used to connect with the database is missing the DROP permission. However, by default this permission is not needed, and the problem originates from the JIRA DVCS Connector Plugin itself.

回避策

Provide the 'drop' permission to the database user. Seek assistance from ORACLE dba on this.

 

 

 

 

最終更新日: 2017 年 10 月 11 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.