3.08s$ travis_setup_postgresql
Starting PostgreSQL v14
Failed to stop postgresql.service: Unit postgresql.service not loaded.
Failed to start postgresql@14-main.service: Unit postgresql@14-main.service not found.
[...]
$ psql -c 'select 1;'
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
.travis.yml:
language: java
services:
- postgresql
dist: jammy
script:
- psql -c 'select 1;'
This started happening with this week’s updated jammy image; was working fine last week. Adding group: previous
fixes the issue, postgres service starts and is usable; but this is presumably not a good long-term solution.
Tried adding an explicit postgres line to addons:
, didn’t help.