Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDVlV-0005Eu-Rk for pgsql-general@arkaria.postgresql.org; Sat, 11 Nov 2017 13:24:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eDVlV-0006uw-E1 for pgsql-general@arkaria.postgresql.org; Sat, 11 Nov 2017 13:24:05 +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.84_2) (envelope-from ) id 1eDVlU-0006po-1H for pgsql-general@postgresql.org; Sat, 11 Nov 2017 13:24:04 +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 1eDVlM-0004Gb-Fb for pgsql-general@postgresql.org; Sat, 11 Nov 2017 13:24:03 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1474:d80:76e5:bff:fef3:7e00]) (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 3yYyKR09TFz3F3K; Sat, 11 Nov 2017 14:23:55 +0100 (CET) Date: Sat, 11 Nov 2017 14:23:54 +0100 From: Christoph Berg To: Tom Lane Cc: Adam Brusselback , "pgsql-general@postgresql.org" Subject: Re: Postgres 10.1 fails to start: server did not start in time Message-ID: <20171111132354.esi73rlpq3goyrqh@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Tom Lane , Adam Brusselback , "pgsql-general@postgresql.org" References: <8027.1510347112@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8027.1510347112@sss.pgh.pa.us> User-Agent: NeoMutt/20170609 (1.8.3) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Re: Tom Lane 2017-11-10 <8027.1510347112@sss.pgh.pa.us> > > The recovery succeeds, but when I go to start the cluster on the > > standby, it begins to replay the WAL, and does so for about 30 > > seconds. Then I get a line in my log saying: > > >> pg_ctl: server did not start in time Hi Adam, how did you start the server? Via pg_ctlcluster, the init system, or directly via pg_ctl? > > Followed by: > >> 2017-11-10 20:27:35.907 UTC [7132] LOG: received smart shutdown request > >> ERROR [063]: : terminated on signal [SIGTERM] > > ... pg_ctl itself wouldn't decide to forcibly shut down the server > if the timeout expired. It merely stops waiting and tells you so. > It seems like this must represent misdesign of whatever start script > you're using. I think you need to complain to the Debian packagers > about that. pg_ctlcluster doesn't shut down if startup fails, but to be sure, we'd need to see the full log of whatever initiated the startup. If you are using systemd, what does `systemctl status postgresql@10-main` report? If that doesn't have anything, also check journalctl. Christoph -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general