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 1i10Sq-00065n-0B for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2019 03:42:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i10Sn-0003EV-Df for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2019 03:42:09 +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 1i10Sn-00039N-21 for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2019 03:42:09 +0000 Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i10Sj-000567-Sg for pgsql-general@postgresql.org; Fri, 23 Aug 2019 03:42:08 +0000 Received: by mail-oi1-x244.google.com with SMTP id g128so6056568oib.1 for ; Thu, 22 Aug 2019 20:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lucee.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=s8M7n1wdhDkRUqXd9a8Nqp81pxWElTOTFkM+vPldVYM=; b=cEjTs6tdwjz/ivfw/Taa/FLxOdqViU2msh1XAzD03496xIpy5/14Iw15x3ie5fo5v7 TYQS7aejtkWh+2bklusNqAbVf82fYkjX+cIb8uA/VAqVkaG+LlBmo9s/6rg97Qr1CjyZ QnVKEKGKC8FyHayn6wkrlhITyv7YwFNaTVU5gLFXiwFG7SiyLKRhKk2w3oyzPgvy4ahO lAOMj3L3Yk++SoHrQ+aUI7OsrwHA2fIIu+Jyn8C4FPQyUK6nDX5Cvtv5R7vcOZdQ1AqG plFkv+HLNdLVgQBU8MHJjc0M40zzhB/Bk0+quK+OyjSufg9b6fBE4IPlC8An3ArBLzDG M6uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=s8M7n1wdhDkRUqXd9a8Nqp81pxWElTOTFkM+vPldVYM=; b=ik6NIKCxl+7xASZysq8aAsFbhyiZRJOwgq5ZnDao+8TPzr6N25bWr1emSF3tGKTpQn UQbvtfqhPCc9t9snLWdGzNFdHdjiLMzBE3bwQErKHsXd+oo2TQqGhZzALpL2wldflfne w1Vli0x4Vn8BVlvLkqG6hANKbgKChZRuOw3i1PZX6IST/gSIhsUiCFZ/JutrWsH/lHac OaoO6sn8T3DDsY/mUkUuWN3LEO8J9T/g1MPXD8bvsX2FBDKETlTgxKpEuVezzST+EZim BABEjkoI4J09NHMu3lbAamlmDcdWfWa9VqlEzH2vesk9yJ8HWyOW0CqYHhb5VMbOZFsW QkNg== X-Gm-Message-State: APjAAAUyRJrzKBonA7Kfzwim+by3kf40itHIWue09TdXFZsnFEmzdVth 5j5sFBkHxHIzo8miDCSrrD7/HMFvLpw= X-Google-Smtp-Source: APXvYqyy92a222k+ouRo1sbwe8a+Rj2mdxkoIfEyTLLhZtVoMMxxuQd2MZfaaK1vZj7AQ2vWsVJyTw== X-Received: by 2002:a54:4893:: with SMTP id r19mr1690941oic.91.1566531723647; Thu, 22 Aug 2019 20:42:03 -0700 (PDT) Received: from ?IPv6:2600:1700:4000:8120:d5f5:f0b8:e2aa:f384? ([2600:1700:4000:8120:d5f5:f0b8:e2aa:f384]) by smtp.googlemail.com with ESMTPSA id t142sm561759oif.4.2019.08.22.20.42.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Aug 2019 20:42:02 -0700 (PDT) Subject: Re: database files are incompatible with server To: Adrian Klaver , pgsql-general References: <2bee6c33-fcf8-6018-3f1f-92a085490f90@lucee.org> <1707638f-71b1-6b06-5200-cc5f2c899f94@aklaver.com> From: "Igal @ Lucee.org" Message-ID: <46b394f7-0c7d-e338-b0f2-2d732b3dd17d@lucee.org> Date: Thu, 22 Aug 2019 20:42:00 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1707638f-71b1-6b06-5200-cc5f2c899f94@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/22/2019 5:08 PM, Adrian Klaver wrote: > On 8/22/19 4:52 PM, Igal @ Lucee.org wrote: >> I have a data directory that was created by Postgres 12 (I thought >> beta 3 but now am not sure anymore) running in Docker. >> >> I have installed Postgres 12b3 as a Systemd service and am trying to >> set the cluster to the same PGDATA.  I have set the owner of the >> directory to postgres:postrgres, and the permissions to 0700, but I'm >> getting the following error: >> >> 2019-08-22 23:40:48.759 UTC [23044] FATAL:  database files are >> incompatible with server >> 2019-08-22 23:40:48.759 UTC [23044] DETAIL:  The database cluster was >> initialized with CATALOG_VERSION_NO  201906161, but the server was >> compiled with CATALOG_VERSION_NO 201907221. > > So the cluster is from an older version then the server. > >> >> How can I start up the Cluster? >> >> Is version 201906161 beta 2? > > Yes: > > https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/catalog/catversion.h;h=fe44cae3ff453ccc02e6c56548c9311b5777bf1f;hb=0ab7110bcbcce5ff58afb32e7871c54e87502139 > >> >> Would running PG12 beta 2 work? > > Worth a try. That worked.  I used the Docker image postgres:12-beta2 to bring up the server. One issue that I kept having was error messages like chown: changing ownership of '...': Permission denied.  That turned out to be an SELinux issue on the CentOS machine.  I have set SELinux to permissive mode temporarily to bring the server up.  Sharing it here for the next guy (most likely my future self). Thanks again, Igal