私のpg_hba.confファイル(/etc/postgresql/9.6/main
にあります)の設定に関連するこの同じ問題がありました。 9.6は私が使用しているpostgresqlのバージョンではないことを祈ってください。
エラー自体はpostgresqlの設定ミスに関連しており、起動前にサーバがクラッシュする原因となります。
私は、これらの指示に従うことをお勧め:
- 動作保証postgresqlのサービスは、あなたが実行しているクラスタでどのような
sudo service postgresql start
- 実行
pg_lsclusters
-
端末からのチェックを使用して、実行されていることを、出力がすべき
バージョン - クラスタポートステータス所有者データディレクトリ
9.6メイン------- - コピー
Disregard the '---' signs, as they are being used there only for alignment. The important information are the version and the cluster. You can also check whether the server is running or not on the status column.
- /var/lib/postgresql/9.6/main 5432のオンラインpostgresのバージョンとクラスタからの情報、及びそのように使用します。
pg_ctlcluster <version> <cluster> start
ので、私のケースでは、バージョン9.6とクラスタ 'main'を使って、それはpg_ctlcluster 9.6 main start
- となります。何か問題があれば、
/var/log/postgresql/postgresql-<version>-main.log
にアクセスできるログが生成されます。 sudo nano /var/log/postgresql/postgresql-9.6-main.log
となります。
- 出力にはエラーが表示されます。
2017-07-13 16:53:04 BRT [32176-1] LOG: invalid authentication method "all"
2017-07-13 16:53:04 BRT [32176-2] CONTEXT: line 90 of configuration file "/etc/postgresql/9.5/main/pg_hba.conf"
2017-07-13 16:53:04 BRT [32176-3] FATAL: could not load pg_hba.conf
- エラーを修正し、postgresqlサービスを
sudo service postgresql restart
で再起動してください。
これを見つけるために多くを検索しましたが、これはpostになります。
運が良かった!
このエラーはまだ解決しましたか? –