1

Couchbase 6.6 with Sync-gateway 2.8

My Pouchdb app can save a doc and it will replicate bidirectional with my Couchbase. The existing docs in Couchbase are not syncing to PouchDB nor can I use alldocs function to receive existing docs from Couchbase.

sync-gateway-config has this

"databases": {
    "testing": {
            "import_docs": true,
            "enable_shared_bucket_access": true,
            "bucket": "testing",
            "server": "http://xxxxxx:8091",
            "username": "sync_gateway",
            "password": "password",
            "num_index_replicas": 0,
            "users":{
            "GUEST":{
                    "disabled":false,
                    "admin_channels":["*"]
                }
            },
            "revs_limit": 20
        },

I have no console error as if pouchDB thinks it is working fine.

Any help is appreciated, thanks

Morgan Hayes
  • 321
  • 2
  • 25
  • I have cleared site data and restarted the app and I only get the two records that were entered from the app before, none of the existing records from Couchbase. Couchbase shows all 1300+ records including the two from the app. – Morgan Hayes Feb 10 '21 at 22:04
  • went back a version to Couchbase 5.5 and reloaded data. Data looks good but same issue, pouchdb only sees new docs from app, no existing doc from couchbase are hsown. – Morgan Hayes Feb 11 '21 at 20:40
  • What happens when you call the addDocs REST API directly using any HTTP client ? Share the request and response. Also enable debug level logging on sync gateway and check sync gateway logs for messages that may provide more indication of whats going on. – rajagp Feb 11 '21 at 23:48
  • Posting the germane pouchDB code would be helpful. – RamblinRose Feb 11 '21 at 23:57
  • Was this issue resolved? – Tu Shams Jul 24 '21 at 12:46
  • Not resolved, when to standard CouchDB and started over. – Morgan Hayes Jul 26 '21 at 20:02

0 Answers0