Creating a staging environment

I am trying to create a Staging Environment for Confluence, so for I cloned the Virtual Machine that the confluence is on and changed all URL to point to the staging server. When I logon to Confluence I get

Non Clustered Confluence: Database is being updated by another Confluence instance. Please see http://confluence.atlassian.com/x/mwiyCg for more details.

Your server id is:

How can I workaround this issue?

Thanks

2 answers

0 vote
Thomas Schlegel Community Champion May 15, 2012

Hi Ali,

you cannot use the same confluence database with two confluence instances. You have to create another database for the test instance.

I think, these sites should help you: http://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers

http://confluence.atlassian.com/display/DOC/Restoring+a+Test+Instance+from+Production

Best regards

Thomas

There's a possibility that your clone instance's configuration is pointing to the existing database when that is not supposed to be the case because you should create a new database for the clone instance.

Below is the guide on how to create/clone your instance on a test server:

On the test server, you will need to copy over 3 things (ensure that the test server has the same environment/OS as the production server):

  1. Copy of Confluence Production database dump/backup
  2. Copy of Confluence Production installation folder
  3. Copy of Confluence Production home folder. Confluence Home folder is defined in <Confluence install folder>/confluence/WEB-INF/classes/confluence-init.properties file.

After that, do the followings:

  1. Create a new database name. Restore Confluence Production copy of database dump/backup into this newly created database.
  2. Edit confluence.cfg.xml in the copy of Confluence Production home folder to point to the newly created database. Ensure that the database username and password are updated too if it differs from the Production server.
  3. Go to \confluence-x.x.x-std\confluence\WEB-INF\classes in the copy of Confluence Production installation folder and edit confluence-init.properties to point to the new path of Confluence Production copy of home folder.
  4. Start Confluence.

You should have a working clone instance now.

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
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

975 views 23 12
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