Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eN07S-0000Ug-3X for pgsql-admin@arkaria.postgresql.org; Thu, 07 Dec 2017 17:37:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eN07R-0006av-Mt for pgsql-admin@arkaria.postgresql.org; Thu, 07 Dec 2017 17:37:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eN07R-0006aj-D0 for pgsql-admin@lists.postgresql.org; Thu, 07 Dec 2017 17:37:57 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eN07K-0001B3-1F for pgsql-admin@lists.postgresql.org; Thu, 07 Dec 2017 17:37:56 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id E63E04CC82; Thu, 7 Dec 2017 18:37:44 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id mvjYo4AUws38; Thu, 7 Dec 2017 18:37:43 +0100 (CET) Message-ID: <1512668252.2915.17.camel@cybertec.at> Subject: Re: "FATAL: the database system is starting up" and hot_standby = on From: Laurenz Albe To: Ilnur Khanov , pgsql-admin@lists.postgresql.org Date: Thu, 07 Dec 2017 18:37:32 +0100 In-Reply-To: References: <1512634318.2188.3.camel@europecamions-interactive.com> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ilnur Khanov wrote: > For me, when I saw "FATAL: the database system is starting up", nothing else hasn't been working: pgAdmin, psql, business apps. "FATAL" just means that a client connection is terminated. In this case, because the database is not up. > Logs has been showing cycles: client connect - worker starts - "the-FATAL-error" - > worker shutting down with exit code (1). No any informative errors. > > I think, database engine is in some sort of recovery mode after crush, but I was > waiting long enough - no CPU or HDD activity. If it's some sort of warning and waiting for me to check consistency and manually reset this mode flag, but then how to do this?! > > More important: now problem is not solved, "hot_standby = on" is just workaround letting query databases. > But PostgreSQL is still in some strange mode and I don't understand how serious is it and how resolve it correctly. You cannot modify the database, right? And "SELECT pg_is_in_recovery();" returns TRUE, right? Could you show us what is written to the log after a new startup? Yours, Laurenz Albe