Last week I attempted creating a staging environment for Bitbucket following migration process document.
I did backup original DB and restored to the new DB.
I copied home and installation directories to the new server and changed %BITBUCKET_HOME%\shared\bitbucket.properties to point to the new database.
#>*******************************************************
#> Migrated to database at jdbc:sqlserver://SQLServerName:1433;databaseName=Bitbucket_test;
#> Updated on 2017-09-12T23:28:39.208+01:00
#>*******************************************************
jdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc.url=jdbc:sqlserver://SQLServerName:1433;databaseName=Bitbucket_test;
jdbc.user=user
jdbc.password=password
(Initially i have only change jdbc:sqlserver and missed the second command (jdbc.url)
Afterwards, we realized that:
1) changes done in test env. are present in production env. This was probably caused by the above which was now resolved (I have pointed jdbc.url to the right place now).
2) When using production Jira and trying to open link to Bitbucket, Jira asks for Bitbucket authentication and fails even that Bitbucket is setup to use Jira directory for authentication.