Bamboo Data Center Installation is failing with exception : ERROR Unable to create file
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
Summary
This knowledge base article covers a scenario where Bamboo Installation was failing with exception: ERROR Unable to create file /logs/atlassian-bamboo.log
Environment
The issue was seen on Bamboo 9.6.4, but the solution will also apply to any other supported version.
Diagnosis
Looking at <bamboo-install>logs>catalina.out file we can see the below exception
1
ERROR Unable to create file /logs/atlassian-bamboo.log java.io.IOException: Could not create directory /logs
if we go inside the folder <bamboo-home> directory, we'll not see <bamboo-home>logs folders created.
Cause
Cause 1
Bamboo user which is starting up the service is not having proper read/write access to the <bamboo-home> directory.
Cause 2
<bamboo-home> path not defined under bamboo-init.properties file in the installation directory.
Solution
Solution 1
Please provide full read/write access to the bamboo user which is running the service to <bamboo-home> path and restart the Bamboo service.
Solution 2
Please provide the correct <bamboo-home> path inside <bamboo-install>/atlassian-bamboo/WEB-INF/classes>bamboo-init.properties file and restart the Bamboo service.
Was this helpful?