when loading server.xml

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.


Bitbucket Server fails to load the server.xml and the following appears in the catalina.out:

28-Jul-2016 19:00:00.000 SEVERE [main] com.atlassian.stash.internal.catalina.startup.Bootstrap.logError Copying fallback default-server.xml to shared home; no other server.xml file was found
28-Jul-2016 19:00:00.001 SEVERE [main] com.atlassian.stash.internal.catalina.startup.Bootstrap.logException Failed to copy /opt/atlassian/bitbucket/4.5.2/conf/.default-server.xml to /var/atlassian/application-data/bitbucket/shared/server.xml /var/atlassian/application-data/bitbucket/shared/server.xml (Permission denied)
	at Method)
	at com.atlassian.stash.internal.catalina.startup.Bootstrap$ArgumentDecorator.copyFallbackServerXmlTo(
	at com.atlassian.stash.internal.catalina.startup.Bootstrap$ArgumentDecorator.apply(
	at com.atlassian.stash.internal.catalina.startup.Bootstrap.main(


Diagnostic Steps

  • Check the permissions and ownership over the server.xml file by running:

    ls -l /var/atlassian/application-data/bitbucket/shared


  • The ownership over the server.xml file isn't not properly set. In the case above, it was set as follows:

    -rw------- 1 atlbitbucket  root    7662 Jul 28 12:00 server.xml

    The user is properly set as "atlbitbucket" as this is the user running the application, but it's related to the group "root".


  • Adjust the ownership over the server.xml file according to the user running the application, then restart Bitbucket Server:

    chown atlbitbucket:atlbitbucket server.xml

Last modified on Apr 6, 2017

Was this helpful?

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