You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error in dbConnect(): linux socket location moved #564
I'm running Postgres 15 and the current CRAN RPostgres on debian 12.
When I do:
> con <- dbConnect(Postgres())
I get the following:
Error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
I confirmed via psql that the database is running and accessible with current user.
Some poking around: $ netstat -nlp | grep 5432
shows the socket at /var/run/postgresql/.s.PGSQL.5432
I was able to get a successful dbConnect() after doing: $ ln -s /var/run/postgresql/.s.PGSQL.5432 /tmp
Thanks. A documentation PR is about to merge. Long story short: this looks like a mismatch between the server's and the client library's notion of the default socket path.
Activity
krlmlr commentedon Nov 29, 2026
Thanks. A documentation PR is about to merge. Long story short: this looks like a mismatch between the server's and the client library's notion of the default socket path.