bytebase / bytebase

The GitHub/GitLab for database DevOps. World's most advanced database DevOps and CI/CD for Developer, DBA and Platform Engineering teams.

Home Page:https://www.bytebase.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pg_dump error with SSL certs after connection

phernandez-cmpc opened this issue · comments

Provide the Bytebase version you are using

2.13.2

Describe the bug

Hello,
Getting this error message after succesfully connecting to a GCP Cloud SQL (SSL full) instance in "Create Instance" form:

Code 2: /bytebase.v1.DatabaseService/SyncDatabase UNKNOWN: [TRUNCATED] failed to dump database schema for database "database": Failed to exec pg_dump, err: error message: pg_dump: error: connection to server at "XX.XX.XX.XX", port 5432 failed: could not open certificate file "-----BEGIN CERTIFICATE-----

(the rest of the certificate string was cut from the log message for security reasons)
Thank you in advance :D

Steps to reproduce

  1. "Add Instance" with SSL certificates and hit "Test connection", it will confirm connection is successfull .
  2. Go to any of the database's page in said instance.
  3. Click "Sync Now", you will get the error message specified above

Expected behavior

Successfully sync the schema of database to Bytebase

Provide the database you are using

Postgresql 15

Provide the version control system you are using

GitLab 16.9

Additional context

No response

Fixed by #10890.