Hi
i try to connect with couchbase server, i tried to connect on 44.217.204.89 but it moves to http://172.17.0.3 and returns connection unsuccessful
guys please help me to fox this
Hi
i try to connect with couchbase server, i tried to connect on 44.217.204.89 but it moves to http://172.17.0.3 and returns connection unsuccessful
guys please help me to fox this
Can you provide some more context for your environment:
Are you running on local hardware or on VM’s/Containers in the cloud?
Can you post your sync_gateway.json configuration file here.
Are you running Sync Gateway with Couchbase Server, if yes, can you access the Couchbase Server Admin Web console and what is the URL for the console?
running on local hardware (windows 10)
sync_gateway.json
{
“interface”:":4984",
“adminInterface”:":4985",
“log”:[""],
“databases”: {
“default”: {
“server”:“http://144.217.204.89:8091”,
“bucket”:“default”,
“sync”:function (doc) { channel (doc.channels); }
,
“users”: {
“GUEST”: {
“disabled”: false,
“admin_channels”: [""]
}
}
}
},
“CORS”: {
“Origin”: [“http://144.217.204.89:8091”],
“LoginOrigin”: [“http://144.217.204.89:8091”],
“Headers”: [“Content-Type”],
“MaxAge”: 17280000
}
}
running sync gateway on local hardware and my couchbase runs on cloud
Why you ha e used couchbase server URL in CORS. Please remove it and then try restart syn gateway. Is all ports related to couchbase open on the couchbase server ? Are you able to ping couchbase server from sync gateway? And what do you see in sync gateway logs. Also your sync gateway config’s sync function value should start with and ends with
. Or as you are using default sync function better remove it.
removed the CROS
i didn’t see any log file
facing the below issue
while using following config the connection was established but sync not done
{
“log”: [""],
“configServer”: “http://144.217.204.89:8091”,
“databases”: {
“db”: {
“server”: “walrus:”,
“users”: { “GUEST”: { “disabled”: false, “admin_channels”: [""] } }
}
}
}
i need to run my sync gateway in local hardware or in cloud ?
please suggest me
Following is a sample configuration file
{
“log”: [“HTTP”,“HTTP+”],
“interface”: “:4984”,
“adminInterface”: “0.0.0.0:4985”,
“logging”: {
“default”: {
“logFilePath”: “/home/sync_gateway/logs/sync_gateway_error.log”,
“logKeys”: [“HTTP”,“HTTP+”],
“logLevel”: “debug”,
“rotation”: {
“maxsize”: 10,
“maxage”: 4,
“maxbackups”: 5,
“localtime”: true
}
}
},
“maxFileDescriptors”: 100000,
“databases”: {
“bucketname”: {
“server”: “http://IPAddress:8091”,
“bucket”: “bucketname”,
“username”: “bucketname”,
“password”: “PASSWORD”,
“sync”: function(doc){ channel(doc.channels); }
,
“users”: {
“GUEST”: {
“disabled”: true,
“admin_channels”: [" * “]
},
“Syncgatewayuser”: {
“disabled”: false,
“password”: “SyncgatewayuserPassword”,
“admin_channels”: [”*"]
}
},
“revs_limit”: 5,
“feed_type”:“DCP”
}
}
}
Secondly check connection between couchbase server and sync gateway and open following ports on couchbase server
https://developer.couchbase.com/documentation/server/3.x/admin/Install/install-networkPorts.html
Open 4984 port on sync gateway and then let me know if you face these issues.
hi
where i set bucket username and password and sync user username and password
bucket username is equal to bucket name always. password is when you create bucket at that time you can set it. See Access Control shown in the image
And the user name and password for sync gateway are set in the config as shown below
thanks for your quick reply
my ip was http://144.217.204.89:8091
and when i try to connect i get http://172.17.0.3:8091/pools/default/bucketsStreaming/tryment_db
y this happen all time
hi
please clarify my doubt
can i run couchbase sync gateway on my hardware like pc to cloud system it’ll works?
It runs on both cloud and on premise.
following links will help you.
i’m looking for reply regards
my ip was http://144.217.204.89:8091
and when i try to connect i get http://172.17.0.3:8091/pools/default/bucketsStreaming/tryment_db
y this happen all time
please help me to fix this
i can’t establish a connection with server due to above issue