pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: poudelpratik97@gmail.com
Subject: BUG #17381: psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" After installing
Date: Tue, 25 Jan 2022 02:28:19 +0000
Message-ID: <17381-1ef30f3b252fb937@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17381
Logged by:          Pratik Poudel
Email address:      poudelpratik97@gmail.com
PostgreSQL version: 14.0
Operating system:   Linux- Ubuntu
Description:        

Hello, 
I tried to install postgresql on Ubuntu 20 LTS. 
I followed digital oceans docs and used the following for the
installation::
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib

This installed successfully  when I tried to switch to postgres account
using 
sudo su - postgres 
The above worked.
But it throws the error when i try the command "psql"

psql: error: connection to server on socket
"/var/run/postgresql/.s.PGSQL.5432" 
failed: No such file or directory
	Is the server running locally and accepting connections on that socket?



view thread (2+ messages)  latest in thread

Message-ID: <17381-1ef30f3b252fb937@postgresql.org>
Permalink:  ../17381-1ef30f3b252fb937@postgresql.org/
Also on:    postgresql.org/message-id/17381-1ef30f3b252fb937@postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, poudelpratik97@gmail.com
  Subject: Re: BUG #17381: psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" After installing
  In-Reply-To: <17381-1ef30f3b252fb937@postgresql.org>

* 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