BUG #16954: After install postgresql.service activates but does not activate postgresql@11-main.service - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #16954: After install postgresql.service activates but does not activate postgresql@11-main.service
Date
Msg-id 16954-0a88eaa43002e0f8@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16954
Logged by:          Aapo Alasuutari
Email address:      aapo.alasuutari@gmail.com
PostgreSQL version: 11.2
Operating system:   Ubuntu 18.04 on WSL2
Description:

I'm trying to install a development environment using some in-house ansible
playbooks. As part of the install postgresql is installed. The installation
commands happen as follows:

dpkg -i ssl-cert_1.0.39_all.deb
dpkg -i libllvm6.0_1%3a6.0-1ubuntu2_amd64.deb
dpkg -i libpq5_11.2-1.pgdg18.04+1_amd64.deb
dpkg -i pgdg-keyring_2018.2_all.deb
dpkg -i postgresql-client-common_199.pgdg18.04+1_all.deb
dpkg -i postgresql-common_199.pgdg18.04+1_all.deb
dpkg -i postgresql-client-11_11.2-1.pgdg18.04+1_amd64.deb
dpkg -i postgresql-11_11.2-1.pgdg18.04+1_amd64.deb
apt-get autoremove -fy
rm -f *.deb
sudo -u postgres /usr/bin/psql -U postgres -d postgres -t -c ALTER USER
Postgres WITH PASSWORD '***';

At the first postgres command the install fails on my WSL2 machine, while it
does not fail on a Ubuntu 18.04 Oracle VBox virtual machine. The reason for
the failure is that there is no socket.

Looking at the postgresql.service, it is active and shows no errors in log.
The latest message is "Started PostgreSQL RDBMS."
However, then looking at the postgresql@11-main.service, the service is
loaded but inactive. So far I have not managed to find any errors pertaining
to the postgresql install that would point to any obvious reason for the
failure for the actual service to activate.


pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #16953: OOB access while converting "interval" to char
Next
From: PG Bug reporting form
Date:
Subject: BUG #16955: Replication port problems