Bamboo 6.3.0 won't start
Asked by DPool:

Hello,

We are using Bamboo 6.3.0 on Windows 2012. Everything was working fine with this install until recently when the service failed to start on a system reboot. Nothing with the Bamboo or Java configuration has changed.

The Bamboo log looks normal until it gets to the system information box, at which point it records the warning below:

2019-01-15 19:38:52,075 ERROR \[setupDefaultGeneralBackgroundThread\] \[XmlWebApplicationContext\] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoFactory' defined in class path

After throwing this warning the service begins shutting down. We've double checked the ownership and confirmed that the system account running the Bamboo service has full read/write access to the Bamboo home directory. What else should we check to resolve this?


Answers:
author: Daniel Santos
body: Hi [@DPool](/t5/user/viewprofilepage/user-id/2565133),

We have very few cases with a similar error and they were related to a misleading configuration file (that could be either missing or corrupted).

Do you mind checking if the file **\<Bamboo_Home\>\\xml-data\\configuration\\administration.xml** is there and if it has content inside?  

This would be default content for a Bamboo 6.7.2 instance:  

```
<AdministrationConfiguration>
 <myBaseUrl>http://myBambooUrl</myBaseUrl>
 <myUseGzipCompression>true</myUseGzipCompression>
 <myInstanceName>Atlassian Bamboo</myInstanceName>
 <deploymentExpiryEnabled>true</deploymentExpiryEnabled>
 <myBuildExpiryConfiguration>
 <myDuration>0</myDuration>
 <buildsToKeep>0</buildsToKeep>
 <maxIgnoredLogSize>-1</maxIgnoredLogSize>
 <expiryTypeNothing>false</expiryTypeNothing>
 <expiryTypeResult>false</expiryTypeResult>
 <expiryTypeArtifact>false</expiryTypeArtifact>
 <expiryTypeBuildLog>false</expiryTypeBuildLog>
 <enabled>false</enabled>
 </myBuildExpiryConfiguration>
 <myBuildHangingConfig>
 <multiplier>2.5</multiplier>
 <minutesBetweenLogs>20</minutesBetweenLogs>
 <minutesBeforeQueueTimeout>5</minutesBeforeQueueTimeout>
 <disabled>false</disabled>
 </myBuildHangingConfig>
 <concurrentBuildConfig>
 <enabled>false</enabled>
 <numberConcurrentBuilds>1</numberConcurrentBuilds>
 </concurrentBuildConfig>
 <storageLimits>
 <softLimit>20</softLimit>
 <hardLimit>25</hardLimit>
 </storageLimits>
 <dashboardPageSize>50</dashboardPageSize>
 <enableSignup>true</enableSignup>
 <enableAnonymousAccess>true</enableAnonymousAccess>
 <enableViewContactDetails>false</enableViewContactDetails>
 <enableRestrictedAdmin>false</enableRestrictedAdmin>
 <soxComplianceModeEnabled>false</soxComplianceModeEnabled>
 <remoteAgentFunctionEnabled>true</remoteAgentFunctionEnabled>
 <remoteAgentAuthenticationEnabled>true</remoteAgentAuthenticationEnabled>
 <auditLoggingEnabled>true</auditLoggingEnabled>
 <gravatarSupportEnabled>true</gravatarSupportEnabled>
 <gravatarServerUrl>https://secure.gravatar.com/avatar/</gravatarServerUrl>
 <showAdminContactDetailsToAnonymousUsers>false</showAdminContactDetailsToAnonymousUsers>
 <unauthenticatedRemoteTriggerAllowed>false</unauthenticatedRemoteTriggerAllowed>
 <systemProperties/>
 <buildHangedInQueueNotificationTimeout>120</buildHangedInQueueNotificationTimeout>
 <branchDetectionCheckInterval>300</branchDetectionCheckInterval>
 <xsrfProtectionEnabled>true</xsrfProtectionEnabled>
 <xsrfAllowsMutativeGets>false</xsrfAllowsMutativeGets>
 <serializationSecurityConfig>
 <bandanaMethod>STRICT_BLACKLIST</bandanaMethod>
 <xStreamMethod>WHITELIST</xStreamMethod>
 </serializationSecurityConfig>
 <securityTokenRequiredFromAgents>false</securityTokenRequiredFromAgents>
 <manageAcceptedSshHostKeys>false</manageAcceptedSshHostKeys>
 <rssSecurityConfiguration>
 <enabled>true</enabled>
 <executeSpecsInDocker>true</executeSpecsInDocker>
 <dockerImage>atlassian/bamboo-specs-runner:6.7.2</dockerImage>
 </rssSecurityConfiguration>
</AdministrationConfiguration>
```

(!) Please make sure you don't add any sensitive information from your instance in community threads.

comments: author: DPool
body: Hi Daniel,

That folder had two files, "administration" which is 0KB and "administration - copy" that is 6KB. I backed up the two files, and renamed the original to .old and then renamed the copy to just administration. The XML file looks correct.

I started the service, but the Bamboo site is still unavailable. Unlike previously, the service does at least stay running. What would you suggest we check next?


author: Daniel Santos
body: Do you see any new error in the logs?  
Have you tried to access the instance though its direct IP to avoid any proxy issue?  


author: DPool
body: Bingo! We found another configuration file with bad data that was loading. It looks like removing that has solved our issue. This can be considered resolved.

Thank you very much for the help!


author: Daniel Santos
body: You are welcome mostly [@DPool](/t5/user/viewprofilepage/user-id/2565133)!


author: Jimmy Seddon
body: Thanks again [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125)!

I was running into issues settup up a test server and this helped me resolve those issues.


author: Daniel Santos
body: I'm glad it helped! Thank you [@Jimmy Seddon](/t5/user/viewprofilepage/user-id/512822) for taking the time to share your feedback here. =\]


Tags: server