Error, will retry in 2s: pq: password authentication failed for user “loraserver”"

Thanks, @iegomez . As you said there was a wrong symbol on first line…

When running this command:

sudo journalctl -u loraserver -f -n 50

I still receive the same error:

But now this command works:

sudo loraserver --config /etc/loraserver/loraserver.toml

Response:

WHAT I’VE ALREADY DONE:

Changed dsn to:

dsn=“postgres://loraserver_ns:dbpassword@localhost/loraserver_ns?sslmode=disable”


Path to loraserver.toml:

/etc/loraserver/loraserver.toml


psql:

psql -h localhost -d loraserver_ns -U loraserver_ns

Works, and asking for password. Password: “dbpassword”. Also works and I’m logged in.


Changed pg_hba.conf:

postgres auth was set as peer, but was changed to md5