Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 789B6B60BA9 for ; Thu, 2 Jun 2011 14:43:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 10769-01 for ; Thu, 2 Jun 2011 17:43:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f46.google.com (mail-pw0-f46.google.com [209.85.160.46]) by mail.postgresql.org (Postfix) with ESMTP id A9F1DB60A78 for ; Thu, 2 Jun 2011 14:42:59 -0300 (ADT) Received: by pwi15 with SMTP id 15so601997pwi.19 for ; Thu, 02 Jun 2011 10:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1IQPHKXy3Hip8QsCR68pJI9g1+pm5OkIwlSBsnf/nxM=; b=uwC64BkCca36o1xfpQvulfR5dXj5e23w2DjSBuXBMuXzi7nrmDAtPnOznljCbGGiN7 Qh1VY8m+z3iGf6sWFieQDB4LHwitOkQC3Xb4SBEI71k50nUzAfs9kNEZpc+hPh2hbroI mJKz+OEnRXAKqKXzT8XSDSHiTeyKALJkwicBc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Yiv3hp2jdgMZ7n0bGpCsHRCKWHn/S55lWCpMRCbMnIgkP1Dv3hzZQx7rAOf5CS0tJS lRMsDU+szrEre1lOZn3zyRXnRI0aKF+koFfeNthGRVcONF/8YB1RXT3WSktHy3wsQ/03 dS11jmOqRvxp1aNOnNEsNN4hzjZIBj5Xvr/ec= MIME-Version: 1.0 Received: by 10.68.19.131 with SMTP id f3mr407288pbe.379.1307036578537; Thu, 02 Jun 2011 10:42:58 -0700 (PDT) Received: by 10.68.56.70 with HTTP; Thu, 2 Jun 2011 10:42:58 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 Jun 2011 13:42:58 -0400 Message-ID: Subject: Re: UTC4115FATAL: the database system is in recovery mode From: Robert Haas To: Mathew Samuel Cc: "pgsql-bugs@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201106/21 X-Sequence-Number: 30400 On Fri, May 27, 2011 at 2:26 PM, Mathew Samuel wrote: > I see the following error as found in pg.log: > UTC4115FATAL:=A0 the database system is in recovery mode > > Actually that message was logged repeatedly for about 4 hours according t= o > the logs (I don't have access to the system itself, just the logs). > > Leading up to that error were the following in pg.log: > 2011-03-28 10:44:06 UTC3609LOG:=A0 checkpoints are occurring too frequent= ly > (11 seconds apart) > 2011-03-28 10:44:06 UTC3609HINT:=A0 Consider increasing the configuration > parameter "checkpoint_segments". > 2011-03-28 10:44:18 UTC3609LOG:=A0 checkpoints are occurring too frequent= ly > (12 seconds apart) > 2011-03-28 10:44:18 UTC3609HINT:=A0 Consider increasing the configuration > parameter "checkpoint_segments". > 2011-03-28 10:44:28 UTC3609LOG:=A0 checkpoints are occurring too frequent= ly > (10 seconds apart) > 2011-03-28 10:44:28 UTC3609HINT:=A0 Consider increasing the configuration > parameter "checkpoint_segments". > 2011-03-28 10:44:38 UTC3609LOG:=A0 checkpoints are occurring too frequent= ly > (10 seconds apart) > 2011-03-28 10:44:38 UTC3609HINT:=A0 Consider increasing the configuration > parameter "checkpoint_segments". > 2011-03-28 10:44:42 UTC3932ERROR:=A0 canceling statement due to statement > timeout > 2011-03-28 10:44:42 UTC3932STATEMENT:=A0 vacuum full analyze _zamboni.sl_= log_1 > 2011-03-28 10:44:42 UTC3932PANIC:=A0 cannot abort transaction 1827110275,= it > was already committed > 2011-03-28 10:44:42 UTC3566LOG:=A0 server process (PID 3932) was terminat= ed by > signal 6 > 2011-03-28 10:44:42 UTC3566LOG:=A0 terminating any other active server > processes > 2011-03-28 10:44:42 UTC13142WARNING:=A0 terminating connection because of > crash of another server process > 2011-03-28 10:44:42 UTC13142DETAIL:=A0 The postmaster has commanded this > server process to roll back the current transaction and exit, because > another server process exited abnormally and possibly corrupted shared > memory. > 2011-03-28 10:44:42 UTC13142HINT:=A0 In a moment you should be able to > reconnect to the database and repeat your command. > 2011-03-28 10:44:42 UTC29834WARNING:=A0 terminating connection because of > crash of another server process > 2011-03-28 10:44:42 UTC29834DETAIL:=A0 The postmaster has commanded this > server process to roll back the current transaction and exit, because > another server process exited abnormally and possibly corrupted shared > memory. > 2011-03-28 10:44:42 UTC29834HINT:=A0 In a moment you should be able to > reconnect to the database and repeat your command. > 2011-03-28 10:44:42 UTC3553WARNING:=A0 terminating connection because of = crash > of another server process > 2011-03-28 10:44:42 UTC3553DETAIL:=A0 The postmaster has commanded this s= erver > process to roll back the current transaction and exit, because another > server process exited abnormally and possibly corrupted shared memory. > In fact those last 3 lines are repeated over and over again repeatedly un= til > "UTC4115FATAL:=A0 the database system is in recovery mode" is logged for = 4 > hours. At some point, 4 hours later of course, it appears that the system > recovers. > > The Checkpoints Settings in postgresql.conf are commented out so I guess = the > defaults are being used: > #checkpoint_segments =3D 3=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 #= in logfile segments, min 1, 16MB > each > #checkpoint_timeout =3D 5min=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # ran= ge 30s-1h > #checkpoint_warning =3D 30s=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # 0= is off > That system where this was seen was using pgsql-8.2.6 on RHEL4. > > Not sure if this is a known bug (or if it is a bug at all or something I = can > address using different configuration) but I thought I would post here fi= rst > if any one might be familiar with this issue and suggest a possible > solution. Any ideas? Not really, although I've seen a few other crashes attributable to trying to cancel VACUUM FULL. As of PostgreSQL 9.0, VACUUM FULL has been completely rewritten, so whatever bug is causing this problem is almost certainly gone in more recent versions. It would be nice to track done and fix whatever is wrong in the older branches, but we'd probably need a reproducible test case of some sort. I don't think it craps out like that EVERY time you interrupt it... --=20 Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company