1.

rake aborted! PG::ConnectionBad: FATAL: Ident authentication failed for user "redmine"

編集

エラー内容

rake aborted!
PG::ConnectionBad: FATAL:  Ident authentication failed for user "redmine"

...

Tasks: TOP => db:migrate => environment

 

発生条件/原因/対処法

Redmineインストール時に以下のコマンドを実行に発生するエラー。

RAILS_ENV=production bundle exec rake db:migrate

OSユーザーとpostgresqlのユーザー名が一致していないと発生するエラー。

 

/var/lib/pgsql/data/pg_hba.conf にて認証方法を変えれば解決できる。

METHODがIndentとなっているユーザーがOSユーザーと一致しなければならないユーザー。

host    all             all             127.0.0.1/32            ident
host    all             all             ::1/128                 ident

上記のようになっているユーザーはmd5(パスワード認証)、trust(無条件)に変更する。

 

設定変更したら再起動をして設定を変更する。

service postgresql restart

編集
Post Share
子ページ

子ページはありません

同階層のページ
  1. rake aborted! PG::ConnectionBad: FATAL: Ident authentication failed for user "redmine"
  2. ctl.sh : httpd could not be started