{
“interface”: “:4984”,
“adminInterface”: “:4985”,
“log”:[“CRUD+”, “REST+”, “Changes+”, “Attach+”],
“databases”: {
“sync_gateway”: {
“server”: “walrus:data”,
“bucket”: “sync_gateway”,
“sync”: function(doc) { channel(doc.channels); },
“users”: {
“GUEST”: {
“disabled”: False,
“admin_channels”: [ “*” ]
}
}
}
On checking the data bucket, item count is not getting added up. As I am new to couchbase I dont’t know what I am missing.
Can anyone help me out.
Which data bucket are you checking? The one in Couchbase Server? Your sync gateway is not hooked up to Couchbase Server, but to walrus (a kind of temporary debugging backing store). This is evident by the server: walrus:data line. This needs to be changed to point to Couchbase Server instead. I suggest you look over the configuration options in that case.
That’s because your first problem is your phone and system cannot communicate with each other. Are they on the same network? Is your system firewall preventing connections? Is Sync Gateway still running? If you can connect via browser to your machine and still have issues then post here.
Firewall was preventing browsing via mobile. I have disabled it. Now I am able to browse http://10.0.0.142:4984/sync_gateway/ and it asked for username and password. but I am not able to sign in. I have tried the username and password I gave for sync gateway. Also tried my system credentials.
Still syncing is not happening. Could you provide any sample with steps to be followed to sync data with couchbase server via sync gateway.
The config file you showed above enables guest access, so SG should not be requiring any auth. If it is, then either
It’s not using the config file you showed above; or
there’s some sort of proxy in the way that is asking for auth; or
The IP address you’re using is wrong and you’re connecting to some other server that wants auth.
SG should be logging a line for every HTTP request; it will show the URL and the response status. That will let you determine whether you’re actually reaching it from the device’s browser.
Another way to troubleshoot is to use a shell command like curl to hit that URL from the machine running SG, or some other machine on the LAN.
I have added a new user and able to sign in…My issue is local database is not synced with couchbase server…i had changed the above config…changed the server to localhost address…can you post a sample config file and necessary changes to be made…
Xamarin only matters in building the mobile app. Connecting Sync Gateway and Couchbase Server is completely independent of Xamarin. You can look at any writeup about connecting Sync Gateway and Couchbase Server for help.