2015-11-02 90 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」

相關問題