Unable to connect via sync_gateway to the remote server

I am trying to run sync_gateway from cmd with the following command:

sync_gateway -url http://75.76.221.21:8091 

I got the following error:

20: 33: 23.014229 ATTENTION: Error installing document Couchbase doc: Put http://192.168.2.102:8092/sync_gateway/_design/sync_gateway : type tcp 192.168.2.102:8092: ConnectEx tcp: connection attempt failed because the associated connection failed the party did not respond properly after some time, or the established connection failed because the connected host was unable to respond. - db.installViews () in database.go: 29120: 33: 44.055739

WARNING: Error installing Couchbase design document: Put http: / _ design / sync_housekeeping: dial tcp 192.168.2.102:8092: ConnectExtcp: the connection attempt failed because the connected side did not respond properly after a certain period of time or the connection failed, because the connected host could not respond. - db.installViews () in 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: connection attempt failed because the connected party did not respond properly after some time, or established The connection failed because the connected host was unable to respond. - rest.RunServer () in config.go: 415

+5
source share
1 answer

What did you name your nodes in your Couchbase instance? If you look at the "Server Nodes" tab, this is one of your nodes with the name "192.168.2.102". I see that from your gateway gateway computer you are trying to reach the Couchbase cluster using the address 75.76.221.21. You checked the network connection from your gateway gateway, try "telnet 192.168.2.102 8092" and see if it connects.

Another thing, most often run the synchronization gateway, redirecting to the configuration file, you can find them in the examples directory. For example, "sync_gateway <examples / config-server.json"

+1
source

Source: https://habr.com/ru/post/1235027/


All Articles