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 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts