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 1kcAVA-0006yb-0Y for pgsql-general@arkaria.postgresql.org; Mon, 09 Nov 2020 16:58:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kcAV8-0003xL-P3 for pgsql-general@arkaria.postgresql.org; Mon, 09 Nov 2020 16:58:42 +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 1kcAV8-0003xD-HU for pgsql-general@lists.postgresql.org; Mon, 09 Nov 2020 16:58:42 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kcAV5-0003gF-Mz for pgsql-general@postgresql.org; Mon, 09 Nov 2020 16:58:41 +0000 Received: by mail-ej1-x635.google.com with SMTP id f20so1737361ejz.4 for ; Mon, 09 Nov 2020 08:58:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=auUN/1JoQDIZhho/ynZJfwQGWG3ForimPtr7fqEAHg0=; b=ccbYkNxVQu480BTJuVZmXYuXXQQnDlT3rKSUCT8c3UEhwtf+rW7laJzl+PIteHLeGC +fFmkHA61hqf3VZa4jGicRrFRBe3pB9dJtxsvo6AlS4yKYA4p93RNF05sbHxsmjdaOOX bbgcrLTS1VxiocRGGOgKL0hsnavlBHC9YhQUN2HF1der8/U6d9nSqGgwPKLhugcXq52e wqJ2A5W+9qUb42k8v/+6TfA/Fq57v+rgUt3wwH2xR9tvRNWs9Gk/02yU3+G9CA3pgxjN onV6jSjnM/H8C94u8HTKlHp9vtC+KrP6kGHT1uvsHDwBOjLkBu10MURcXNVRguildB9Q SQMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=auUN/1JoQDIZhho/ynZJfwQGWG3ForimPtr7fqEAHg0=; b=NEyVr0Ht86bsihZ+I6qOVgBaG6yd9SQN+VCxsxtVS7yAKt/aqpnWJRPKvcV+TPfOby ULDhbvmgzcT3/1ejQuNAPIQNtD0jg+dCz48PHFO9oKjKnI/o83OUtpoB/6ObULgkGB7t VKiNB1ENetkZSvyKmVNEdqazL3w7UtklmxKBK1GRg6cd2OfZjMaRSQdYbtEFixZAKBi3 u4vQ8LMUf6w1TOMuSR3p7LHczp+/pE0wJRscM7T3iwC6BFw2KuDL502JNonijagvutnB rcqVGSlgYuH+Zga5in5h3mpuhxF9T8TcRgW33zB6okHny7VhjPiLr0rogU6ho1og+F4X nk7w== X-Gm-Message-State: AOAM530VozRyuSfv3fAjqve7EZZ7NC78IolO1WKur/x4oJ5jx4qO0KsA poVhXrzZG2nkrPkTHAA2ZH4tDg== X-Google-Smtp-Source: ABdhPJw5bzmhnXrXNOGcQyPT0ZpvDZqxHfTa6Dzdp7DwKa2+LRbVIPC/LkmU6hBUxSTTgrk5855Z7Q== X-Received: by 2002:a17:906:1381:: with SMTP id f1mr15445428ejc.87.1604941117585; Mon, 09 Nov 2020 08:58:37 -0800 (PST) Received: from localhost.localdomain (217-149-175-94.nat.highway.telekom.at. [217.149.175.94]) by smtp.gmail.com with ESMTPSA id jw7sm9074607ejb.54.2020.11.09.08.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 08:58:37 -0800 (PST) Message-ID: <8ee6aa4afa4e068efe9a0153804a0baf8514174a.camel@cybertec.at> Subject: Re: Database system was interrupted. Possible reasons for a database to suddenly stop accepting connections? From: Laurenz Albe To: "Buzenets, Yuriy (GE Renewable Energy, consultant)" , "pgsql-general@postgresql.org" Date: Mon, 09 Nov 2020 17:58:35 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 2020-11-09 at 13:53 +0000, Buzenets, Yuriy (GE Renewable Energy, consultant) wrote: If I delete all the noise from the log, file, this remains: > < 2020-10-29 11:51:59.345 PDT >STATEMENT: SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, [...] > < 2020-10-29 12:04:09.700 PDT >LOG: database system was interrupted; last known up at 2020-10-29 12:03:16 PDT > < 2020-10-29 12:04:09.812 PDT >LOG: database system was not properly shut down; automatic recovery in progress > < 2020-10-29 12:04:09.817 PDT >LOG: redo starts at 43C/E887E1C8 > < 2020-10-29 12:04:09.916 PDT >LOG: record with zero length at 43C/E8ED94D8 > < 2020-10-29 12:04:09.917 PDT >LOG: redo done at 43C/E8ED94A8 > < 2020-10-29 12:04:09.917 PDT >LOG: last completed transaction was at log time 2020-10-29 12:03:46.422937-07 > < 2020-10-29 12:04:09.938 PDT >LOG: MultiXact member wraparound protections are now enabled > < 2020-10-29 12:04:09.941 PDT >LOG: autovacuum launcher started > < 2020-10-29 12:04:09.941 PDT >LOG: database system is ready to accept connections > < 2020-10-29 12:26:44.453 PDT >LOG: received fast shutdown request > < 2020-10-29 12:26:44.453 PDT >LOG: aborting any active transactions > < 2020-10-29 12:26:44.544 PDT >LOG: shutting down > < 2020-10-29 12:26:44.587 PDT >LOG: database system is shut down > < 2020-10-29 12:27:13.156 PDT >LOG: database system was shut down at 2020-10-29 12:26:44 PDT > < 2020-10-29 12:27:13.178 PDT >LOG: MultiXact member wraparound protections are now enabled > < 2020-10-29 12:27:13.179 PDT >LOG: autovacuum launcher started > < 2020-10-29 12:27:13.179 PDT >LOG: database system is ready to accept connections > < 2020-10-29 15:02:42.588 PDT >LOG: received fast shutdown request > < 2020-10-29 15:02:42.588 PDT >LOG: aborting any active transactions > < 2020-10-29 15:02:42.712 PDT >LOG: shutting down > < 2020-10-29 15:02:42.732 PDT >LOG: database system is shut down > < 2020-10-29 15:02:43.711 PDT >LOG: database system was shut down at 2020-10-29 15:02:42 PDT > < 2020-10-29 15:02:43.714 PDT >LOG: MultiXact member wraparound protections are now enabled > < 2020-10-29 15:02:43.715 PDT >LOG: autovacuum launcher started > < 2020-10-29 15:02:43.716 PDT >LOG: database system is ready to accept connections There was a operating system crash or a "kill -9" somewhere between 11:51 and 12:04 on Oct. 29. PostgreSQL got restarted and recovered at 12:04. Then there were two more clean shutdowns and restarts at 12:26 and 15:02. Your problem is probably the first crash. If you don't have any indication that the machine crashed, look into the kernel log - perkaps the out-of-memory killer struck (assuming this is Linux). Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com