Stash config file missing

Hi ,

I just installed Stash 2.9.3 and I cannot locate the stash-config.properties file anywhere on the server.

It's installed on a Windows 2012 box and running as a service using a local account.

The reason I am trying to locate the file is because I am unable to get Stash connected to a MS SQL database. It keeps on saying "The configuration entered is not valid..." although I have confirmed the details are correct using a .udl file. So I was going to manually enter it in the file. At the moment it's running on an INTERNAL database.

Any help is appreciated.

Thanks

4 answers

1 accepted

Accepted Answer
0 votes

Hi Milan,

The stash-config.properties file isn't created until it is needed, but you can manually create it if you need. Just put it in STASH_HOME/stash-config.properties.

Here's sample content from a mysql connection:

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/mysql_stash?autoReconnect=true&characterEncoding=utf8&useUnicode=true&sessionVariables=storage_engine%3DInnoDB
jdbc.user=stash
jdbc.password=stash

Cheers,

Michael

Hi Michael,

That worked, I was able to get it connected to the database by entering the details in the config file.

Thanks for your help.

Milan

How to get the .udl file?

Any advise?

Create a blank text file and just rename it to test.udl

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

2,406 views 9 12
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