Recently my builds started failing although the Travis config did not change. I’m trying to run Postgres v10 in Bionic. The error I get is:
Starting PostgreSQL v10 Job for email@example.com failed because the service did not take the steps required by its unit configuration. See "systemctl status firstname.lastname@example.org" and "journalctl -xe" for details. sudo systemctl start postgresql@10-main
dist: bionic sudo: false services: - postgresql addons: postgresql: "10" apt: packages: - postgresql-10 - postgresql-client-10 - postgresql-contrib-10 before_install: - psql -d template1 -U postgres -c "CREATE USER pinafore WITH PASSWORD 'pinafore' CREATEDB;"
Of course it fails when it tries to run
psql because it cannot connect:
psql: 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"?
This code was working as of about a week ago.