pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Psql: could not connect to server: No such file or directory
7+ messages / 7 participants
[nested] [flat]

* Psql: could not connect to server: No such file or directory
@ 2019-05-02 15:50  SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>
  0 siblings, 4 replies; 7+ messages in thread

From: SAMMY CRISWELL @ 2019-05-02 15:50 UTC (permalink / raw)
  To: pgsql-admin

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:

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Psql: could not connect to server: No such file or directory
@ 2019-05-02 16:00  rammohan ganapavarapu <rammohanganap@gmail.com>
  parent: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>
  3 siblings, 1 reply; 7+ messages in thread

From: rammohan ganapavarapu @ 2019-05-02 16:00 UTC (permalink / raw)
  To: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>; +Cc: pgsql-admin

Are you using -h localhost to connect? you can do lsof -p {pg pid} to see
where is Unix socket directory pointing to, also check postgresql.conf file
to check if Unix socket location is non default value.

On Thu, May 2, 2019, 8:50 AM SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>
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: *
>
>
>

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Psql: could not connect to server: No such file or directory
@ 2019-05-02 16:04  Pierre Ochsenbein <pierreochsenbein@gmail.com>
  parent: rammohan ganapavarapu <rammohanganap@gmail.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Pierre Ochsenbein @ 2019-05-02 16:04 UTC (permalink / raw)
  To: rammohan ganapavarapu <rammohanganap@gmail.com>; +Cc: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>; pgsql-admin

Hi Rammohan

Please check the error in postgresql log file.

Le jeu. 2 mai 2019 à 18:01, rammohan ganapavarapu <rammohanganap@gmail.com>
a écrit :

> Are you using -h localhost to connect? you can do lsof -p {pg pid} to see
> where is Unix socket directory pointing to, also check postgresql.conf file
> to check if Unix socket location is non default value.
>
> On Thu, May 2, 2019, 8:50 AM SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>
> 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: *
>>
>>
>>
>

-- 
Cordialement,

*Pierre Ochsenbein*
Mobile: +33668295394
pierreochsenbein@gmail.com

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* RE: Psql: could not connect to server: No such file or directory
@ 2019-05-02 16:08  ALEXANDER JOSE <aangelj@hotmail.com>
  parent: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>
  3 siblings, 0 replies; 7+ messages in thread

From: ALEXANDER JOSE @ 2019-05-02 16:08 UTC (permalink / raw)
  To: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>; pgsql-admin

Hi, Check if in the environment variables you have defined the route
export PGPORT = 5432
  export PGHOST = / var / run / postgresql / .s.PGSQL.5432.

Let me know if you can solve it.

Alexander Angel
DBA Postgresql

________________________________
De: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>
Enviado: jueves, 2 de mayo de 2019 3:50 p.m.
Para: pgsql-admin
Asunto: Psql: could not connect to server: No such file or directory


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:

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Psql: could not connect to server: No such file or directory
@ 2019-05-02 17:07  Tom Lane <tgl@sss.pgh.pa.us>
  parent: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>
  3 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2019-05-02 17:07 UTC (permalink / raw)
  To: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>; +Cc: pgsql-admin

SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com> writes:
> 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.

What you've probably run into here is that some packagers build Postgres
to put the server's socket file into /tmp, while others build it to put
the socket into /var/run/postgresql/ or some similar path.  Likely,
you are now using a new version of libpq.so that expects the latter
while your server is still doing the former.  You can override libpq's
default with "-h /tmp" or equivalent in order to connect.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Psql: could not connect to server: No such file or directory
@ 2019-05-02 18:34  robert <robert@redo2oo.ch>
  parent: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>
  3 siblings, 1 reply; 7+ messages in thread

From: robert @ 2019-05-02 18:34 UTC (permalink / raw)
  To: SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>; pgsql-admin

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 <mailto:robert@redo2oo.ch>
Sickingerstrasse 3, 3014 Bern <http://maps.apple.com/?q=Sickingerstrasse 
3,3014 Bern>

https://Redo2oo.ch <https://redo2oo.ch;

*Ihr Partner wenn es um ERP Lösungen geht.*

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Psql: could not connect to server: No such file or directory
@ 2019-05-02 20:07  Ron <ronljohnsonjr@gmail.com>
  parent: robert <robert@redo2oo.ch>
  0 siblings, 0 replies; 7+ messages in thread

From: Ron @ 2019-05-02 20:07 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

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 <mailto:robert@redo2oo.ch>
> Sickingerstrasse 3, 3014 Bern <http://maps.apple.com/?q=Sickingerstrasse 
> 3,3014 Bern>
>
> https://Redo2oo.ch <https://redo2oo.ch;
>
> *Ihr Partner wenn es um ERP Lösungen geht.*
>

-- 
Angular momentum makes the world go 'round.

^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2019-05-02 20:07 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-05-02 15:50 Psql: could not connect to server: No such file or directory SAMMY CRISWELL <Sammy_R_Criswell@raytheon.com>
2019-05-02 16:00 ` rammohan ganapavarapu <rammohanganap@gmail.com>
2019-05-02 16:04   ` Pierre Ochsenbein <pierreochsenbein@gmail.com>
2019-05-02 16:08 ` ALEXANDER JOSE <aangelj@hotmail.com>
2019-05-02 17:07 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-05-02 18:34 ` robert <robert@redo2oo.ch>
2019-05-02 20:07   ` Ron <ronljohnsonjr@gmail.com>

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