CONFLUENCE does not start anymore - confluence.cfg.xml was destroyed Edited

My confluence server does not start anymore.

Analysing revealed that confluence.cfg.xml has 3kB but is filled with zeros only, so it is an invalid config file.

Is there a chance to get the system up again?
Is there a chance to get the data back?

This is extremely frustrating and causes doubts into using Atlassian products for me.

1 answer

0 votes

There is nothing in an Atlassian application that would destroy a file in that way.  Something outside it has destroyed the file.

To recreate it, you should be able to install a new Confluence somewhere and pretty much copy the file out of the clean install, adjusting the handful of settings in it.  Most are standard for any given class of install - standalone, development (SDK) and data-centre ones will differ a lot, but if your original install was built standalone, you can use one from another standalone and just hack the database settings.

However, whatever external process destroyed it could be affecting other parts of the installation, so you really need to find out what script or admin did the damage, so you can assess and prevent it.

Thank you fo your constructive reply. Much effort, but promising.

Cetainly this is a bug or whatever you want to call it: https://jira.atlassian.com/browse/CONFSERVER-9715

No other process goes into the Atlassian directory, overwriting the config file with zeros - never ever.

Are you telling me you are on Confluence 2?  That bug does exist, I'd forgotten it, as it's so old.  But, it just empties the file, it does not write 0s over it.  Which is why I still think it's going to be an external thing.

Do you need a hand editing a copy of the config file?

Thank you Nic

I have no clue which Confluence I have. It does not start at all.  Which file should I check to find out the version?

Is there any sample for the config file?

I had a straightforward installation with maybe some plugins that were not very important. Maybe with a template of a config I could get it running.

 

If you have hints on that, I would appreciate.

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...

1,040 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