Stash as service fails to find mysql driver

Stash has been configured with mysql 5.5 at port 3307 on Windows 8 Pro 64 bit. It has been confirmed to work properly when manually started from command line (repository created added as remote and pushed). The problem is that configuring it as a service appears to succeed and the service starts, however, when I attempt to connect to stash I get the following error:

--------------------------

A fatal error has occurred

The following problem occurred which prevents Atlassian Stash from starting correctly:

The database, as currently configured, is not accessible.Stash is configured to use the mysql driver (com.mysql.jdbc.Driver) but it is not available. Please follow the instructions to install the driver as per Connecting Stash to MySQL.

--------------------------

Any advice on what the issue might be? The driver (mysql-connector-java-5.1.23-bin.jar) is installed at <stash_home>/lib.

For the time being I have reverted to manual startup but that is not ideal.

1 answer

1 accepted

0 votes
Accepted answer

The problem is that the path for the connector jar (mysql-connector-java-5.1.x-bin.jar) needs to be <stash-installation-dir>/atlassian-stash/WEB_INF/lib when stash is started as a service (<stash-installation-dir>/lib might also work). The path <stash-home>/lib specified in the install guide works when stash is started from the console.

I raised https://jira.atlassian.com/browse/STASH-3163 to capture this. Thanks for bringing this to our attention!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Atlassian Certification

Hello, Today it is about Atlassian Certification. Do you have an interest in taking the exam? If yes share with us so if we have couple people we can start a group study. All the best,   ...

53 views 7 1
View post

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