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 1hMHzG-0007Zl-Vt for pgsql-admin@arkaria.postgresql.org; Thu, 02 May 2019 20:07:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMHzD-0005H5-9j for pgsql-admin@arkaria.postgresql.org; Thu, 02 May 2019 20:07:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMHzC-0005Gx-Mc for pgsql-admin@lists.postgresql.org; Thu, 02 May 2019 20:07:19 +0000 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMHz9-00054w-Vh for pgsql-admin@lists.postgresql.org; Thu, 02 May 2019 20:07:17 +0000 Received: by mail-ot1-x343.google.com with SMTP id d24so3260394otl.11 for ; Thu, 02 May 2019 13:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=nXwYVNBS9mLRODQm2SA7PlPLTT4+Y7aoaNLQy3u5pGA=; b=Hwy9Tz1ZMQRm8+FtD4zDQa1zMT5kW+YorL9I8TwZX6Mtp0QQxm9C6EK8mYl4oHXt5+ N5B7lNC9BlixtLEBmPAZuLdCO85zNqPV+nJKjhGEhm0FPJJzz+jzhn5cnvy1nwM5w5P9 qmhyy7gWU88marM3RxzRVUJHCK+D3Y/kK5W+fXMqKfMBYRe62jlygNt3X64c0f6PaGkA pP6wiO+KWjnk/sMYDch6KYKXjgntliOEub2OKGNUP0aR+mkF6ylcYYPsTgjX71Id5XIH Pa1DbsBEn0HikSfyxWro8q0tRBt6VwBZmqzQT/ApsCkbvmAQc2Ug7Jpd3ytrvZtnpDTo P/9A== 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-language; bh=nXwYVNBS9mLRODQm2SA7PlPLTT4+Y7aoaNLQy3u5pGA=; b=YqT4RZVOtvbNWqLLYP53fPKRck+4QfV/sfi1J/7+ScBEyTusJd04J/ZJ48P/hcytcp Qo29gk8ksysqrpU2aDrIxsgO1WfaWqhzn7k2s+SybRvHB8hiSqc0EHdLFctEbKr2/hdQ 116izWwnYgyzW6hXChLd+VS+a79n7EfmZCUWMt5Fi1uVc5qcVLKKVaek9DjMtreZM62V hVJVbQV6fETnPylpgLJn2yHSDEnHY+emV7X0e0BW2P3ZxgkMEEwLxe3YUmyN7M5rGHWQ s67OX2nzXErxQzUN1IWdHY0zCEbJUgU7H26lb4bafv8CsZkn4cLrZVhWMOWUcMZmqTL1 Bbjg== X-Gm-Message-State: APjAAAUOvXxt0Ly60s1Oxh+txumWRqIZKOvTfYOP+Q2H5+jASlnWvPV9 3loQeVzMVlgc9KbDC7bBKnXQdwAzbsQ= X-Google-Smtp-Source: APXvYqwrE9GduGhLdoUJbdpLH4AzogGULBX+926JOJhTZx/1K9qbYJPRDDeqlkuDbpSdtoGhx4Xwjg== X-Received: by 2002:a9d:68c6:: with SMTP id i6mr3975724oto.330.1556827634970; Thu, 02 May 2019 13:07:14 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id k14sm10308008otl.72.2019.05.02.13.07.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 May 2019 13:07:13 -0700 (PDT) Subject: Re: Psql: could not connect to server: No such file or directory To: pgsql-admin@lists.postgresql.org References: <363d3b8ca13a408c81d584a28d29da8e@BN1F00802MB0033.008f.mgd2.msft.net> <7b9d591c-13bb-7773-e5cb-79e75b4b3f8e@redo2oo.ch> From: Ron Message-ID: <8b465695-f235-db58-1afd-024c22afd5dd@gmail.com> Date: Thu, 2 May 2019 15:07:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <7b9d591c-13bb-7773-e5cb-79e75b4b3f8e@redo2oo.ch> Content-Type: multipart/alternative; boundary="------------3F3687EE7BA18A3F02C3F3D8" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------3F3687EE7BA18A3F02C3F3D8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit He could edit the 9.6/data/postgresql.conf file and have it use a different port, no? On 5/2/19 1:34 PM, robert wrote: > > when you install PostgreSQL the installation copies all its binaries to > their respective places and tries to start the server  afterwards. > > This of course fails as the needed ports are already used by the running > old PostgreSQL server. > > So you end up with a mixture of new and old. > > No idea whether it will be enough to stop the running PostgreSQL and the > just restart the PostgreSQL service .. > > > robert > > On 02.05.19 17:50, SAMMY CRISWELL wrote: >> >> Good morning, >> >> I am preparing to upgrade my pqsl server from 9.3.5 to 9.6.12. I have >> installed the 9.6 rpm onto the server that has 9.3.5 running. Postgres is >> still running 9.3.5 on that server, but when I try to run psql I get the >> following message. >> >> “psql: could not connect to server: No such file or directory >> >>         Is the server running locally and accepting >> >>         connections on Unix domain socket >> "/var/run/postgresql/.s.PGSQL.5432"?” >> >> The database is still running and working I just can’t use any of the >> client commands like psql, pg_dump…. >> >> And there is no "/var/run/postgresql/.s.PGSQL.5432" file. >> >> Can someone help with this problem. >> >> *Sam Criswell*| Senior Systems Engineer I >> >> InfrastructureEngineering >> Intelligence, Information and Services (IIS) >> >> CityLine Phone: +1 972.664.8870* >> Raytheon Company* >> 1737 East Cityline Drive | Richardson, TX 75082 USA >> >> *Upcoming PTO: * >> > -- > Robert Rottermann CEO > > 031 333 10 20 > robert@redo2oo.ch > Sickingerstrasse 3, 3014 Bern 3,3014 Bern> > > https://Redo2oo.ch > > *Ihr Partner wenn es um ERP Lösungen geht.* > -- Angular momentum makes the world go 'round. --------------3F3687EE7BA18A3F02C3F3D8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit He could edit the 9.6/data/postgresql.conf file and have it use a different port, no?

On 5/2/19 1:34 PM, robert wrote:

when you install PostgreSQL the installation copies all its binaries to their respective places and tries to start the server  afterwards.

This of course fails as the needed ports are already used by the running old PostgreSQL server.

So you end up with a mixture of new and old.

No idea whether it will be enough to stop the running PostgreSQL and the just restart the PostgreSQL service ..


robert

On 02.05.19 17:50, SAMMY CRISWELL wrote:

Good morning,

 

I am preparing to upgrade my pqsl server from 9.3.5 to 9.6.12. I have installed the 9.6 rpm onto the server that has 9.3.5 running. Postgres is still running 9.3.5 on that server, but when I try to run psql I get the following message.

 

“psql: could not connect to server: No such file or directory

        Is the server running locally and accepting

        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?”

The database is still running and working I just can’t use any of the client commands like psql, pg_dump….

And there is no "/var/run/postgresql/.s.PGSQL.5432" file.

 

Can someone help with this problem.

 

Sam Criswell | Senior Systems Engineer I

Infrastructure Engineering
Intelligence, Information and Services (IIS)

CityLine Phone: +1 972.664.8870
Raytheon Company

1737 East Cityline Drive | Richardson, TX 75082 USA

 

Upcoming PTO:

 

--
Robert Rottermann CEO

031 333 10 20
robert@redo2oo.ch
Sickingerstrasse 3, 3014 Bern

https://Redo2oo.ch
Ihr Partner wenn es um ERP Lösungen geht.

--
Angular momentum makes the world go 'round.
--------------3F3687EE7BA18A3F02C3F3D8--