Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-3163

Driver not available when running Stash as Windows service using $STASH_HOME/lib

XMLWordPrintable

      From: https://answers.atlassian.com/questions/140373/stash-as-service-fails-to-find-mysql-driver

      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.
      

      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.

              dpenkin@atlassian.com Daniil Penkin
              ssaasen Stefan Saasen (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: