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

Confluence Test Environment without Attachments

Zach Newman Aug 14, 2012

I am trying to set up a test environment to mirror a current confluence install. The purpose is to verify updates and plugins before deploying them to production. The problem is that the production server has a ton of attachments, which I cannot have copied on the test server for storage reasons. Is there a simple way around this? If I clone the install and home directories, but leave the attachment directory empty, will confluence still work properly? Anything else I have to consider? I am running confluence 3.5.5 on Solaris10.

3 answers

1 accepted

1 vote
Answer accepted
Nic Brough [Adaptavist] Community Leader Aug 14, 2012

Yes, it'll be mostly fine. This is exactly what we do.

It DOES cause problems with displays, when people have used "include file" macros (common with pictures). It WILL throw errors in your logs, especially when indexing. Sometimes, you might find an entire page breaks completely because of missing files.

But generally, it's usable and stable as a test system

Zach Newman Aug 14, 2012

Wow, that was quick. Thanks a lot Nic!

1 vote

Hi Znew,

Creating a test environment without the attachements:

  1. Go to your production site, and go to Browse > Confluence Admin > Backup & Restore and unmark the attachments option.
  2. # Go to atlassian.com and download Confluence 3.5.5 ( I prefer to download the standalone version ).
  3. Extract the zip/tar.gz file of the latest version of Confluence on the place you choose. ( I highly suggest that you create a folder call: Confluence 3.5.5, and inside of this folder extract the install folder, and inside of the Confluence 3.5.5 folder create a folder call: Home ).
  4. Into the extracted folder, open the file confluence-init.properties, which is located at Confluence install directory\confluence\web-inf\classes and edit the line: confluence.home=/usr/local/confluence/home to point to the path where is your new home folder of your Confluence.
  5. Now start Confluence.
  6. Create a new database in your tool, e.g: MySQL, Postgres, MSSQL... I mean a clean one.
  7. Once that Confluence is configured/running go to Browse > Confluence Admin > Backup & Restore and choose that XML backup that you've generated in your production.
  8. Now you'll have your clone up and running, with your data.


You don't have to worry about your database, with the full XML backup, Confluence will do the magic, I mean, populate the new database, make everything right. So, you don't need to do a clone of your database.

I hope this helps.

Cheers,

WZ

0 votes
Zach Newman Aug 16, 2012

So I copied over the install directory and home directory (excluding the attachments) and it won't start. I get warnings like : WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.

The last line of catalina.out reads: 2012-08-16 14:41:33,431 INFO [main] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 3.5.5 (build #3295)
When trying to connect, the browsers halts at waiting the server to respond.
However, I tried again with a clean home directory and it started up fine. Any thoughts?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

860 views 0 19
Read article

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