com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again.

Atlassian JIRA | Jeff Thomas | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    If there is a space in the path to where the restore client is located, it will fail to find the JDBC folder and drivers causing the restore to fail. {code}2015-01-26 17:11:47,072 WARN The jdbc directory does not exist. Jars will not be added to the classpath 2015-01-26 17:11:47,150 INFO Initializing 2015-01-26 17:11:49,666 INFO Unpacking stash-20150123-153732-214.tar to D:\Atlassian\ApplicationData\Stash 2015-01-26 17:11:50,479 ERROR stash-20150123-153732-214.tar could not be restored. Reason: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again. com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again. at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:165) ~[stash-restore-client.jar:1.6.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.withDataSource(DefaultRestoreClient.groovy:264) ~[stash-restore-client.jar:1.6.0] ... 7 more frames available in the log file{code} The issue above is that the client is located in the {{Backup Client}} folder. *Workaround* Move the client to a directory path that does not contain any spaces. ie. {{D:/Backup_Client/stash-backup-client-1.6.0/}}

    Atlassian JIRA | 2 years ago | Jeff Thomas
    com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again.
  2. 0

    If there is a space in the path to where the restore client is located, it will fail to find the JDBC folder and drivers causing the restore to fail. {code}2015-01-26 17:11:47,072 WARN The jdbc directory does not exist. Jars will not be added to the classpath 2015-01-26 17:11:47,150 INFO Initializing 2015-01-26 17:11:49,666 INFO Unpacking stash-20150123-153732-214.tar to D:\Atlassian\ApplicationData\Stash 2015-01-26 17:11:50,479 ERROR stash-20150123-153732-214.tar could not be restored. Reason: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again. com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again. at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:165) ~[stash-restore-client.jar:1.6.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.withDataSource(DefaultRestoreClient.groovy:264) ~[stash-restore-client.jar:1.6.0] ... 7 more frames available in the log file{code} The issue above is that the client is located in the {{Backup Client}} folder. *Workaround* Move the client to a directory path that does not contain any spaces. ie. {{D:/Backup_Client/stash-backup-client-1.6.0/}}

    Atlassian JIRA | 2 years ago | Jeff Thomas
    com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again.

    Root Cause Analysis

    1. com.atlassian.stash.internal.backup.client.RestoreException

      The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again.

      at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource()
    2. com.atlassian.stash
      DefaultRestoreClient.withDataSource
      1. com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:165)[stash-restore-client.jar:1.6.0]
      2. com.atlassian.stash.internal.backup.client.DefaultRestoreClient.withDataSource(DefaultRestoreClient.groovy:264)[stash-restore-client.jar:1.6.0]
      2 frames