Syncing seems to stop randomly and restarts if I restart the app

Hi!

I really don’t have a unique code but just syncing with sync gateway that works really well. But at times, there is no syncing that happens (but I know there is data in the Couch Base server). If I close and open the app, the syncing starts immediately. I don’t have much insight into the sync gateway or couch base itself but I wonder where to start looking? Like where do I begin debugging such issue?

A good place to start would be to tell use:

  • What device you are running CBL on
  • What version of CBL are you using
  • A bit more detail about what you are doing: what do you want to sync that isn’t getting synced?

hI Blake.

Sorry I should have added more. It is on Samsung tablet and AVDs as well. The CBL version is 3.2.

So I have a default replicator setup with default configuration (continuous = true). I have a pull replicator setup that will get documents. In the Couchbase there are documents that I want to get (they are added there by a sandboxed application that I have no much knowledge about). But if I go to the couch base admin UI, I do see documents.

now in the app, after I start it, sometimes it syncs well. Other times, nothing happens until I restart it and it syncs. I know data is there in couch base (it is how I confirm after a restart). It is like the connection gets chocked up or something; I really can’t tell at all.

Ok! We’re getting somewhere!!
I’m afraid, though, that we can’t tell, either, with that much info.
I think that a good place to start would be to look at the logcat logs at the time a successful sync happens, and again around the time that you expect it to happen but does not. See if you can find anything suspicious…