Sync is not working

Trying to sync cbl 2.0.0-db020 X sync gateway 1.5 X Couchbase Server 1.5 but it’s not syncing, here is my code:


	"log": ["*"],
	"adminInterface": "",
	"interface": "",
	"databases": {
    "ecomanda": {
      "server": "http://localhost:8091",
      "bucket": "ecomanda",
      "enable_shared_bucket_access": true,
      "import_docs": "continuous",
      "username": "Administrator",
      "password": "alexandrem",
      "users": {
        "GUEST": {
          "disabled": false,
          "admin_channels": [ "*" ]
      "unsupported": {
        "replicator_2": true
      "sync": `function (doc, oldDoc) {

If i open http://localhost:4984/ecomanda/ on browser, it shows: (looks ok)


Here is My c# WPF Test:
readonly Database _db;
string id = Guid.NewGuid().ToString();
readonly Replicator _rep;

    public MainWindow()
        _db = new Database("ecomanda");

        var config = new ReplicatorConfiguration(_db, new Uri("ws://localhost:4984/ecomanda"))
            Continuous = true
        //config.Authenticator = new Couchbase.Lite.Sync.BasicAuthenticator("Administrator", "alexandrem");
        _rep = new Replicator(config);

        _rep.StatusChanged += (sender, e) => {
            if (e.Status.Activity == ReplicatorActivityLevel.Stopped)
                Console.WriteLine("Replication has completed.");

    private void Get_Click(object sender, RoutedEventArgs e)
        var doc = _db.GetDocument(id);

    private void Save_Click(object sender, RoutedEventArgs e)
        var doc = new MutableDocument(id);
        doc.Set("xpto", "abc");

    protected override void OnClosing(CancelEventArgs e)

When I hit “Save” The Sync Gateway console does nothing nor CB Server get any data

Here is the SG Console:

Any help?


The problem is cbl 2.0.0-db020, db019 solve the issue.

What are you getting in _chages request ? If you are not getting anything it means the data is not imported into sync gateway.

Hi guys,

Same problem post today, here my post



1 Like

@pankaj.sharma I think cbl 2.0.0-db020 is the problem, since cbl 2.0.0-db019 is working in the same environment.

Yes I didnt realize that I broke all this until yesterday. I have fixed it already and the fix will be in db021. As always you can build it yourself too if you want to try it immediately.