pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tanja Savic <tanja.savic@crossmasters.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pg_ctl can't start db server
Date: Fri, 29 May 2020 11:22:09 -0700
Message-ID: <8adf07e9-585e-cbe9-fbc2-dadf89ec6ae5@aklaver.com> (raw)
In-Reply-To: <VI1PR02MB3023BFD1415100747B1D9397948F0@VI1PR02MB3023.eurprd02.prod.outlook.com>
References: <VI1PR02MB3023BFD1415100747B1D9397948F0@VI1PR02MB3023.eurprd02.prod.outlook.com>

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





view thread (6+ messages)  latest in thread

Message-ID: <8adf07e9-585e-cbe9-fbc2-dadf89ec6ae5@aklaver.com>
Permalink:  ../8adf07e9-585e-cbe9-fbc2-dadf89ec6ae5@aklaver.com/
Also on:    postgresql.org/message-id/8adf07e9-585e-cbe9-fbc2-dadf89ec6ae5@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, tanja.savic@crossmasters.com
  Subject: Re: pg_ctl can't start db server
  In-Reply-To: <8adf07e9-585e-cbe9-fbc2-dadf89ec6ae5@aklaver.com>
  References: <VI1PR02MB3023BFD1415100747B1D9397948F0@VI1PR02MB3023.eurprd02.prod.outlook.com> <8adf07e9-585e-cbe9-fbc2-dadf89ec6ae5@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox