# Postgres missing from dist:jammy with new build image

**URL:** <https://travis-ci.community/t/postgres-missing-from-dist-jammy-with-new-build-image/14331>\
**Category:** Linux\
**Tags:** bug\
**Created:** [June 25, 2024, 5:47pm UTC](https://travis-ci.community/t/postgres-missing-from-dist-jammy-with-new-build-image/14331 "2024-06-25T17:47:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpgagnon](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/lpgagnon/32/9269_2.png) [@lpgagnon](https://travis-ci.community/u/lpgagnon)\
**Post date:** [June 25, 2024, 5:47pm UTC](https://travis-ci.community/t/postgres-missing-from-dist-jammy-with-new-build-image/14331/1 "2024-06-25T17:47:43Z")

</div>

```auto
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [June 26, 2024, 5:00pm UTC](https://travis-ci.community/t/postgres-missing-from-dist-jammy-with-new-build-image/14331/2 "2024-06-26T17:00:28Z")

</div>

Hi @lpgagnon,

Can you give me the build link?

---

<div class="post-metadata">

**Author:** ![lpgagnon](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/lpgagnon/32/9269_2.png) [@lpgagnon](https://travis-ci.community/u/lpgagnon)\
**Post date:** [June 26, 2024, 9:11pm UTC](https://travis-ci.community/t/postgres-missing-from-dist-jammy-with-new-build-image/14331/3 "2024-06-26T21:11:24Z")

</div>

@Montana  
broken:

> **[Travis CI](https://app.travis-ci.com/github/urbanairship/apptimize-backend/builds/271131610?serverType=git)**
>
> Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be testing your code in minutes.

“fixed” using group:previous:

> **[Travis CI](https://app.travis-ci.com/github/urbanairship/apptimize-backend/builds/271131562?serverType=git)**
>
> Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be testing your code in minutes.

---

<div class="post-metadata">

**Author:** ![lpgagnon](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/lpgagnon/32/9269_2.png) [@lpgagnon](https://travis-ci.community/u/lpgagnon)\
**Post date:** [June 28, 2024, 2:48pm UTC](https://travis-ci.community/t/postgres-missing-from-dist-jammy-with-new-build-image/14331/4 "2024-06-28T14:48:10Z")

</div>

This appears resolved; nightly build succeeded (without group:previous), postgresql 14 appears to be back and working properly.
