web-dev-qa-db-ja.com

ラダーのインストール:psql:サーバーに接続できませんでした

Rubber用のDockerイメージを作成しようとしていますが、dbconfig-commonダイアログでこのエラーが発生します。

unable to connect to postgresql server.
error encountered creating user:
psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

また、DEBIAN_FRONTEND=noninteractiveオプションを試したところ、同じエラーが発生しました:これを試したところ、同じエラーが発生しました:

`Setting up rsyslog-pgsql (7.4.4-1ubuntu2.6rudder1) ...
dbconfig-common: writing config to /etc/dbconfig-common/rsyslog-pgsql.conf

Creating config file /etc/dbconfig-common/rsyslog-pgsql.conf with new version

Creating config file /etc/rsyslog.d/pgsql.conf with new version
unable to connect to postgresql server.
error encountered creating user:
psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
dbconfig-common: rsyslog-pgsql configure: noninteractive fail.
dbconfig-common: rsyslog-pgsql configure: ignoring errors from here forwards`

Ubunbu 14.04DockerイメージでRudder4.1を使用しています。

1
Joaquín Silva

これにより、この問題は解決しました。

Sudo apt-get remove --purge postgresql-9.3
Sudo apt-get install postgresql-9.3
Sudo apt-get install -y rudder-server-root

理由はわかりませんが、うまくいきました。

1
Joaquín Silva

Rsyslog-pgsqlダイアログが表示されたときは、デフォルト値を使用し、何も入力しないでください。

ラダーパッケージは、インストール後に正しく構成されていることを確認します。

テスト手順では、常に次のコマンドを使用してパッケージをインストールします

 export DEBIAN_FRONTEND=noninteractive   
 apt-get -y install rudder-server-root
0
Vincent Membré