Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jejeH-00034v-K8 for pgsql-general@arkaria.postgresql.org; Fri, 29 May 2020 18:22:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jejeG-0007ji-GN for pgsql-general@arkaria.postgresql.org; Fri, 29 May 2020 18:22:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jejeE-0007jS-L0 for pgsql-general@lists.postgresql.org; Fri, 29 May 2020 18:22:28 +0000 Received: from [66.111.4.29] (helo=out5-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jejeA-0000ac-LI for pgsql-general@lists.postgresql.org; Fri, 29 May 2020 18:22:26 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AB5875C008C; Fri, 29 May 2020 14:22:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 29 May 2020 14:22:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=5 J0CgBJ8RNIvoACrpOV/qyomnRe12xasqmaf0LaG9+Y=; b=J4vheA5SQQRksVC4n Vqq/QrbA250Pd2s/ytwYLkDxM0CqFmsTBqqhv/V0LXm+Asq2WWcR2bl8pKrlVOq3 TfNKj+zCfVejCCctxXSN7XIYRxd4UDwQUP87hQPEoohr/5sYiS93VPho5C9mZT79 MLQvUCN06wGW1/cpByj3S06oquPFM8nDio2CylXjg56jR0sD4RreNYPaYdPtRnT5 UVu+O+KAntRv8rh6zuA+dQdLRR8LuHh7jrWXnV1Khex+d8JLTz0zXTK5D4BQZCzL qyhfeXhZHHHU9yrv25vJY1QKYCaIw56KdWKUxh5DnItcS6rctTsMxCfibhkYoezD 6RMuw== DKIM-Signature: v=1; a=rsa-sha256; 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-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=5J0CgBJ8RNIvoACrpOV/qyomnRe12xasqmaf0LaG9 +Y=; b=ccGGCB9ripyf0sWryLMHKZCxGiBYyPRVNnGrbgUCDJGD+ZpMdA1DzJWBt 1rr0ec3W+brVm8wREAs4RLpU8+EE3BNqCKzrSFLy+gcuJMNwSD3uUkep3ZlgjPvQ SPNaL7oeqjrxLKOCbI6tuZrSFh69uTjDIENMwT9gscJRh2/W2m12VLfrWxfyW4RS FFy8iULwo5ODJa9rjJywsjKy9B+a0eABo89Kmnvh9BF0DXN0yIMFYP5Jbt/sOGG+ HgR6t4Ctzq7QeTEcySsFQh0NQfRncwQwF3KdJ9Q5wAsGkUENKVhG31dWtVjHqqDM EJAlq75xayf1I1sXuMa0SPyKfxXuw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvkedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefheenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeeugeffhfdtvefhhfehkeefgfetffffgefgtefhhfeg heduffevteeileegheegheenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmnecukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvg hrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id E34333060F09; Fri, 29 May 2020 14:22:09 -0400 (EDT) Subject: Re: pg_ctl can't start db server To: Tanja Savic , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <8adf07e9-585e-cbe9-fbc2-dadf89ec6ae5@aklaver.com> Date: Fri, 29 May 2020 11:22:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.29 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/29/20 8:19 AM, Tanja Savic wrote: > Hi, > > We did the upgrade of PostgreSQL 10 to 12 on linux server. Everything > was fine (can connect via pgAdmin, data is there…) except two > tablespaces which are still in directory for PostgreSQL 10. > > So we followed these steps to move tablespaces: > https://www.enterprisedb.com/blog/moving-tablespaces-postgresql > > The problem was at the end while executing: > > $ pg_ctl start > > This is the error trace: > > pg_ctl: another server might be running; trying to start server anyway > > waiting for server to start....postgres: could not access the server > configuration file "/var/lib/postgresql/12/main/postgresql.conf": No > such file or directory > > stopped waiting > > pg_ctl: could not start server > > Examine the log output. > > The configuration file path is /etc/postgresql/12/main/ postgresql.conf > and it is configured in /var/lib/postgresql/12/main/postmaster.opts: > > “/usr/lib/postgresql/12/bin/postgres "-D" "/var/lib/postgresql/12/main" > "-c" "config_file=/etc/postgresql/12/main/postgresql.conf" > > Why does pg_ctl complains about thepostgresql.conf path? I'm guessing you are on Debian/Ubuntu? If so what does the below show?: pg_lsclusters If it shows clusters then do: sudo pg_ctlcluster 12 main start If the above is not correct, then what user where you doing: pg_ctl start as? > > Thank you, > > Tanja > -- Adrian Klaver adrian.klaver@aklaver.com