pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

failed to connect to database: failed to ping database: driver: bad connection

Open ryespresso opened this issue 9 months ago • 1 comments

I get this quite often. We have 6 schema's and normally 1 or 2 of them get this and I have to re-run the github action a few times to get it to connect.

 time=2026-02-20T13:46:28.958Z level=DEBUG msg="Attempting database connection" host=*** port=6432 database=*** user=*** sslmode=prefer application_name=""
  time=2026-02-20T13:46:29.471Z level=DEBUG msg="Database ping failed" error="driver: bad connection"
  Error: failed to detect PostgreSQL version: failed to connect to database: failed to ping database: driver: bad connection

ryespresso avatar Feb 20 '26 13:02 ryespresso

Please provide more details, simply providing a failed message doesn't help much

tianzhou avatar Feb 20 '26 15:02 tianzhou