Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enCOQ-0005CU-Jb for pgsql-general@arkaria.postgresql.org; Sat, 17 Feb 2018 23:59:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enCOO-0000lD-0h for pgsql-general@arkaria.postgresql.org; Sat, 17 Feb 2018 23:59:44 +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_2) (envelope-from ) id 1enCON-0000l2-PE for pgsql-general@lists.postgresql.org; Sat, 17 Feb 2018 23:59:43 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enCOK-0001jn-JI for pgsql-general@postgresql.org; Sat, 17 Feb 2018 23:59:42 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 1FE7C9926A for ; Sat, 17 Feb 2018 15:59:38 -0800 (PST) Date: Sat, 17 Feb 2018 15:59:38 -0800 (PST) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Need to fix one more glitch in upgrade to -10.2 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, 17 Feb 2018, Adrian Klaver wrote: > Did pg_upgrade spit out any warnings/errors? Adrian, Yes. The uid and gid were mis-matched and, because of that, the data/directory and all its files were owned by group user, not group postgres. > In your previous post you showed: > # /etc/rc.postgresql reload > > yet below shows: > > /etc/rc.d/rc.postgresql No, the first left off the rc.d/ directory. > Cut and paste error or not? > > So are env variables set correctly? > > Your ps ax output showed a Postgres instance running: > > postgres -D /var/lib/pgsql/10.2/data Well, I had 'killall postgres' and the server shut down. Don't know why that was displayed. > Do you know what port it is using and try to connect to it? The default: /tmp/.s.PGSQL.5432. Everything's shut down now. So I try: [root@salmo /etc/rc.d]# killall postgres [root@salmo /etc/rc.d]# ./rc.postgresql start Could not find 'postgres' binary. Maybe PostgreSQL is not installed properly? Yet, # ll /usr/bin/postgres lrwxrwxrwx 1 root root 35 Feb 17 09:30 /usr/bin/postgres -> ../lib/postgresql/10.2/bin/postgres* Hence, my confustion. Rich