user694238
user694238

Reputation: 47

Redmine postgresql FATAL: Ident authentication failed for user "redmine"

Following the these instructions (using postgresql instead of mysql): http://www.redmine.org/projects/redmine/wiki/Redmine_on_CentOS_installation_HOWTO

when run this command :

RAILS_ENV=production bundle exec rake db:migrate

rake show an error message:

FATAL:  Ident authentication failed for user "redmine"

??

Upvotes: 2

Views: 5480

Answers (3)

Eric
Eric

Reputation: 24954

This works for me:

psql redmine redmine -h localhost

The -h localhost part makes the difference.

Upvotes: 0

Amit Bens
Amit Bens

Reputation: 1355

You should have the postgres user name the same as your linux username It's easier than modifying "pg_hba.conf" file

Upvotes: 0

Jon Jaroker
Jon Jaroker

Reputation: 825

It should not be necessary to modify pg_hba.conf for redmine. First check that your database role is configured correctly:

    su - postgres
    psql -d redmine -U redmine -h localhost
    <password challenge>

If the password is accepted, then the next step is to confirm that you have libopenssl-ruby installed.

Upvotes: 2

Related Questions