pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #17381: psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" After installing
2+ messages / 2 participants
[nested] [flat]

* BUG #17381: psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" After installing
@ 2022-01-25 02:28  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2022-01-25 02:28 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: poudelpratik97@gmail.com

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?



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

* Re: BUG #17381: psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" After installing
@ 2022-01-25 11:38  Matti Linnanvuori <matti.linnanvuori@portalify.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Matti Linnanvuori @ 2022-01-25 11:38 UTC (permalink / raw)
  To: poudelpratik97@gmail.com; pgsql-bugs@lists.postgresql.org



> On 25. Jan 2022, at 4.28, PG Bug reporting form <noreply@postgresql.org> wrote:
> 
> 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?
> 
Hello!

I don't think Ubuntu starts the PostgreSQL server with those commands. You should set up and then start PostgreSQL e.g. with command systemctl start.

Best regards, Matti Linnanvuori




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


end of thread, other threads:[~2022-01-25 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 02:28 BUG #17381: psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" After installing PG Bug reporting form <noreply@postgresql.org>
2022-01-25 11:38 ` Matti Linnanvuori <matti.linnanvuori@portalify.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