Psql: FATAL: Peer authentication failed for user "node"

Strange thing happening I did not change anything at all. After some while I get Postgres errors in the node and a fatal message. When I try to connect manually to the nodedb with node user I get psql: FATAL: Peer authentication failed for user “node” I can log in when using 127.0.0.1 as host. So when changing in node.yaml the host of postgres to address: “127.0.0.1:5432” this error is gone.

I’m not sure what happened here. Maybe we need to add retry logic to the database connection?

Let us know if it happens again.

Since I changed to the local Postgres connection 127.0.0.1 it did not happen again.