external database

How do i manually configure external Database for Stash. I cant use DB wizard on the stage and prod database. Did not find the documentation around this.


2 answers

Hi Anoop,

The documentation below plus using the wizard should be enough to help you configure Stash with an external database. No manual intervention is required:

Connecting Stash to an external database

Which kind of error are you getting?

Best regards,
Thiago Bomfim
Atlassian Support - DevTools

HI Thiago,


On the sandbox env, i was able to configure external DB(oracle) just fine. All is good. However, for STAGE and PROD i wont have access to database directly hence the wizard for configuring external DB wont work from Stash admin screen.

What is the alternate way, that DBAs can take to create required user with all the required objects that we would connect from STASH.

Anoop, thanks for clarifying. I wrote a new answer to you.

Hi Anoop,

I think I get you. If you configured your sandbox environment just fine using the UI, you can:

  • Of course, take a backup of your instances (PROD and STAGING) before applying these changes. Refer to https://confluence.atlassian.com/display/STASH/Using+the+Stash+Backup+Client for details on how to backup your instance.
  • I recommend you test the database connection from your vendor external database application connection tool before applying that to Stash. Make sure you can connect to your PROD and STAGING databases first.
  • Connect to your sandbox and retrieve the following configuration:

    $ cat $STASH_HOME/shared/stash-config.properties

    If you are in a version prior to Stash 3.2, please use the following path instead:

    $ cat $STASH_HOME/stash-config.properties
  • Look into the following parameters that have been automatically configured by Stash when you used the wizard in the UI:

  • These parameters are documented here:
  • On your STAGE environment replicate the configuration below:
    • Stop your instance
    • If there the $STASH_HOME/shared/stash-config.properties doesn't exist, create one.
    • Configure with the same jdbc.driver value as the one seen above. Change the jdbc.url, jdbc.user and jdbc.password according to the database you've created for your STAGE environment
    • Start your instance

Let me know if this information helped you!

Best regards,
Thiago Bomfim
Atlassian Support - DevTools

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

676 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot