Barman服务器无法连接到Primary

时间:2017-03-08 07:44:55

标签: postgresql barman

我已经创建并遵循了酒保文档中的说明。我有一个主要的Postgres和备用酒吧服务器。我能够从没有密码的后台服务器ssh到主服务器。但是当运行任何barman命令如barman check Postgresdb-server时,我无法得到任何响应。同时,当我在备份服务器中看到wal日志时,wal归档工作正常。即使barman backup Postgresdb-server没有回应。有什么我想念的吗?日志文件表示不可能进行备份,但除此之外没有其他消息。我正在使用最新的barman 2.1和PostgreSQL 9.6.2

[Postgresdb-server]
description =  "Example of PostgreSQL Database (via Ssh)"
ssh_command = ssh postgres@pg
conninfo = host=pg user=barman dbname=postgres
backup_method = rsync
reuse_backup = link
archiver = on

更新:打开外部连接的防火墙端口5432后问题得以解决。在这种情况下,从备份/男服务器服务器打开端口5432到主postgres服务器。这有助于解决这个问题。

psycopg2.connect("host=pg user=barman dbname=postgres") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) psycopg2.OperationalError: could not connect to server: Connection timed out Is the server running on host "pg" and accepting TCP/IP connections on port 5432?

0 个答案:

没有答案