Sync Gateway not adding "_sync" metadata

Sync Gateway not adding “_sync” metadata to any document saved into Couchbase. I’m totaly clueless about why this is not happening. The problem started some days ago when the project was migrated to the latest Couchbase SDK and we deleted a shadow bucket. I’ve already checked and sync_gateway is running in the server and the config files for it are the same as before. As it is now there is only one bucket in the server and several ipads running Couchbase Lite.

Thanks for the help :slightly_smiling:

1 Like

I’m using the latest version of Couchbase (5.0 ) with Sync Gateway 1.5 and shared_bucket_access enabled and import_docs set to “continuous” and also can’t se the _sync data via n1ql queries or the sync gateway admin ui

With shared bucket access , the sync metadata is now moved over to Extended Attributes XAttrs and is no longer part of the _sync prop associated with the document.

You cannot query for XAttrs via N1QL query.

You can read more about how to use the _raw API in this blog post