Bamboo does not start due to empty administration.xml file

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

Problem

When attempting to start Bamboo, the service does not start, and the following appears in the atlassian-bamboo.log

2017-01-03 16:57:47,056 ERROR [localhost-startStop-1] [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'remoteEventsJmsTemplate' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'jmsMessageConverter' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsMessageConverter' defined in class path resource [applicationContextCommon.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bamboo.v2.build.queue.BambooMessageConverter]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException: 
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsMessageConverter' defined in class path resource [applicationContextCommon.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bamboo.v2.build.queue.BambooMessageConverter]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException: 
...
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bamboo.v2.build.queue.BambooMessageConverter]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException: 
...
Caused by: com.thoughtworks.xstream.io.StreamException: 
...
	at com.atlassian.bamboo.persister.file.FileBasedPersister.getAdministrationConfiguration(FileBasedPersister.java:280)
	at com.atlassian.bamboo.configuration.AdministrationConfigurationAccessorImpl.getAdministrationConfiguration(AdministrationConfigurationAccessorImpl.java:26)
...
Caused by: java.io.EOFException: input contained no data
...

Cause

This issue is caused by the <bamboo-home>/xml-data/configuration/administration.xml file being empty.

This file is confirmed by these two lines in the stack, included above:

	at com.atlassian.bamboo.persister.file.FileBasedPersister.getAdministrationConfiguration(FileBasedPersister.java:280)
	at com.atlassian.bamboo.configuration.AdministrationConfigurationAccessorImpl.getAdministrationConfiguration(AdministrationConfigurationAccessorImpl.java:26)

Resolution

If you have a backup of administration.xml, please restore it to the <bamboo-home>/xml-data/configuration directory.

If you do not have administration.xml backed up, you will need to create one. This can be done by installing a separate instance of Bamboo, configured the same as your main Server, and then moving the file to the <bamboo-home>/xml-data/configuration directory on your original Bamboo instance.

 

Last modified on Mar 8, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.