Adding new data to couchbase server reflecting only on Syncgateway and not on device


I tried to add a new record on couchbase server and it got reflected only on the sync gateway, not on the device. But on the other way round when I add a new entry on the device it gets reflected both on the sync gateway and the couchbase server. Kindly guide me.

Adding new document to couchbase server

Document added on server

Document reflection only on sync gateway and not reflecting on device

Start with investigating what the CBL console logs says (turn on debug logging) and the SGW logs.
If clients cannot read , then it is likely that the client doesn’t;t have the access grants to pull the data (check credentials, channel access etc)

Also please do not use the admin UI on Sync Gateway. That’s deprecated and unsupported. Use the REST API instead.

could you please tell me how can I turn on debug logging? I haven’t set up any credentials as such.

By REST API do you mean querying via postman? How can I proceed with doing that?

“adminInterface”: “”,
“interface”: “”,
“databases”: {
“grocery-sync”: {
“server”: “”,
“bucket”: “grocery-sync”,
“username”: “user”,
“password”: “password”,
“enable_shared_bucket_access”: true,
“import_docs”: true,
“num_index_replicas”: 0,

  "users": {
    "GUEST": {"disabled": false, "admin_channels": ["*"] }

  "allow_conflicts": false,
  "revs_limit": 20


See SGW docs on how to enable debug logging
Refer to CBL log API for log API

Example in swift for console logging on CBL. Use equivalent for your platform

    Database.log.console.level = .debug = .all

Yeah- any HTTP client including Postman would work.