Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EE54CB5DC09 for ; Mon, 29 Aug 2011 22:30:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 95598-02 for ; Tue, 30 Aug 2011 01:29:50 +0000 (UTC) X-Greylist: delayed 00:06:52.332811 by SQLgrey-1.7.6 Received: from na3sys009aog102.obsmtp.com (na3sys009aog102.obsmtp.com [74.125.149.69]) by mail.postgresql.org (Postfix) with SMTP id CA6AAB5DC06 for ; Mon, 29 Aug 2011 22:29:49 -0300 (ADT) Received: from mail-iy0-f178.google.com ([209.85.210.178]) (using TLSv1) by na3sys009aob102.postini.com ([74.125.148.12]) with SMTP ID DSNKTlw9DWQYcOP7q6mBwkAGZHNWHB9RUQwX@postini.com; Mon, 29 Aug 2011 18:29:50 PDT Received: by iage36 with SMTP id e36so1059466iag.9 for ; Mon, 29 Aug 2011 18:29:49 -0700 (PDT) Received: by 10.42.243.67 with SMTP id ll3mr3116106icb.521.1314667376071; Mon, 29 Aug 2011 18:22:56 -0700 (PDT) Received: from thorvald-mbp.local (hq-nat.medallia.com [64.124.157.9]) by mx.google.com with ESMTPS id a18sm2885296iba.20.2011.08.29.18.22.54 (version=SSLv3 cipher=OTHER); Mon, 29 Aug 2011 18:22:55 -0700 (PDT) Message-ID: <4E5C3B6B.70101@medallia.com> Date: Mon, 29 Aug 2011 18:22:51 -0700 From: Thorvald Natvig User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6183: FATAL: canceling authentication due to timeout References: <201108292202.p7TM2CO0061531@wwwmaster.postgresql.org> <1148.1314665446@sss.pgh.pa.us> In-Reply-To: <1148.1314665446@sss.pgh.pa.us> X-Enigmail-Version: 1.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/185 X-Sequence-Number: 30997 On 8/29/11 5:50 PM, Tom Lane wrote: > "Thorvald Natvig" writes: >> We get a lot of "FATAL: canceling authentication due to timeout" in the >> log, with accompanying closed connections to clients. > Well, the only known cause of that (other than genuine timeout > conditions) is in fact fixed in 9.1rc1. You have not provided any > information that would permit anyone to look for another cause. This is a database server with fairly high traffic to multiple databases. It seems to be related to multiple concurrent connections, but I haven't had time to isolate a repeatable minimal testcase yet. I was hoping that whatever was wrong was related to something obvious, or that someone else had seen similar issues and were able to help with isolating it. Since this artifact is influencing the usability of the machine, I've disabled the issuing of 'vacuumdb' for now (which "fixes" the issue). >> There does indeed seem to be a correlation between doing vacuum and seeing >> this error. > Are you doing VACUUM FULLs on pg_authid (and if so, why)? If you are, > is it possible that those are queuing up behind other queries that > access pg_authid, and for some reason aren't releasing their locks > promptly? > > regards, tom lane Databases are created from plain-text backups with createdb and psql, minimal modifications are done to a few rows, and then vacuumdb -q -z ${db} A bit later, this database is renamed, a copy of it is created with 'createdb -T olddb newdb', a lot of deletions (between 0 and 90% of the rows) are performed and then vacuumdb -q -f -z ${newdb} The script doing this is run from several machines working on different databases, all hosted on the same server. So it's possible there are multiple full vacuums issued at the same time. However, there are no users connected to the databases being vacuumed during this time, but there are hundreds of connections to other databases on the same server; these are the ones that fail. All of these databases have at one point been created with -T on a database from the above process. As far as I know, there are no direct queries to pg_ tables. All operations are performed over tcp with the same user. I don't know if this helps with where to look. If it doesn't, I'll try to make a repeatable testcase on the weekend, when this server isn't quite so essential. Regards, Thorvald