postgres issue

Job ID: 34025693

Budget: ₹600 – ₹1,500 INR

while run this command
sudo -u postgres psql
getting this error
could not change directory to "/root": Permission denied
psql: error: 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.5433"?
root@ubuntu-s-1vcpu-1gb-intel-blr1-01:~#
Related categories: Linux PostgreSQL Ubuntu