I’m able to connect the sonarqube db which has been created locally but when i’m trying to connect remote facing the below error. Please help me to fix the below error.
C:\sonarqube>psql “sslmode=verify-full sslrootcert=BaltimoreCyberTrustRoot.crt.pem host=us6-corp-platforms-sonarqube-db-dev.postgres.database.azure.com dbname=sonaqube-devtest-db user=sonarqube@us6-corp-platforms-sonarqube-db-dev”
Password for user sonarqube@us6-corp-platforms-sonarqube-db-dev:
psql: error: connection to server at “us6-corp-platforms-sonarqube-db-dev.postgres.database.azure.com” (40.70.144.38), port 5432 failed: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
Steps followed:
- Downloaded cert from https://www.digicert.com/CACerts/BaltimoreCyberTrustRoot.crt.pem.
- Saved in my c:drive → C:\sonarqube\BaltimoreCyberTrustRoot.crt.pem
- Set the path in command prompt where cert has been saved in my local system.
- Changes modified to the command accordingly: C:\sonarqube>psql "sslmode=verify-full sslrootcert=BaltimoreCyberTrustRoot.crt.pem host=us6-corp-platforms-sonarqube-db-dev.postgres.database.azure.com dbname=sonaqube-devtest-db user=sonarqube@us6-corp-platforms-sonarqube-db-dev"
Asked the the password: entered correctly and returned with below error.
Password for user sonarqube@us6-corp-platforms-sonarqube-db-dev:
psql: error: connection to server at “us6-corp-platforms-sonarqube-db-dev.postgres.database.azure.com” (40.70.144.38), port 5432 failed: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.