Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to connect to PostGres 14 database

Zohreh Servati
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2024

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>



 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.21.3
TAGS
AUG Leaders

Atlassian Community Events