Reviews cannot be created due to ConstraintViolationException
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
問題
When creating a review, the following message is displayed to the user:
URL: /json/cru/createReviewDialog
An org.hibernate.exception.ConstraintViolationException was encountered
could not execute statement
ORA-00001: unique constraint (CRUCIBLE.SYS_C0054150) violatedatlassian-fisheye-YYYY-MM-DD.log に次のエラーが返される。
WARN [qtp1345923076-254092 ] org.hibernate.engine.jdbc.spi.SqlExceptionHelper SqlExceptionHelper-logExceptions - SQL Error: 1, SQLState: 23000
ERROR [qtp1345923076-254092 ] org.hibernate.engine.jdbc.spi.SqlExceptionHelper SqlExceptionHelper-logExceptions - ORA-00001: unique constraint (CRUCIBLE.SYS_C0054150) violated
ERROR [qtp1345923076-254092 ] fisheye SessionState-commitAllTx - Commit failed. Rolling back.
org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:74) [hibernate-core-4.2.13.Final.jar:4.2.13.Final]
...
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (CRUCIBLE.SYS_C0054150) violated原因
Two separate Fisheye/Crucible servers (e.g. a test and a production one) are connecting to the same database.
There is an existing suggestion to prevent this case from happening: FE-6658 - Prevent multiple Crucible instances connecting to a single database
ソリューション
Stop the non-production Fisheye/Crucible server.
この内容はお役に立ちましたか?