marvel-nccr / ansible-role-aiida

An ansible role that installs and configures AiiDA on Ubuntu.
Other
2 stars 5 forks source link

CI: error in postgresql startup #77

Closed ltalirz closed 1 year ago

ltalirz commented 1 year ago

Recent builds show the following error:

    Success. You can now start the database server using:

        /usr/lib/postgresql/10/bin/pg_ctl -D /var/lib/postgresql/10/main -l logfile start

    Failed to connect to bus: No such file or directory
    Ver Cluster Port Status Owner    Data directory              Log file
    [31m10  main    5432 down   postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log[0m
    update-alternatives: using /usr/share/postgresql/10/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
    Failed to connect to bus: No such file or directory
    dpkg: error processing package postgresql-10 (--configure):
     installed postgresql-10 package post-installation script subprocess returned error exit status 1
    Setting up postgresql-server-dev-all (190ubuntu0.1) ...
    Setting up python3-psycopg2 (2.7.4-1) ...
    dpkg: dependency problems prevent configuration of postgresql:
     postgresql depends on postgresql-10; however:
      Package postgresql-10 is not configured yet.

I suspect it has to do with a recent change in docker, see e.g. https://www.jeffgeerling.com/blog/2022/docker-and-systemd-getting-rid-dreaded-failed-connect-bus-error