Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI build fails due to postgresql dropping xenial support #41

Closed
ivanperez-keera opened this issue Apr 1, 2023 · 0 comments
Closed

CI build fails due to postgresql dropping xenial support #41

ivanperez-keera opened this issue Apr 1, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@ivanperez-keera
Copy link
Owner

ivanperez-keera commented Apr 1, 2023

Builds on the CI server are failing with the following error messages:

Ign:1 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
Ign:2 http://apt.postgresql.org/pub/repos/apt xenial-pgdg Release
Ign:3 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages
Ign:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main i386 Packages
Hit:5 http://ppa.launchpad.net/hvr/ghc/ubuntu xenial InRelease
Hit:6 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:8 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main all Packages
Hit:9 https://esm.ubuntu.com/infra/ubuntu xenial-infra-security InRelease
Ign:10 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US
Hit:11 https://esm.ubuntu.com/infra/ubuntu xenial-infra-updates InRelease
Hit:12 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Ign:13 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en
Ign:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US.UTF-8
Ign:3 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages
Hit:15 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main i386 Packages
Ign:8 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main all Packages
Ign:10 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US
Ign:13 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en
Ign:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US.UTF-8
Ign:3 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages
Ign:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main i386 Packages
Ign:8 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main all Packages
Ign:10 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US
Ign:13 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en
Ign:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US.UTF-8
Ign:3 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages
Ign:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main i386 Packages
Ign:8 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main all Packages
Ign:10 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US
Ign:13 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en
Ign:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US.UTF-8
Ign:3 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages
Ign:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main i386 Packages
Ign:8 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main all Packages
Ign:10 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US
Ign:13 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en
Ign:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US.UTF-8
Ign:3 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages
Ign:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main i386 Packages
Ign:8 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main all Packages
Ign:10 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US
Ign:13 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en
Ign:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US.UTF-8
Err:3 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages
  404  Not Found [IP: 72.32.157.246 80]
Ign:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main i386 Packages
Ign:8 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main all Packages
Ign:10 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US
Ign:13 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en
Ign:14 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main Translation-en_US.UTF-8
Reading package lists...
W: The repository 'http://apt.postgresql.org/pub/repos/apt xenial-pgdg Release' does not have a Release file.
E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/xenial-pgdg/main/binary-amd64/Packages  404  Not Found [IP: 72.32.157.246 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command "sudo apt-get update" failed 3 times.
The command "travis_retry sudo apt-get update" failed and exited with 100 during .
Your build has been stopped.

The reason why it's failing is that postgresql no longer supports xenial, as evidenced by their current list of distributions (from http://apt.postgresql.org/pub/repos/apt/dists/):

../
bionic-pgdg/                                       30-Sep-2022 11:10                   -
bionic-pgdg-snapshot/                              02-Oct-2022 14:05                   -
bionic-pgdg-testing/                               02-Oct-2022 20:47                   -
bookworm-pgdg/                                     30-Sep-2022 11:10                   -
bookworm-pgdg-snapshot/                            02-Oct-2022 14:04                   -
bookworm-pgdg-testing/                             02-Oct-2022 20:47                   -
bullseye-pgdg/                                     30-Sep-2022 11:10                   -
bullseye-pgdg-snapshot/                            02-Oct-2022 14:04                   -
bullseye-pgdg-testing/                             02-Oct-2022 20:47                   -
buster-pgdg/                                       30-Sep-2022 11:10                   -
buster-pgdg-snapshot/                              02-Oct-2022 14:04                   -
buster-pgdg-testing/                               02-Oct-2022 20:47                   -
focal-pgdg/                                        30-Sep-2022 11:10                   -
focal-pgdg-snapshot/                               02-Oct-2022 14:04                   -
focal-pgdg-testing/                                02-Oct-2022 20:47                   -
jammy-pgdg/                                        30-Sep-2022 11:10                   -
jammy-pgdg-snapshot/                               02-Oct-2022 14:04                   -
jammy-pgdg-testing/                                02-Oct-2022 20:47                   -
kinetic-pgdg/                                      30-Sep-2022 11:10                   -
kinetic-pgdg-snapshot/                             02-Oct-2022 14:04                   -
kinetic-pgdg-testing/                              02-Oct-2022 20:47                   -
sid-pgdg/                                          30-Sep-2022 11:10                   -
sid-pgdg-snapshot/                                 02-Oct-2022 14:04                   -
sid-pgdg-testing/                                  02-Oct-2022 20:47                   -
stretch-pgdg/                                      11-Aug-2022 12:47                   -
stretch-pgdg-snapshot/                             12-Aug-2022 15:13                   -
stretch-pgdg-testing/                              11-Aug-2022 10:46                   -
ivanperez-keera added a commit that referenced this issue Apr 1, 2023
Builds on the CI server are failing because the default image uses
xenial, which is no longer supported by Postgresql (and needed for an
apt-get update).

This commit updates the Travis CI config file to select bionic as the
distribution. Because the Haskell image doesn't accept a dist value, we
remove the language field altogether and use an environment matrix to
configure the selected versions of GHC and cabal to use.
@ivanperez-keera ivanperez-keera self-assigned this Apr 1, 2023
@ivanperez-keera ivanperez-keera added this to the 0.2 milestone Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant