Confluence Upgrade and Data Directory Config Issue

I'm moving Confluence off an old server onto a new QA and a new production server. I also need to upgrade. I began by creating a backup of the database, installing the current version of Confluence (4.0.3) and pointing the new instance to the database backup. That gave me a working version identical to my current production version, minus the attachments. I followed these steps on both the new QA and production instances.

So, I had two working instances on two separate servers using Confluence 4.0.3. I then upgraded QA to 5.4 and it worked fine. The problem came when I copied over the original data directory to get the attachments, and in the process overwrote confluence.cfg.xml, and whatever other vital file was in that directory structure.

What would be the best strategy to fix this? I corrected the database connection and license information in the XML file from the working production version, but I'm getting an Apache error. Should I just go back and reinstall, or is there an easier way to repair this?

2 answers

1 accepted

Hi Scott,

Overwriting the confluence cfg file is certain to broke the application since this file contains many configuration parameters including the database connection.

I heavily recommend to restore this file and the rest of the data directory from a backup if you have one and just overwrite the attachments folder next time to retrieve the attachments.

Cheers,

Rodrigo

Thanks. Sound advice.

You are welcome :)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

251 views 11 10
Join discussion

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