Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pC7XZ-0007sN-3V for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Jan 2023 23:14:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pC7XX-0004Wj-4F for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Jan 2023 23:14:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pC7XW-0004Wa-Sa for pgsql-bugs@lists.postgresql.org; Sun, 01 Jan 2023 23:14:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pC7XT-00082o-2w for pgsql-bugs@lists.postgresql.org; Sun, 01 Jan 2023 23:14:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 301NEhFt1309911; Sun, 1 Jan 2023 18:14:44 -0500 From: Tom Lane To: tdryden@comcast.net cc: pgsql-bugs@lists.postgresql.org Subject: Re: PostgreSQL 15 on Fedora 37 Does not start after reboot In-reply-to: References: Comments: In-reply-to Tom Dryden message dated "Sun, 01 Jan 2023 17:55:07 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1309909.1672614883.1@sss.pgh.pa.us> Date: Sun, 01 Jan 2023 18:14:43 -0500 Message-ID: <1309910.1672614883@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom Dryden writes: > PostgreSQL 15 on Fedora 37 Does not start after reboot > The service is enabled and reports a network error after reboot. > Starting the postgresql service manually after the reboot is successful. > From the log file: > 2023-01-01 09:22:26.406 EST [812] LOG: starting PostgreSQL 15.1 on > x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.1 20220819 (Red Hat > 12.2.1-2), 64-bit > 2023-01-01 09:22:26.406 EST [812] LOG: could not bind IPv4 address > "192.168.122.124": Cannot assign requested address This indicates that Postgres is starting before the network interface is up, something that systemd is prone to try to do. > Suggested fix: > Edit /usr/lib/systemd/system/postgresql-15.service and change the > After=network.target line to > After=network-online.target Right, although some authorities suggest also adding Wants=network-online.target In any case, that service file is not created or distributed by us. I suggest filing this as a bug against the Fedora postgresql package. regards, tom lane