私は友人と一緒にプロジェクトを進めています。私はbitbucketからアプリケーションをクローンしました。 postgresql(v9.3.7)以外はすべてうまくいきました。それは私に次のメッセージを与え続ける。レールでpostgresqlを設定する
psql: FATAL: password authentication failed for user "ubuntu"
FATAL: password authentication failed for user "ubuntu"
私はスーパーユーザーとすべてのデータベースを作成しました。指定されたユーザーとすべてのデータベースの一覧を以下に示します。
ubuntu=# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------+-----------
divjot | Superuser | {}
postgres | Superuser, Create role, Create DB, Replication | {}
ubuntu | Superuser, Create role, Create DB | {}
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------------+----------+-----------+---------+-------+-----------------------
app_development | ubuntu | SQL_ASCII | C | C |
app_production | ubuntu | SQL_ASCII | C | C |
app_test | ubuntu | SQL_ASCII | C | C |
postgres | postgres | SQL_ASCII | C | C |
template0 | postgres | SQL_ASCII | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | SQL_ASCII | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
ubuntu | ubuntu | SQL_ASCII | C | C |
私はいつもpostgresqlの設定をレールで苦労しています。私は完全にドキュメントに従っていますが、アプリケーションをクローンしたりコードを移動しようとするたびに、私はいつも問題にぶつかります。なぜこのエラーが出るのかわかりません。これに関する助けがあれば大歓迎です。ありがとう!!
のように表示されます。ユーザー'ubuntu'はログインできません。pg_hba.confファイルを確認してください。 – wildplasser
@wildplasser、ファイルにアクセスするコマンドは? –
どのバージョンですか?問題の一部(IME)はバージョンの問題です。 – Gene