Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0E3ED632B45 for ; Fri, 27 Mar 2009 06:20:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 00920-02 for ; Fri, 27 Mar 2009 06:20:40 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by mail.postgresql.org (Postfix) with ESMTP id 34EF1632A74 for ; Fri, 27 Mar 2009 06:20:44 -0300 (ADT) X-Greylist: delayed 23:54:25.630506 by SQLgrey-1.7.6 Received: from smtp.sanger.ac.uk (smtp.sanger.ac.uk [193.62.203.215]) by mx3.hub.org (Postfix) with ESMTP id E3CEC37B959 for ; Fri, 27 Mar 2009 06:20:42 -0300 (ADT) Received: from intmail1b.internal.sanger.ac.uk ([172.17.56.130] helo=smtp.sanger.ac.uk) by mailrelay.internal.sanger.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Ln8Ef-00057t-HZ; Fri, 27 Mar 2009 09:20:21 +0000 Received: from exchsrv2.internal.sanger.ac.uk ([172.22.12.37]) by intmail1b.internal.sanger.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Ln8Ef-00041h-5h; Fri, 27 Mar 2009 09:20:21 +0000 Received: from [127.0.0.1] ([172.19.31.48]) by exchsrv2.internal.sanger.ac.uk with Microsoft SMTPSVC(6.0.3790.1830); Fri, 27 Mar 2009 09:20:20 +0000 Message-ID: <49CC9A53.3020403@sanger.ac.uk> Date: Fri, 27 Mar 2009 09:20:19 +0000 From: Tony Webb User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Tom Lane CC: pgsql-admin@postgresql.org Subject: Re: pg_ctlcluster not logging error (memory problem likely) References: <49CB4A35.1030002@sanger.ac.uk> <28229.1238106935@sss.pgh.pa.us> In-Reply-To: <28229.1238106935@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Mar 2009 09:20:20.0853 (UTC) FILETIME=[405B0A50:01C9AEBD] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/236 X-Sequence-Number: 31736 Tom Lane wrote: > Tony Webb writes: > >> I'm trying to find out why my cluster won't start. It looks like I'm >> pushing up max_connections too high although I think my memory and >> semaphore settings are OK. Thing is, when the cluster fails to start I >> can't see any errors in pg_log or in /var/log/messages. >> > > >> When the cluster is up and running it seems to write normally to these >> locations. >> > > >> Could pg_ctlcluster be writing somewhere else? >> > > I'm not familar with pg_ctlcluster, but it seems possible that the > Debian setup is such that messages issued early in startup go somewhere > else than where messages go once the postmaster is fully up and running. > In particular, until the postmaster has absorbed the logging settings > in postgresql.conf, it's *always* going to write to its stderr. I've > seen startup scripts that send postmaster stderr to /dev/null :-( > because they suppose that pointing log_destination to syslog or some > such means that everything of interest will go there. > > Advice is to look into the startup script, see where it sends > postmaster's stderr, and fix that if it's not someplace you can read. > > regards, tom lane > Thanks Tom. Good advice - I'll check out the pg_ctlcluster script. I've not looked yet. I'm hoping it's a shell script, not perl :-). Cheers Pif -- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.