I am attempting to restore Bitbucket using the bitbucket-resttore-client.jar application:
The application runs and successfully unpacks the data to the %BITBUCKET_HOME% directory defined in the backup-config.propertis file:
bitbucket.home=C:\\Atlassian\\Restore\\Bitbucket\\bitbucket-backup-client-3.6.0\\BITBUCKET_HOME
Then the application exits:
c:\Atlassian\Restore\Bitbucket\bitbucket-backup-client-3.6.0>java -jar bitbucket-restore-client.jar ..\bitbucket-20191030-131759-251.tar
2019-11-01 07:44:53,140 INFO Initializing
2019-11-01 07:45:00,671 INFO Unpacking bitbucket-20191030-131759-251.tar to C:\Atlassian\Restore\Bitbucket\bitbucket-backup-client-3.6.0\BITBUCKET_HOME
2019-11-01 07:51:16,518 INFO Validating database before restore
2019-11-01 07:51:18,993 ERROR bitbucket-20191030-131759-251.tar could not be restored
java.lang.reflect.UndeclaredThrowableException: null
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
... 18 more frames available in the log file
The following JDBC parameter values in backup-config.properties were used:
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://bitbucketserver:5432/bitbucketdb
Jira and Confluence are running on the same server 'bitbucketserver' and are using the same PostgreSQL database, so I am confident that the issue is not related to our PostgreSQL instance.
I suspect that there might be an issue with jdbc.driver...
Any help would be appreciated.
Mika