Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a0xUV-0004uB-N5 for pgsql-sql@arkaria.postgresql.org; Mon, 23 Nov 2015 20:13:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a0xUV-0002Wm-20 for pgsql-sql@arkaria.postgresql.org; Mon, 23 Nov 2015 20:13:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a0xUT-0002WI-Tx for pgsql-sql@postgresql.org; Mon, 23 Nov 2015 20:13:34 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a0xUP-0001k4-W6 for pgsql-sql@postgresql.org; Mon, 23 Nov 2015 20:13:33 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 95E7C204BA for ; Mon, 23 Nov 2015 15:13:27 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 23 Nov 2015 15:13:27 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=QqtePTw8jRCQctVgzRlG/K0QiQI=; b=LZ5rV/ lmOOooWeI8yhB4YWZiHOsn96vTV97NSIcbqN9JO+lvtDRKIuUYb0xps6fB26d76I YabjRs34BrON10pTSNy+0744LQvondZjq1UjMzbpk9hrEbWDMXVaHQhprYcpBeho QWo72nCUaPUmWMftFfbscgNpLPFTvv5MhYfWw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=QqtePTw8jRCQctV gzRlG/K0QiQI=; b=QgmUGRxAGem8kGntuKiSKwIUReOKnPT7eQuIAVpPKuGvAeo cEjCO5q2CskuRr2LyOdnawRwTjzj1wsbCZmxBe5Cv96Cq6o1Mzggu8lGfrP+n35X SgZaS8fIMpzWTSDjKCFmJw1Rx0qrqJNZBbv8ij6tw5j+Ka/mNXFZBSsVC6wY= X-Sasl-enc: 4wvYr9Qw6Oqtrtbxfjq0GdGSRbYTWk9PZM6jhWPI5tc7 1448309607 Received: from killi.site (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id D3361680109; Mon, 23 Nov 2015 15:13:26 -0500 (EST) Subject: Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map To: Sribeiro , pgsql-sql@postgresql.org References: <1448307482990-5874842.post@n5.nabble.com> From: Adrian Klaver Message-ID: <5653737A.30908@aklaver.com> Date: Mon, 23 Nov 2015 12:13:46 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1448307482990-5874842.post@n5.nabble.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 11/23/2015 11:38 AM, Sribeiro wrote: > Hi All, > > I am trying to use postgresql with a Rails app, and I am having an issue > creating a new user/password. > I get the following message: > createuser: could not connect to database postgres: FATAL: could not open > relation mapping file "global/pg_filenode.map": No such file or directory > > I believe I might of accidentally deleted this file and after sudo > uninstalling Postgres with Brew and re-installing I still cannot get it back > or to work. So as part of the uninstall/install did you do initdb over again or are you reusing the previous cluster directory? Have you looked in the $PGDATA/global directory to see if pg_filenode.map is indeed there or not? Do you have a backup of the database(s)? > > I am using the latest version of Postgres and I'm on Mac OS X 10.10.4 > > Any idea on how I can fix this issue? Thanks so much in advance. > > Sergio > > > > -- > View this message in context: http://postgresql.nabble.com/ERROR-while-creating-new-user-could-not-open-relation-mapping-file-global-pg-filenode-map-tp5874842.html > Sent from the PostgreSQL - sql mailing list archive at Nabble.com. > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql