Bamboo fails to start with repeated messages about systemInfoFactory
Asked by Mike Edwards:

I got some odd behavior where I was unable to stop a fairly simple cron type job so I restarted my bamboo version 7.2.1 build 70207 server and got a 404 page once Tomcat started up. I checked /var/atlassian/bamboo/logs/atlassian-bamboo.log and see it didn't get very far on startup. First was a warning when it tried to load the system information

2021-07-21 11:07:15,216 INFO \[localhost-startStop-1\] \[lifecycle\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2021-07-21 11:07:15,216 INFO \[localhost-startStop-1\] \[lifecycle\] \* System information \*  
2021-07-21 11:07:15,216 INFO \[localhost-startStop-1\] \[lifecycle\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2021-07-21 11:07:15,264 WARN \[localhost-startStop-1\] \[XmlWebApplicationContext\] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'templateRenderer': Unsatisfied dependency expressed through field 'freemarkerContext'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'freemarkerContext' defined in class path resource \[applicationContextManagers.xml\]: Unsatisfied dependency expressed through constructor parameter 22; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoFactory' 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.configuration.SystemInfoFactory\]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException:

Then a full ERROR when it got further down but it seems similar:

2021-07-21 11:07:15,403 INFO \[localhost-startStop-1\] \[HikariPool\] HikariPool-2 - Close initiated...  
2021-07-21 11:07:15,430 INFO \[localhost-startStop-1\] \[HikariPool\] HikariPool-2 - Closed.  
2021-07-21 11:07:15,437 ERROR \[localhost-startStop-1\] \[ContextLoader\] Context initialization failed  
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'templateRenderer': Unsatisfied dependency expressed through field 'freemarkerContext'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'freemarkerContext' defined in class path resource \[applicationContextManagers.xml\]: Unsatisfied dependency expressed through constructor parameter 22; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoFactory' 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.configuration.SystemInfoFactory\]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException:  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:598)  
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:376)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1404)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:847)  
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)  
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)  
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)  
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)  
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)  
at com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32)  
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4689)  
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5155)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:748)  
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'freemarkerContext' defined in class path resource \[applicationContextManagers.xml\]: Unsatisfied dependency expressed through constructor parameter 22; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoFactory' 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.configuration.SystemInfoFactory\]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException:  
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)  
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:218)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1340)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1186)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)  
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1255)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1175)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:595)  
... 25 more  
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoFactory' 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.configuration.SystemInfoFactory\]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException:  
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:304)  
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1340)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1186)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)  
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:392)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1320)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1159)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:338)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)  
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1255)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1175)  
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857)  
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760)  
... 38 more  
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate \[com.atlassian.bamboo.configuration.SystemInfoFactory\]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException:  
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:184)  
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)  
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:300)  
... 59 more  
Caused by: com.thoughtworks.xstream.io.StreamException:  
at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:126)  
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)  
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)  
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)  
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)  
at com.thoughtworks.xstream.io.xml.XppReader.\<init\>(XppReader.java:63)  
at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)  
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1338)  
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1329)  
at com.atlassian.bamboo.persister.xstream.XStreamAdminConfigPersister.loadConfiguation(XStreamAdminConfigPersister.java:59)  
at com.atlassian.bamboo.persister.file.FileBasedPersister.reloadAdministrationConfiguration(FileBasedPersister.java:210)  
at com.atlassian.bamboo.persister.file.FileBasedPersister.isInitialised(FileBasedPersister.java:202)  
at com.atlassian.bamboo.persister.file.FileBasedPersister.getAdministrationConfiguration(FileBasedPersister.java:230)  
at com.atlassian.bamboo.configuration.AdministrationConfigurationAccessorImpl.getAdministrationConfiguration(AdministrationConfigurationAccessorImpl.java:23)  
at com.atlassian.bamboo.build.fileserver.DefaultBuildDirectoryManager.getAgentPathPrefix(DefaultBuildDirectoryManager.java:50)  
at com.atlassian.bamboo.build.fileserver.DefaultBuildDirectoryManager.getWorkingDirectoryOfCurrentAgent(DefaultBuildDirectoryManager.java:33)  
at com.atlassian.bamboo.configuration.SystemInfoImpl.\<init\>(SystemInfoImpl.java:116)  
at com.atlassian.bamboo.configuration.SystemInfoFactory.getSystemInfo(SystemInfoFactory.java:31)  
at com.atlassian.bamboo.configuration.SystemInfoFactory.\<init\>(SystemInfoFactory.java:27)  
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)  
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)  
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)  
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172)  
... 61 more  
Caused by: java.io.EOFException: input contained no data  
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)  
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)  
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)  
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)  
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)  
at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)  
... 84 more

2021-07-21 11:07:15,499 INFO \[localhost-startStop-1\] \[UpgradeLauncher\] Starting UpgradeLauncher  
2021-07-21 11:07:15,503 FATAL \[localhost-startStop-1\] \[UpgradeLauncher\] Failed to initialise Bamboo container  
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'templateRenderer': Unsatisfied dependency expressed through field 'freemarkerContext'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'freemarkerContext' defined in class path resource \[applicationContextManagers.xml\]: Unsatisfied dependency expressed through constructor parameter 22; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoFactory' 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.configuration.SystemInfoFactory\]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException:  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:598)  
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:376)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1404)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:847)  
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)  
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)  
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)  
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)  
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)  
at com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32)  
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4689)  
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5155)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:748)

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'freemarkerContext' defined in class path resource \[applicationContextManagers.xml\]: Unsatisfied dependency expressed through constructor parameter 22; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoFactory' 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.configuration.SystemInfoFactory\]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException:  
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)  
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:218)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1340)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1186)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)  
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1255)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1175)  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:595)  
... 25 more  
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoFactory' 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.configuration.SystemInfoFactory\]: Constructor threw exception; nested exception is com.thoughtworks.xstream.io.StreamException:  
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:304)  
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1340)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1186)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)


Answers:
author: Cristiano Mariano
body: Hi [@Mike Edwards](/t5/user/viewprofilepage/user-id/2838509) ! How are you doing?

```
Caused by: java.io.EOFException: input contained no data
```

It seems to me that Bamboo is trying to read an empty XML file.

Would you please check whether the file **bamboo.cfg.xml**has content?

Bamboo rewrites it when you make a configuration change and if it fails to write after having cleaned it, it would then become empty. It happened to me a long time ago.

In this case, you would have to recover it from a backup.

Hope this helps!

comments: author: Mike Edwards
body: I think you're probably right in general about it having trouble with some input file, but it doesn't appear to be that file in particular, unless there is something very strange going on. bamboo.cfg.xml has content and is RW to the application user. Any other favorite config files?

Thanks for the suggestion!


author: Cristiano Mariano
body: Hi [@Mike Edwards](/t5/user/viewprofilepage/user-id/2838509) !

It may be the **\<bamboo-home\>/xml-data/configuration/administration.xml** file.

I have found this KB: <https://confluence.atlassian.com/bamkb/bamboo-does-not-start-due-to-empty-administration-xml-file-875419940.html>

Hope this helps!


author: Mike Edwards
body: Looks like that was it! Thanks! I hadn't quite gotten to doing find \<bamboo-home\> -name \*.xml and comparing it to the results on the test server yet because I was trying to get people up and running on the test server, but that was next on my list.


author: Mike Edwards
body: Interesting that the error stack for that KB article is significantly different than mine. Anyway, hope this thread helps out someone.


author: Cristiano Mariano
body: Great to hear that!

I believe that depending on your Bamboo version or the apps you have installed, the Spring Beans may initiate in a different order, so it may show different beans in the trace.

But the when it comes to the source of the issue, your trace and the KB one are identical:

    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?