pgschema
pgschema copied to clipboard
failed to connect to database: failed to ping database: driver: bad connection
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
Please provide more details, simply providing a failed message doesn't help much