Empty confluence.cfg.xml

Hello,

 

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:

https://pastebin.com/EyMxmMzW

 

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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

100 views 0 6
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