安装Rudder:psql:无法连接到服务器

我正在尝试为Rubber创build一个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.04 Docker镜像中使用了Rudder 4.1。

这解决了这个问题:

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

我不知道为什么,但它的工作。

当rsyslog-pgsql对话框popup时,您应该使用默认值,不要input任何内容。

方向舵软件包将确保在安装后正确configuration。

在我们的testing程序中,我们总是使用以下命令安装软件包

  export DEBIAN_FRONTEND=noninteractive apt-get -y install rudder-server-root