Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnsLk-0007K2-NF for pgsql-general@arkaria.postgresql.org; Sun, 27 Jan 2019 21:52:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gnsLj-0002ND-I6 for pgsql-general@arkaria.postgresql.org; Sun, 27 Jan 2019 21:52:19 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnsLj-0002N5-9w for pgsql-general@lists.postgresql.org; Sun, 27 Jan 2019 21:52:19 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnsLe-0007gG-UR for pgsql-general@postgresql.org; Sun, 27 Jan 2019 21:52:18 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2130C20B52; Sun, 27 Jan 2019 16:52:13 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 27 Jan 2019 16:52:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=p YbyvUlOn26FsB+QS8lW8H+LCoYswu/vJdbKVjuTrKg=; b=vw6mjD0EGz10WmRcx Ck280G5rD6nuWJLrTJCRPxsgr7A3nudpC+10GuG0p59CzSosxEcmEmSNYG+/xqcj V5lnjFWJ/EE1GtlixuASfFoxkF5pa/rQSoFqrKkmU8IJXag07OigddkqvxgWI/kh Qs0Fu8zfQ+HsrBhC5ebg7enfq9tr9Clid2uITdJwa7hiPVS683NlUBgppdbOkTd4 NC/F6WGVqNAgtIB4S1CUBb9okLZpVZ3pZh35F8f1CxdpAsjmvt1O5m7uoOLXQjDL HkwLT5E4oOptb98vFu/c3S+OaE8Gf7T3QX18eJkP5bYB+402o0BetAkzi50vONJc jDOCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=pYbyvUlOn26FsB+QS8lW8H+LCoYswu/vJdbKVjuTr Kg=; b=wZ3cJTIDAMcwzvAHITEG2WHpSdaWrb0jRlU+zXjYdsPHKQMGgBXxE3hif vwxaI621NX5soEu2yIqeOjY/QvOdYWBtznfBMSG9c2oAe+FPC0kncq7i42hLwe+s 3ePK0RRMH19ZRoteqQ3l0uKuADxwBbPljgR8jesn8cpPm2kngHWfbNLfbEsouwfS xCBgYdOtyEMXNO3Xv/trkso/kVm+AojfZWg/CbC82TKuimieqwNphCLAlW5+nBpl AW6DLOJZCwY0Hbi50hlsObN6sYi3iudwTVzbdixUEosAQ5765e5/2PncjcCeVKH1 qB7T9MUlZDLWOkJzM0jzxwg3Siv4g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrieekgdduheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomh eptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghv vghrrdgtohhmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppe ejuddrvdduvddrudefgedrfeenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.2] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 26D2010087; Sun, 27 Jan 2019 16:52:12 -0500 (EST) Subject: Re: Error message restarting a database To: Begin Daniel Cc: pgsql-general References: <85497da8-6e5c-4ed9-6412-7b72de5bc7fc@aklaver.com> <6ce3f730-8808-88d0-79ba-161325d4f128@aklaver.com> From: Adrian Klaver Message-ID: Date: Sun, 27 Jan 2019 13:52:11 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/27/19 1:38 PM, Begin Daniel wrote: > -----Original Message----- > From: Adrian Klaver [mailto:adrian.klaver@aklaver.com] > Sent: Sunday, January 27, 2019 16:15 > To: Begin Daniel > Cc: pgsql-general > Subject: Re: Error message restarting a database > > On 1/27/19 12:56 PM, Begin Daniel wrote: > > Not a good day, forgot to actually Cc list last time. > >> -----Original Message----- >> From: Adrian Klaver [mailto:adrian.klaver@aklaver.com] >> Sent: Sunday, January 27, 2019 15:43 >> To: Begin Daniel >> Subject: Re: Error message restarting a database >> >> On 1/27/19 12:38 PM, Begin Daniel wrote: >> Please reply to list also >> Ccing list. >>> -----Original Message----- >>> From: Adrian Klaver [mailto:adrian.klaver@aklaver.com] >>> Sent: Sunday, January 27, 2019 15:33 >>> To: Begin Daniel; pgsql-general@lists.postgresql.org >>> Subject: Re: Error message restarting a database >>> >>> On 1/27/19 12:23 PM, Begin Daniel wrote: >>>> I worked with a PostgreSQL database (9.3) for a couple of years on my >>>> PC. I shut down the PostgreSQL server about a year ago and I obviously >>>> did not access the database since. Now I am trying to access again to >>>> the database but I get the following error message... >>>> >>>> FATAL: *"pg_tblspc/113608/PG. 9.3_ 201306121/18364" is not a valid data >>>> directory >>>> >>>> DETAIL: File *" pg_tblspc/113608/PG. 9.3_ 201306121/18364/PG_VERSION" is >>>> missing. >>>> >>>> Anyone has an idea on how to solve this problem? >>> >>> What OS and version? >>> Best guess is your OS updated Postgres in the past year and the newer >>> version is trying to load an older data directory. >>> >>>> >>>> Daniel >>>> >>> >>> OS and version... >>> Windows 10 Pro, Version 1809 installed on 2019-01-11 >>> OS Build 17763.253 >> >> Whoops, just realized the errors are pointing at a tablespace/dir. >> >> Does the directory in the error message exist? >> >>> >>> >> I have multiple tablespaces. According to the definition of my tablespaces, the error point on the following directory: K:\pgsqlData\PG_9.3_201306121\18364 >> The directory exists with 888 items in it, but there is no file named PG_VERSION >> > > Are all the tablespaces connected to a single Postgres instance? > > Are you still using Postgres 9.3? > > Does the Postgres top level data directory still exist? > > > Right, not a good day ;-) > - All tablespaces are connected to a single Postgres database instance > - I am still using Postgres 9.3 since I did not change anything related to PostgreSQL since I shut down the server a year ago > - I am not sure what you mean by top level directory. PGDATA from here: https://www.postgresql.org/docs/10/storage-file-layout.html I am going to say PGDATA exists given the below. > > I am using PgAdmin to access my PostgreSQL databases. I can access the default database (postgres), tablespace definitions, group roles and login roles. The other database instance I have is the one that send me error messages. > To be clear you are running only one instance(cluster) of Postgres and that instance has several databases defined in it, correct? If you go to PGDATA.pg_tblspc do you have links to the tablespaces? -- Adrian Klaver adrian.klaver@aklaver.com