It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

"Database Contains Existing Confluence Data" on migration without changing database server

Today I faced this error while migrating Confluence Server from one server to another server "Database Contains Existing Confluence Data". Although Database server is same.

I copied , server.xml and whole home-folder from old server to new server.  Config file shows correct home-folder on new server.

How can we solve this, any ideas?

1 answer

1 accepted

1 vote
Answer accepted

This means that Confluence believes that it is a new installation, but has been pointed to a database that already contains a load of Confluence data.

It is hard to say what the underlying problem here is without doing a lot of delving, but there is a slightly-hacky fix.

Create a new database (maybe with the same credentials, but definitely a different name).  Stop your Confluence, edit <confluence home>/confluence.cfg.xml so that it points to the empty database.  

Start Confluence and run through the "create a new empty confluence" process with this.

Once complete, stop that, then edit the confluence.cfg.xml file so that it points at the old database.  Restart Confluence, log in  as an admin  (using an account from the old Confluence), and trigger a re-index.

Thanks for the reply. Actually your advice works.

I followed tutorial on this page, which is almost same as yours -

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

353 views 11 11
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you