If you get an exception similar to those shown below, it is a good idea to increase the logging levels of your Confluence instance. If you request Atlassian support, this additional logging will help us work out the cause of the error.
ログ レベルを上げると、以下のようなエラーの診断が可能になります。
org.springframework.dao.DataIntegrityViolationException: (HibernateTemplate): data integrity violated by SQL ''; nested exception is java.sql.BatchUpdateException: Duplicate entry '1234' for key 1 at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:88) caused by: java.sql.BatchUpdateException: Duplicate entry '1234' for key 1 at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement.java:647) |
または
(HibernateTemplate): data integrity violated by SQL ''; nested exception is java.sql.BatchUpdateException: ORA-00001: unique constraint (CONFLUENCE.SYS_C0012345) violated |
このドキュメントでは、システムのログを増加させる手順を説明します。
|
With Confluence 2.7 and later, you can adjust logging levels at runtime via the Administration Console — read the instructions. Below we tell you how to edit the log4j files directly. |
confluence/WEB-INF/classes/log4j.properties を開き、以下の行のコメント化を解除します。2 つの ## がある行はコメントなので、このままにしておきます。
## log hibernate prepared statements/SQL queries (equivalent to setting 'hibernate.show_sql' to 'true') #log4j.logger.net.sf.hibernate.SQL=DEBUG ## log hibernate prepared statement parameter values #log4j.logger.net.sf.hibernate.type=DEBUG |
log4j.properties file, please add them to the end of it.CONFLUENCE.SYS_C0012345) が参照するテーブルと列を問い合わせ、その情報をサポート チケットに追加します。confluence/WEB-INF/classes/log4j.properties を再度開いて、手順 1 で追加した 4 行を削除します (追加のログ取得はパフォーマンスに影響を与えるため、この手順が完了したら無効にする必要があります)。Enabling Detailed SQL Logging
Working with Confluence Logs
Troubleshooting failed XML site backups