2015-11-02 89 views
5

我想开始从CMD sync_gateway用下面的命令:无法通过sync_gateway连接到远程服务器

sync_gateway -url http://75.76.221.21:8091 

我收到以下错误:

20:33:23.014229 WARNING: Error installing Couchbase design doc: Put http://192.168.2.102:8092/sync_gateway/_design/sync_gateway : dial tcp 192.168.2.102:8092: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. -- db.installViews() at database.go:29120:33:44.055739

WARNING: Error installing Couchbase design doc: Put http:/_design/sync_housekeeping: dial tcp 192.168.2.102:8092: ConnectExtcp: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. -- db.installViews() at database.go:30520:33:44.055739

FATAL: Error opening database: Put 192.168.2.102:8092/omnibazaar/_design/sync_housekeeping: dial tcp 192.168.2.102:8092: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. -- rest.RunServer() at config.go:415

+0

这个问题看起来很熟悉。你是否也在我们的论坛上提出这个问题? – borrrden

回答

1

你是如何命名的节点在Couchbase实例?如果您查看服务器节点选项卡,则是您的名为“192.168.2.102”的节点之一。我从您的同步网关计算机上看到,您尝试使用75.76.221.21地址访问Couchbase群集。您是否从同步网关计算机检查了网络连接,尝试“telnet 192.168.2.102 8092”并查看它是否连接。

另一件事是,通过重定向到配置文件来启动同步网关比较常见,可以在示例目录中找到它们。例如“sync_gateway < examples/config-server.json”

相关问题