Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6DEA59FB2ED for ; Sun, 4 Feb 2007 20:53:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 06387-10 for ; Sun, 4 Feb 2007 20:52:59 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from smtp06l.fasthosts.co.uk (smtp.fasthosts.co.uk [213.171.216.50]) by postgresql.org (Postfix) with ESMTP id B32439FA303 for ; Sun, 4 Feb 2007 20:52:59 -0400 (AST) Received: from aurora (213-78-152-15.ppp.onetel.net.uk [213.78.152.15]) by smtp06l.fasthosts.co.uk (Postfix) with ESMTP id 3EB71197344 for ; Mon, 5 Feb 2007 00:52:58 +0000 (GMT) From: "Simon Kinsella" To: Subject: Re: Cannot initdb for 8.2.1 - "..../postgres.bki" does not exist Date: Mon, 5 Feb 2007 00:52:55 -0000 Organization: Bluefire Systems Ltd MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <15051.1170216074@sss.pgh.pa.us> Thread-Index: AcdE7ILAmZKGRKwCTbGdjH1e4PmTPwD0sIWQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Message-Id: <20070205005258.3EB71197344@smtp06l.fasthosts.co.uk> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.034 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200702/53 X-Sequence-Number: 24518 Thanks for your input guys - I had to put this problem on hold for a few days. In case it helps anyone in a similar boat, this problem seems to have been due to a umask of 0027. Changing to 022 seems to have fixed it. Cheers, Simon Kinsella -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Tom Lane Sent: Wednesday, January 31, 2007 4:01 AM To: Simon Kinsella Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Cannot initdb for 8.2.1 - "..../postgres.bki" does not exist "Simon Kinsella" writes: > \u@cheddar> /usr/local/bin/initdb -D /usr/local/pgsql/data -E UNICODE > initdb: file "/usr/local/share/postgresql/postgres.bki" does not exist > This means you have a corrupted installation or identified the wrong > directory with the invocation option -L. > The .../share/postgresql/ files do exist. Looking at the code, this message is emitted if attempting to stat() the file fails, regardless of what the actual errno is. So I'm wondering about permissions problems, specifically inability to search one of the directories on the path. We should adjust initdb to report the actual kernel errno value, instead of presuming that it's "file not found". regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster