Bamboo does not start due to empty administration.xml file
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
問題
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
...
原因
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)
ソリューション
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.