Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fyHsz-0000Eb-FE for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Sep 2018 14:37:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fyHsx-0004xQ-JI for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Sep 2018 14:37:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fyHsx-0004xJ-DF for pgsql-bugs@lists.postgresql.org; Fri, 07 Sep 2018 14:37:23 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fyHsv-0004nr-4B for pgsql-bugs@postgresql.org; Fri, 07 Sep 2018 14:37:22 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 426Klf5yz0z3Dyv; Fri, 7 Sep 2018 16:37:18 +0200 (CEST) Date: Fri, 7 Sep 2018 16:37:18 +0200 From: Christoph Berg To: Sebastian Elisa Pfeifer Cc: pgsql-bugs@postgresql.org Subject: Re: SystemD Unit file missing "After=network-online.target" Parameter Message-ID: <20180907143718.GF29573@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Sebastian Elisa Pfeifer , pgsql-bugs@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Sebastian Elisa Pfeifer 2018-09-07 > |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