Questions tagged [couchbase-sync-gateway]

Couchbase Sync Gateway is an add-on that enables Couchbase Server 2.0 and later to act as a replication endpoint for Couchbase Lite. Sync Gateway runs an HTTP listener process that provides a passive replication endpoint and uses a Couchbase Server bucket as persistent storage for all database documents.

Couchbase Sync Gateway is an add-on that enables Couchbase Server 2.0 and newer versions to act as a replication endpoint for Couchbase Lite. Sync Gateway runs an HTTP listener process that provides a passive replication endpoint and uses a Couchbase Server bucket as persistent storage for all database documents.

Resources:

230 questions
2
votes
1 answer

How to ignore delete in couchbase unidirectional replication?

I have bucket1 at datacenter1 and i am replicating it on datacenter2 via XDCR (unidirectional) Now i just want that if there is any update or creation of document occur on bucket1 on datacenter1 then it should get replicated on datacenter2 but if…
Varun Verma
  • 481
  • 1
  • 4
  • 13
2
votes
3 answers

Cannot create user in Couchbase Sync Gateway

I have a running instance of a sync gateway which is connected with a data bucket. I configured the gateway with an initial user: "firstuser": { "disabled": false, "password": "abc" } The sync gateway webview shows exactly this single user.…
Bastian
  • 4,638
  • 6
  • 36
  • 55
2
votes
1 answer

Access Security of Couchbase Server

I'm new in Couchbase and I couldn't find any source regarding my question. I've intended to develop a mobile application using Cordova(Phonegap). And I've thought Couchbase as a database is a good solution. But I have a question regarding…
efkan
  • 12,991
  • 6
  • 73
  • 106
2
votes
2 answers

CouchBase WEB(AngularJS), Android(Native), IOS(Native)

I'm planning to build an application that runs on WEB(AngularJS), Android(Native), IOS(Native). I have experience with MongoDB, but I found CouchBase which sounds really good for me. I read documentation and I found out I need to use sync_gatway to…
2
votes
1 answer

How does Couchbase sync gateway keep mobile clients in sync with the database?

I read about Couchbase used as a content distribution for offline-online content centric applications. But I can't figure out what's the algorithm that keeps everything in sync. Does it just download whole documents when anything changes in it? Or…
sscarduzio
  • 5,938
  • 5
  • 42
  • 54
1
vote
0 answers

Couchbase Document Revision Conflict with missing document

I was told by my team that a document that other documents are referencing is missing. I have the document saved in a backup and I'm trying to add it to the database through the Sync Gateway using curl. curl -vXPUT -H'Content-Type:application/json'…
Justin Lloyd
  • 123
  • 3
  • 11
1
vote
1 answer

What does sync gateway reset option does in the replicator.start(reset:true)

In the replicator we have a option to reset the checkpoints, by setting reset:true, what is the functionality of it, does it actually restart the whole replication operation, deleting the previously synced data or it resumes from the last successful…
1
vote
1 answer

SYNC gateway couldn't connect to couchbase server in a docker environment

I am trying to put CB and Sync Gateway instances in docker. I managed to launch CB Server (defined buckets, users and etc) but when SG fails with the following error message after I do the following docker command: docker run -p 4984:4984 -d…
Nie Selam
  • 1,343
  • 2
  • 24
  • 56
1
vote
1 answer

CBLite Replicator not re-syncing after purging documents

We have an iOS application using Sync Gateway and Couchbase Server to synchronize data between our mobile clients. Now we have a use case where we are syncing Documents, by specifying Channels to replicator configuration. This first sync works…
1
vote
0 answers

Couchbase Document with abnormal metadata

We're running Couchbase Server with Sync Gateway in our project. When I query Couchbase, I encounter documents with Metadata below. It has fields flags and expiration equal to zero. The problem is, this document is not in the DB yesterday. Is it…
serkanz
  • 391
  • 5
  • 21
1
vote
1 answer

How can I update Couchbase Lite version 1.3.1 in Objective-C to latest Couchbase Lite version 3.0?

I am new to Couchbase lite. I have already setup of Couchbase lite 1.3.1 in Objective-C and it's working fine. I have to upgrade this with Couchbase lite 3.0. In latest Couchbase lite list of changes. Ex: CBLManager is not supporting, properties…
1
vote
1 answer

Growing number of couchbase binary documents in XDCR destination bucket

I am running couchbase enterprise edition version 6.6.2 on Windows server 2016 standard edition. I have two buckets called A and B. Bucket A is configured to run with enable_shared_bucket_access = true, my sync gateway creates new documents in…
Siraf
  • 1,133
  • 9
  • 24
1
vote
0 answers

Couchbase sync gateway return forbidden response on document deletion?

Following is the sync function used in the sync gateway. function (doc, oldDoc) { if (doc._deleted == true) return; ....rest of the validations } As per the above function, there is no validation in document deletion. But the sync gateway returns a…
Wella
  • 1,386
  • 3
  • 15
  • 24
1
vote
0 answers

Flutter Google Sign In Couchbase Authentication Code Flow

As we are migrating our app from Firebase to Couchbase, we also need to change the authentication part. We are using the google_sign_in package and would like to continue using it to have the native Google Sign In popup. Using the package we can get…
1
vote
1 answer

Couchbase: How to remove channel access for a document through Sync function

I'm new to couchbase. I want to update channels for some of the documents through sync functions. But right now, it is not updating but adding an extra channel to the document's meta but not removing the existing channel. Can anyone suggest how I…
TheDeveloper
  • 1,127
  • 1
  • 18
  • 55