Empty confluence.cfg.xml



we had issues with our VM on which Jira Confluence is running, and after we have recovered from that failure, Confluence is throwing error when we try to access it, error is on pastebin:



I have searched web and found out that my confluence.cfg.xml file located in /var/atlassian/confluence is empty.


I have tried using confluence.cfg.xml file located in /var/atlassian/confluence/shared-home that I believe is generated by installer and should be same as the one used by application.


From what I could see, database is OK and healthy.


Any suggestions?


Database in question is MySQL.

2 answers

0 votes
Ann Worley Atlassian Team Jan 11, 2018

Wow, sounds like an ordeal, but I think we are close to getting Confluence up again.

Confluence uses the confluence.cfg.xml in the root of the directory defined in the following file: <confluence_install>/confluence/WEB-INF/classes/confluence-init.properties.

If that file is blank it could cause "Spring Application context has not been set" as in your pastebin post.

Please refer to these guides for resolutions: How to Generate a New confluence.cfg.xml and Confluence does not start due to Spring Application context has not been set 

It happened to me too. I was wondering what was the issue and saw the confluence.cfg.xml was empty!

I just restored the file from backups and restarted confluence.

Something weird is happening. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

865 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you