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

Restore client fails to find JDBC driver folder when there is a space in the path

    XMLWordPrintable

Details

    Description

      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.

      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

      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/

      Attachments

        Activity

          People

            pepoirot Pierre-Etienne Poirot (Inactive)
            jethomas Jeff Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: