pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <myon@debian.org>
To: Sebastian Elisa Pfeifer <s.pfeifer@ixolit.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: SystemD Unit file missing "After=network-online.target" Parameter
Date: Fri, 7 Sep 2018 16:37:18 +0200
Message-ID: <20180907143718.GF29573@msg.df7cb.de> (raw)
In-Reply-To: <ab23ab6a-f54a-4063-be3d-dbc93f5dedd2@ixolit.com>
References: <ab23ab6a-f54a-4063-be3d-dbc93f5dedd2@ixolit.com>

Re: Sebastian Elisa Pfeifer 2018-09-07 <ab23ab6a-f54a-4063-be3d-dbc93f5dedd2@ixolit.com>
> |2018-09-06 14:02:32 UTC LOG: could not bind IPv4 socket: Cannot assign
> requested address 2018-09-06 14:02:32 UTC HINT: Is another postmaster
> already running on port 5432? If not, wait a few seconds and retry.
> 2018-09-06 14:02:32 UTC WARNING: could not create listen socket for
> "123.123.123.123"|
> 
> Possible fix: Adding the parameter After=network-online.target to it's
> SystemD Unit file.
> 
> Our setup includes the setting:
> listen_addresses = 'localhost,123.123.123.123' (not the real IP)

Hi,

thanks for the report.

I'll have to investigate if that's the correct fix in general. Afaict
network-online.target does less than what the name says, i.e. some
interfaces might still be configuring even at that point. Usual
symptoms are IPv6 devices that are still in address discovery.

I'll let you know what the outcome is.

Christoph




view thread (2+ messages)

Message-ID: <20180907143718.GF29573@msg.df7cb.de>
Permalink:  ../20180907143718.GF29573@msg.df7cb.de/
Also on:    postgresql.org/message-id/20180907143718.GF29573@msg.df7cb.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: myon@debian.org, s.pfeifer@ixolit.com
  Subject: Re: SystemD Unit file missing "After=network-online.target" Parameter
  In-Reply-To: <20180907143718.GF29573@msg.df7cb.de>
  References: <ab23ab6a-f54a-4063-be3d-dbc93f5dedd2@ixolit.com> <20180907143718.GF29573@msg.df7cb.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox