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 1enCtQ-0006pb-2M for pgsql-general@arkaria.postgresql.org; Sun, 18 Feb 2018 00:31:48 +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 1enCtO-0000nL-E9 for pgsql-general@arkaria.postgresql.org; Sun, 18 Feb 2018 00:31:46 +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 1enCtN-0000nB-QF for pgsql-general@lists.postgresql.org; Sun, 18 Feb 2018 00:31:46 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enCtF-0002Pz-2I for pgsql-general@postgresql.org; Sun, 18 Feb 2018 00:31:45 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A5ED220C46; Sat, 17 Feb 2018 19:31:34 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sat, 17 Feb 2018 19:31:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=a28wepV3j+WxNmDya2oYVXLcVJJcS 1STE6e/ycaNVpE=; b=E/ijgLiglyw4jHebD53qkzh6c3po1YdgIHt25jSzdi16q M/OYOGvUFv1KRhrsiMo6g2I30+a7tBN3QstLfKLnRR3j4tDB0ONRBCCTBarUxbNh xqtSI2vcSfMRdORePQ6ylqZVO2IBXkcrY1f7pD7PTPstA+IlTVPyfJTQvcBvqfJ+ lJvo7kqKOA+8Wbzkm8/QX4Qp0e3YBcHqYiVk3AmSx+L/JRL030fmWnJ1iJFy9nMX XkQsiPtWZ9VzBjb7D04+lsy21XSf9ssG5YFYGSEffcOdCVboJVxCq1gVyJlwZqRf eSPc5qar6EjVa3C2FjiNIPVLljzZJJCHQOIc7uOVQ== 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-sender:x-me-sender:x-sasl-enc; s=fm2; bh=a28wep V3j+WxNmDya2oYVXLcVJJcS1STE6e/ycaNVpE=; b=l6rKb8I5L342N2/W7dp6Yo 2q9W1OQ8gkwl6zmkuKiG9UPu/17p15paHa6dj9zaabkXIfA+RCALq31ESe3/oniH NhVaAIJok8HKS51KgZJ2Kq6kDDDnA6mX9OOlVikXY2rtAConUPPmT0CWLfsPMrDR XsCg7JnmU22OA20y5JKyiR8lVj+a+gE5X89U7TsrhM4OxuIgDnvPwqeZJsGbJYr2 EvL3AsNwCIx38AsyxQl1JP3HcQ86i04zcor42KWsEPyIE7pwyP8wKEl2NpG/l8e9 GKaaB5OQNXntYxQOK6YyUjK0MhQrX4bmlqrri5YuDPR8Ez1PECdBQYIse6wp+lJg == X-ME-Sender: Received: from [192.168.1.3] (71-212-36-41.tukw.qwest.net [71.212.36.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 1A7F624550; Sat, 17 Feb 2018 19:31:34 -0500 (EST) Subject: Re: Need to fix one more glitch in upgrade to -10.2 To: Rich Shepard , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: Date: Sat, 17 Feb 2018 16:31:33 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/17/2018 03:59 PM, Rich Shepard wrote: > 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* From a previous post: POSTGRES=/usr/lib${LIBDIRSUFFIX}/@PRGNAM@/$PG_VERSION/bin/postgres From here: http://slackbuilds.org/slackbuilds/14.1/system/postgresql/postgresql.SlackBuild if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686 -DLINUX_OOM_SCORE_ADJ=0" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686 -DLINUX_OOM_SCORE_ADJ=0" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC -DLINUX_OOM_SCORE_ADJ=0" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2 -DLINUX_OOM_SCORE_ADJ=0" LIBDIRSUFFIX="" fi So are you on 64bit system? Because then?: /usr/bin/postgres -> ../lib/postgresql/10.2/bin/postgres* would be: /usr/bin/postgres -> ../lib64/postgresql/10.2/bin/postgres* You could also try using pg_ctl to start the server directly: https://www.postgresql.org/docs/10/static/app-pg-ctl.html Just to prove that the install is good. > > Hence, my confustion. > > Rich > > > -- Adrian Klaver adrian.klaver@aklaver.com