Unable to load atlassian-user.xml configuration to connect to LDAP
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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.
*Except Fisheye and Crucible
Symptoms
Bamboo fails to use the configured BAMBOO_HOME/xml-data/configuration/atlassian-user.xml
file to connect to LDAP and shows this error:
1
2
3
4
5
6
7
8
9
10
11
12
13
2013-05-22 17:40:34,680 ERROR [main] [ContextLoader] Context initialization failed
...
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at com.atlassian.bamboo.server.Server.main(Server.java:74)
Caused by: com.atlassian.user.configuration.ConfigurationException: Unable to load atlassian-user configuration: org.dom4j.DocumentException: Error on line 12 of document : The element type "groupSearchFilter" must be terminated by the matching end-tag "</groupSearchFilter>". Nested exception: The element type "groupSearchFilter" must be terminated by the matching end-tag "</groupSearchFilter>".
at com.atlassian.user.configuration.xml.XMLConfigurationParser.parse(XMLConfigurationParser.java:93)
at com.atlassian.user.configuration.xml.XMLConfiguration.init(XMLConfiguration.java:91)
at com.atlassian.crowd.integration.atlassianuser.AbstractDynamicUserConfiguration.loadConfiguration(AbstractDynamicUserConfiguration.java:56)
at com.atlassian.crowd.integration.atlassianuser.AbstractDynamicUserConfiguration.<init>(AbstractDynamicUserConfiguration.java:24)
at com.atlassian.crowd.integration.atlassianuser.AbstractDynamicUserConfiguration$$EnhancerByCGLIB$$1ccb3615.<init>(<generated>)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
...
Cause
The groupSearchFilter
tag in the atlassian-user.xml
file is not closed properly.
Resolution
Please make sure that you have a correct <groupSearchFilter>
tag and a matching (closing) </groupSearchFilter>
tag. Check for typos.
For more information about LDAP configuration for Bamboo, please refer to this page.
Was this helpful?