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
3
votes
3 answers

When Spring Data Couchbase and Syncgateway Couchbase would support named scopes or collection

Please find below a question on the Couchbase product roadmap. CONTEXT I am currently working on a feature to turn an existing system (a backend app and a mobile app) into a multi-tenant app. The stack would be : Couchbase 7.0 Spring Boot…
3
votes
1 answer

Couchbase Sync Gateway - get previous revision of document?

I've got an android app using Couchbase lite as I need offline mode. When I make multiple changes to a document on the device, the first sync'd document I get has a revision number greater than 1. Is it possible to get previous revisions of that…
David McEleney
  • 3,397
  • 1
  • 26
  • 32
3
votes
1 answer

Get Sync Gateway heartbeat

I have few clients each with installed Couchbase Lite and Sync Gateway and every client's database is replicated to a different bucket on a server. I know that from the client I can check the heartbeat of the sync using: curl -X GET…
I.Manev
  • 709
  • 7
  • 23
3
votes
1 answer

Keycloak invalid redirect uri with Couchbase Sync Gateway OpenID Connect Nginx

I am having trouble hooking up OpenID Connect between a Keycloak server and Couchbase Sync Gateway. My setup is as follows: I have an nginx that is providing SSL termination and reverse proxy to Keycloak and Sync Gateway. So my keycloak…
3
votes
1 answer

Storing data in CouchbaseServer(without metadata)

I have created data in couchabse lite db and replicated it in couchabse server , but in replication unused data is also get created on server. is there any method to store pure data (without metadata) ? is bucket shodowing is usefull for this…
Ram
  • 233
  • 1
  • 17
3
votes
1 answer

pouchdb and couchbase sync gateway

I have this structure Couchbase server <---> couch sync gateway <---> pouchdb and I have 4 databases every local database is sync to remote and every remote db is sync to local, syncing is live. When I load the page syncing starts, but every…
Mauro Sala
  • 1,166
  • 2
  • 12
  • 33
3
votes
0 answers

How to use couchbase with an existing PHP+Postgres server application

I want to use Couchbase for my Sync Only needs with my existing PHP-Postgres Application. So this is how i plan to use it. changes in server are pushed to couchbase sync gateway ( to update couchbase server db ) Hence couchbase should automatically…
3
votes
4 answers

Purging documents in Couchbase Lite

I have a mobile app using Couchbase lite. When the user logouts, I want to remove some of the documents on the device; the user-specific documents. I do not want to remove all of the documents. Documents have a purgeDocument() method that I thought…
Joel Jeske
  • 1,618
  • 14
  • 17
3
votes
2 answers

couchbase server + couchbase lite + couchbase syncgetway + nodejs + raspbarry pi

I want to develope a CRUD application in nodejs with couchbase lite and couchbase syncgetway. I want to run this node js app on Raspberry-pi. As I can't install couchbase server on Raspberry-pi so I have to use couchbase lite as data store for my…
3
votes
1 answer

Sync Gateway creates one document per change when used with Couchbase-lite

From what I have observed: For every document you create, a revision-manager document is also created. This revision-manager keeps track of the latest revision and also maintains a history of all revisions in an array. Every time you update a…
Anish Singh
  • 881
  • 1
  • 13
  • 33
2
votes
1 answer

Couchbase Sync-Gateway Multiple Clients

I'am currently playing around with the Couchbase Sync-Gateway and have built a demo app. What is the intended behavior if a user logs in with the same username on a different device (which has an empty database) or if he deleted the local…
Daniel P.
  • 809
  • 8
  • 15
2
votes
1 answer

Why does couchbase-sync-gateway return "Failure adding Rev to RevTree"?

I tried the procedure I read on Couchbase to resolve conflicts Resolving Conflicts, sync-gateway 1.5. From couchbase-sync-gateway I get a result from _bulk_docs, this error but I can't find any feedback: 2019-09-13T12:10:36.932Z HTTP: #754: GET…
Κωλζαρ
  • 803
  • 1
  • 10
  • 22
2
votes
1 answer

Sync Gateway doesn't delete Documents after successful Syncing and Android App is catching up Documents

Sync Gateway clean all Document when it's added to the Couchbase Server? For example, I added a Document from my Android Application which adds the Document to the Sync Gateway Server and the Sync Gateway forwards it to the Couchbase Server.…
2
votes
2 answers

Using Couchbase SDK vs Sync Gateway API

I have a full deployment of couchbase (server, sync gateway and lite) and have an API, mobile app and web app all using it. It works very well, but I was wondering if there are any advantages to using the Sync Gateway API over the Couchbase SDK?…
Rob Sanders
  • 5,197
  • 3
  • 31
  • 58
2
votes
2 answers

Sync Data between Android App and Server Couchbase Lite

I want Couchbase to first temporary store the data, and then automatically sync it with Server. How do I achieve this ? For example, In note-making app, I add a note and Couchbase should automatically add it to the Server.
1
2
3
15 16