Sync Gateway doesn't import documents

Hi all,

I’m managing several Sync Gateway instances which are using ISGR to replicate documents on different Couchbase servers.

Using the SG 3.1.11 EE, I observed that often some document is not imported when created or edited. Hence, no xattrs and _sync.rev fields are present.

That happens either using the SDK or the Query Workbench.

The only workaround known to import the document and trigger the new revision to replicate is calling the _raw/{docId} SG Admin Rest API.

This call triggers the import and generate the new revision, which will then be replicated through ISGR.

Is there a possible bug?
Please note that I’m using both import_docs=true and enable_shared_bucket=true and sometimes the import process works properly.

Many thanks in advance to anyone who will answer.

Any hint about it?
Has someone experienced the same at least one time?

  "enable_shared_bucket_access": true,
  "import_docs": true

Double check your config via Sync Gateway Admin API to see if the above is true configure.

If the above is set correctly. Sound like the Sync Gateway is not getting the changes from the server. So check the ports for the DCP stream from CouchBase are open.

PORTS
SG to CouchBase Ports Docs Prepare to Install Sync Gateway | Couchbase Docs