Greenplum Error "psql: could not connect to server: Permission denied"
search cancel

Greenplum Error "psql: could not connect to server: Permission denied"

book

Article ID: 296149

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

Symptoms:

When running a psql command, it fails with the error message below:

[gpadmin@mdw pg_log]$ psql 
psql: could not connect to server: Permission denied 
Is the server running locally and accepting 
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

 

Environment


Cause

Because Greenplum postgres process will create a temp file under /tmp/ directory, psql would also need to access /tmp/ while starting.

Resolution

After setting /tmp/ directory permission to 777, psql should be working fine again.