Hi there!
We have Confluence running with LDAP user directory (Windows AD). So far everything is working fine.
Now I tried to add an "Default Group Memberships" via LDAP settings. It was empty before, now we wanted to have "confluence-users" as a default group.
But when I click "Save and Test", there is a "System Error".
With empty field, no problem with save and test.
atlassian-confluence.log:
2020-07-29 10:18:26,839 INFO [http-nio-8090-exec-31] [crowd.embedded.admin.ConfigurationController] handleSubmit Configuration test successful for user directory: [ AD Dezernat 3 (ASFRZ) ], type: [ CONNECTOR ]
2020-07-29 10:18:26,840 INFO [http-nio-8090-exec-31] [crowd.embedded.admin.ConfigurationController] doInTransaction User directory updated: [ AD Dezernat 3 (ASFRZ) ], type: [ CONNECTOR ]
2020-07-29 10:18:26,877 ERROR [http-nio-8090-exec-31] [engine.jdbc.spi.SqlExceptionHelper] logExceptions ORA-00001: unique constraint (CONFLUENCE.SYS_C009850) violated
-- referer: https://CONFLUENCE-SERVER/plugins/servlet/embedded-crowd/configure/ldap/?directoryId=1572866&xsrfTokenName=atl_token&xsrfTokenValue=75728ccc58202a1e3735ec07dc78e120605fce8e | url: /plugins/servlet/embedded-crowd/configure/ldap/ | traceId: 0a79e2ca6eb1b9d3 | userName: atlassian-admin
2020-07-29 10:18:26,878 ERROR [http-nio-8090-exec-31] [org.hibernate.internal.ExceptionMapperStandardImpl] mapManagedFlushFailure HHH000346: Error during managed flush [org.hibernate.exception.ConstraintViolationException: could not execute statement]
-- referer: https://CONFLUENCE-SERVER/plugins/servlet/embedded-crowd/configure/ldap/?directoryId=1572866&xsrfTokenName=atl_token&xsrfTokenValue=75728ccc58202a1e3735ec07dc78e120605fce8e | url: /plugins/servlet/embedded-crowd/configure/ldap/ | traceId: 0a79e2ca6eb1b9d3 | userName: atlassian-admin
2020-07-29 10:18:26,883 WARN [http-nio-8090-exec-31] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doCommit Commit failed. Rolling back. Error: Hibernate operation: could not execute statement; sql=n/a; ORA-00001: unique constraint (CONFLUENCE.SYS_C009850) violated
; nested exception is java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (CONFLUENCE.SYS_C009850) violated
-- referer: https://CONFLUENCE-SERVER/plugins/servlet/embedded-crowd/configure/ldap/?directoryId=1572866&xsrfTokenName=atl_token&xsrfTokenValue=75728ccc58202a1e3735ec07dc78e120605fce8e | url: /plugins/servlet/embedded-crowd/configure/ldap/ | traceId: 0a79e2ca6eb1b9d3 | userName: atlassian-admin
2020-07-29 10:18:26,883 WARN [http-nio-8090-exec-31] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
->[PluginReadWriteTx]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1233032830)
[com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJobDao.delete]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #83990004)
[com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJobDao.find]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #68856829)
[com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJobDao.find]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #604481428)
[com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJobDao.find]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #469387056)
[com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJobDao.delete]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #492750570)
-- referer: https://CONFLUENCE-SERVER/plugins/servlet/embedded-crowd/configure/ldap/?directoryId=1572866&xsrfTokenName=atl_token&xsrfTokenValue=75728ccc58202a1e3735ec07dc78e120605fce8e | url: /plugins/servlet/embedded-crowd/configure/ldap/ | traceId: 0a79e2ca6eb1b9d3 | userName: atlassian-admin
2020-07-29 10:18:26,885 ERROR [http-nio-8090-exec-31] [atlassian.plugin.servlet.ServletModuleContainerServlet] service Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not execute statement; sql=n/a; ORA-00001: unique constraint (CONFLUENCE.SYS_C009850) violated
; nested exception is java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (CONFLUENCE.SYS_C009850) violated
-- referer: https://CONFLUENCE-SERVER/plugins/servlet/embedded-crowd/configure/ldap/?directoryId=1572866&xsrfTokenName=atl_token&xsrfTokenValue=75728ccc58202a1e3735ec07dc78e120605fce8e | url: /plugins/servlet/embedded-crowd/configure/ldap/ | traceId: 0a79e2ca6eb1b9d3 | userName: atlassian-admin
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not execute statement; sql=n/a; ORA-00001: unique constraint (CONFLUENCE.SYS_C009850) violated
; nested exception is java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (CONFLUENCE.SYS_C009850) violated
...
and many more stacktraces.
Confluence Server version 7.4.1.
Any idea, what this causes?
Greetings
Uwe