It seems to me that something has changed recently (this week) with Postgresql on Focal.
My configuration starts with
dist: focal language: python python: - "3.8" addons: apt: packages: - yarnpkg postgresql: "12" services: - postgresql - redis-server … before_script: - psql -c 'CREATE DATABASE fereol_test;' -U postgres
It used to work perfectly well, and suddenly, yesterday, my builds started failing on
CREATE DATABASE step with the message:
$ psql -c 'CREATE DATABASE fereol_test;' -U postgres psql: error: could not connect to server: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? The command "psql -c 'CREATE DATABASE fereol_test;' -U postgres" failed and exited with 2 during .
(the build: https://travis-ci.com/github/iiuni/projektzapisy/jobs/420866754)
Earlier in the run—while configuring Postgres—it says:
Assertion failed on job for firstname.lastname@example.org.
I tried playing with the config: changing Postgres version, installing the packages manually. I was not able to set it up correctly.
Is it a bug, or is my configuration wrong?