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
9
votes
2 answers

Sync and delete removed documents from CouchDB and Couchbase-lite

I'm currently using couchbase-lite inside my iOS and android application to sync down files from a database running CouchDB. Every so often I remove files that are not longer needed, and I would like the same files to be removed from the mobile app…
8
votes
1 answer

Couchbase Lite pull replication fails with error in a sample Couchbase Mobile End to End testing project

I am getting started with Couchbase Mobile. The feature that I am most interested (for now) is PULL replication (keep data on mobile in sync with backend database). I followed the steps described in Using Docker to develop with Couchbase Mobile and…
500865
  • 6,920
  • 7
  • 44
  • 87
6
votes
1 answer

In Couchbase Sync Gateway, how to make sure implicit OpenId implicit flow works?

I'm working on an application using OpenId connect implicit flow with Auth0 provider. I'm already able to get the JWT token from Auth0, and now want to start a session in Couchbase sync gateway. For that, I do a POST to /{db}/_session which return…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
6
votes
5 answers

Limit access to the Admin REST API of SyncGateway

According to the documentation the Admin REST API of the SyncGateway shouldn't be exposed. Quote: By default, the Admin REST API runs on port 4985 (unless you change the adminInterface configuration parameter). Do not expose this port—It…
6
votes
4 answers

Sync Gateway "Channels" in PouchDB

Is there any support for Couchbase Sync Gateway's "Channels" in Pouch DB? I'd like to be able to have uses see a subset of the overall data and if they create new data to be able to share whom they share it with. Is that possible with PouchDB? Or…
5
votes
0 answers

EC2 managed websocket connection behind AWS API Gateway?

I'm trying to have an EC2 managed websocket connection fronted by a API Gateway for authorization and to limit exposed surface area of the host. There currently is a service running in EKS with private nodes behind an internal NLB. I can initiate…
5
votes
1 answer

How to use firebase authentication in couchbase sync gateway

I'm developing an Android app. I have used firebase(email, password) authentication mechanism which is very secure and easy to implement. And as I want the data to be stored in our servers, I'm not using firebase storage. Couchbase sync gateway…
5
votes
2 answers

Syncing PouchDB and Couchbase Sync Gateway - CORS Error

I need help syncing PouchDB with Couchbase Sync Gateway. I keep getting the following error that points to a CORS problem, but I've configured Couchbase Sync Gateway (CSG) for CORS according to their documentation. XMLHttpRequest cannot load…
Corey Quillen
  • 1,566
  • 4
  • 24
  • 52
5
votes
1 answer

unable to connect through sync_gateway to remote server

I am trying to start sync_gateway from cmd with following command: sync_gateway -url http://75.76.221.21:8091 I received following error: 20:33:23.014229 WARNING: Error installing Couchbase design doc: Put …
Waqas
  • 49
  • 4
5
votes
2 answers

Sync_gateway couchbase requireRole

I have a problem with the roles of Sync_gateway. My sync_function throws an missing role error at requireRole("adminSync");. I'm accessing with user admin1 that is configured as it follows: "name": "admin1", "all_channels": {}, …
pikap
  • 132
  • 8
4
votes
1 answer

Couchbase deleted documents reappearing in database

We are experiencing a problem where deleted documents are reappearing on our Couchbase server. We have a scenario where documents are created on CBL. These documents are synced up to the server. The user realizes an error has been made and flags the…
4
votes
2 answers

Couchbase Sync Gateway- Server and Client API vs bucket shadowing

I am working on a project that uses Couchbase Server and Sync Gateway to synchronize the contents of a bucket with iOS and Android clients running Couchbase Lite. I also need read and write access to the Couchbase Server from a Node.js server…
gcc
  • 283
  • 1
  • 3
  • 14
4
votes
1 answer

Query sync gateway buckets using N1QL

I wanted to know if it's possible to query the sync gateway buckets using N1QL? Does it behave as a normal couchbase bucket or because of the metadata that sync gateway adds, is it possible to query it only through Rest APIs? Currently I have a…
Sagar
  • 229
  • 4
  • 14
4
votes
1 answer

How to Sync the particular document from couchbase server?

I am developing an application. In that application I had used the couchbase Lite for mobile. I did with syncing of all documents in the database from couchbase server. but the problem is that the database is large. I dont want to sync all documents…
4
votes
1 answer

What is the price of implementing and hosting couchbase lite / mobile myself

I'm just getting started with Xamarin development, and I'm discovery the wonders of using Couchbase Light / Mobile to manage local data and data sync. I watched a very nice video from Xamarin Evolve 2014, in which the folks from Couchbase presented…
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
1
2 3
15 16