Capistrano Postgresql: Fatal: Peer Authentication Failed For User

Posted by Weston Ganger on August 20, 2014

I had the following problem when deploying to production with capistrano

Capistrano postgresql: FATAL: Peer authentication failed for user

The fix was to add a host field under production for Postgres in config/database.yml

So if your database is on the same server then add:

host: localhost

If your database is on a different server then use:

host: yourDatabaseServerIP

Posted in Rails and Tagged with capistrano postgresql database authentication 

Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts