Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,247,262
Community Members
 
Community Events
164
Community Groups

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
Answer accepted

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
TAGS

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