We are moving are bitbucket data center onto another host on Rocky 8.9 OS which connects to a new PostGres database running on Rocky host 8.9 as well. We have replicated database and bitbucket app+bitbucket-home folders onto corresponding hosts, plus other necessary setups. When starting bitbucket we see DB connection error:
Here is the error seen in the log:
2024-03-26 16:15:13,120 DEBUG [spring-startup] org.postgresql.Driver Connection error:
org.postgresql.util.PSQLException: Could not find a server with specified targetServerType: primary
at org.postgresql.Driver$ConnectThread.getResult(Driver.java:417)
-------------------------------------------------------
Here is the db properties set in bitbucket.properties
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://<hostname>.idanalytics.com:5432/<db name>
jdbc.user=<user>
jdbc.password=<passwd>