Postgres server does not support SSL, but SSL was required - CircleCI

Viewed 505

I'm creating a build-test-deploy pipeline using CircleCI for a Django application.

With image: circleci/postgres:13.1, the build fails while executing tests with:

psycopg2.OperationalError: server does not support SSL, but SSL was required
...
...
django.db.utils.OperationalError: server does not support SSL, but SSL was required

(Complete traceback here)

As a workaround, I'm using this image, which has Postgres with SSL certificate.

(Complete config.yml here)

Is there a better way to this? Possibly with a CircleCI container image of more recent versions of postgres?

I haven't found anything in the CircleCI documentation regarding this.

0 Answers
Related