Im getting
FATAL: Peer authentication failed for user "postgres"
when I try to make postgres work with Rails.
Here's my pg_hba.conf
: http://pastebin.com/4V1sMS01
and my database.yml
: http://pastebin.com/mS0G6Srp
And a dump of the full trace: http://pastebin.com/bXg1Pkr5
I changed authentication to md5 in pg_hba and tried different things, but none seem to work.
I also tried creating a new user and database as per Rails 3.2, FATAL: Peer authentication failed for user (PG::Error)
But they don't show up on pgadmin or even when I run sudo -u postgres psql -l
Any idea where I'm going wrong?
localhost
but succeed on127.0.0.1
. – uvsmtid Aug 26 '15 at 7:13host: localhost
in thedatabase.yml
file. – Mihail Velikov Mar 16 at 6:50