Creating a staging environment

Nick_Fordham May 15, 2012

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 votes
hsuhailah
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2012

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.

0 votes
Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events