(base) root@ubuntu-1604:~/Watchdog# sudo -u postgres psql
could not change directory to "/root/Watchdog": Permission denied
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"?
(base) root@ubuntu-1604:~/Watchdog# sudo -u postgres psql could not change directory to "/root/Watchdog": Permission denied 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"?