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
Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

Couchbase Sync Gateway randomly failing to authenticate using mTLS

We use this way to configure our Sync Gateway with Couchbase: documentation Recently I had to change the way my Sync Gateway authenticate to Couchbase from user+pw to mTLS. Previously, my config ...
João Casarin's user avatar
2 votes
1 answer
57 views

Couchbase backup to S3 with Kubernetes service account role attachment is possible?

I am trying setup Couchbase backup to AWS S3 following the document https://docs.couchbase.com/operator/current/howto-backup.html Kubernetes (EKS) cluster setup in AWS and deployed Couchbase cluster ...
Jijo John's user avatar
  • 1,518
1 vote
0 answers
106 views

App not working only on browserstack IOS devices

Our cross platform app( build using Xamarin.Forms) is running successfully on all the physical devices and also on the Bowserstack Android devices, but it throws error on Browserstack IOS devices. In ...
Kavita's user avatar
  • 11
0 votes
0 answers
33 views

Sync Gateway Admin REST API: Sync Gateway Architect vs Full Admin

I’m facing an issue with Couchbase Server 7.2 and Sync Gateway 3.1, both of which I’m using in their Community Editions. I’m having trouble accessing the Sync Gateway Admin REST API; all my attempts ...
Konst's user avatar
  • 91
1 vote
0 answers
55 views

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 ...
Justin Lloyd's user avatar
1 vote
1 answer
74 views

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 ...
Karan Kumar Sah's user avatar
1 vote
1 answer
481 views

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 ...
Nie Selam's user avatar
  • 1,411
1 vote
1 answer
107 views

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 ...
Tushar Sharma's user avatar
1 vote
0 answers
51 views

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, ...
serkanz's user avatar
  • 421
1 vote
1 answer
40 views

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. ...
Arjun Singh Baghel's user avatar
1 vote
1 answer
102 views

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 = ...
Siraf's user avatar
  • 1,184
0 votes
0 answers
33 views

How to change channel of couchbase using Java api

We have some documents in couchbase in which we have channel like follow channel:['job1'] Now we have to add another channel that is job2 So channel list will be channel :['job1','job2'] Can anyone ...
Rravindra Naik's user avatar
1 vote
0 answers
22 views

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 ...
Wella's user avatar
  • 1,416
1 vote
0 answers
116 views

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 ...
PlutoHDDev's user avatar
1 vote
0 answers
58 views

How to perform “Document Access Removal Behavior”

I went through this document, but unable to remove document access on the sync gateway. FYI: I'm using Couchbase Lite 2.8.6 on the mobile (Xamarin SDK) Document { "channels": [ "...
TheDeveloper's user avatar
  • 1,177
1 vote
1 answer
222 views

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 ...
TheDeveloper's user avatar
  • 1,177
2 votes
1 answer
153 views

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 ...
Daniel P.'s user avatar
  • 831
3 votes
3 answers
339 views

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 ...
MattMatt's user avatar
0 votes
1 answer
293 views

CouchBase Sync Gateway synchronizing

From: Couchbase Sync Gateway I have some questions of the same subject. Since last answer, things change and there is a tutorial for sync user data https://docs.couchbase.com/userprofile-couchbase-...
Francois Dabonot's user avatar
1 vote
1 answer
43 views

Protect Admin REST API of SyncGateway

I have an application will request Sync gateway through Admin REST API. So it’s possible to configure the sync gateway to use the client credentials grant flow to request Admin API? My application and ...
youssef Liouene's user avatar
0 votes
1 answer
97 views

Custom Authentication with 2 Sync Gateway

I'm trying add Custom Authentication. I use 2 instances of Sync-Gateway behind an Nginx. So how can we manage Session with 2 instances of Sync-Gateway? The custom authentication is achieved by calling ...
youssef Liouene's user avatar
4 votes
1 answer
842 views

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 ...
Johan Ferreira's user avatar
1 vote
0 answers
102 views

Couchbase to PouchDB not syncing existing docs

Couchbase 6.6 with Sync-gateway 2.8 My Pouchdb app can save a doc and it will replicate bidirectional with my Couchbase. The existing docs in Couchbase are not syncing to PouchDB nor can I use alldocs ...
Morgan Hayes's user avatar
1 vote
1 answer
51 views

Can we execute N1QL query in exetrnal UDFs in couchbase?

How we can execute N1QL query in External UDF ? I am using couchbase 7.0 beta version I am trying to figure out Can we execute N1QL query in exetrnal UDFs in couchbase? ...... If we can then how? ...
Avinash Kumar's user avatar
0 votes
1 answer
64 views

how we can create External UDF to execute N1QL?

i had created External UDF to execute N1QL but when we execute function then get error function that i created function myFunction() { var N1qlQuery = couchbase.N1qlQuery; query = N1qlQuery....
Avinash Kumar's user avatar
1 vote
2 answers
74 views

how to create udf in couchbase

I am trying to create a function ...... curl -v -X POST http://localhost:8091/functions/v1/libraries/math/function/dateEpoc -H 'content-type: application/json' -d '{"name": "dateEpoc&...
Avinash Kumar's user avatar
1 vote
1 answer
117 views

Couchbase Sync Gateway business logic

I'm currently working on an architecture with an offline mobile client and a database server. I was thinking about using the sync-gateway component from couchbase, hence, couchbase as a server db and ...
Christian German's user avatar
1 vote
1 answer
79 views

does couchbase syncgateway support login with access_token instead of id_token?

I have a pair of questions: Does syncgateway support login with access token instead of idtoken Does syncgateway support defined roles in a token?
zohreh's user avatar
  • 1,055
1 vote
1 answer
89 views

openid implicit flow authorized user cant pull from syncgateway couchbase

Hi everybody I use openid implisit flow in this document https://docs.couchbase.com/sync-gateway/current/authentication.html#implicit-flow for authorization of my user and syncgateway get me this ...
zohreh's user avatar
  • 1,055
1 vote
1 answer
80 views

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

hi I am using identityserver4 in backend for getting jwt token inside of my app I want send my token to syncgateway and take a sessionid I read this article https://docs.couchbase.com/sync-gateway/...
zohreh's user avatar
  • 1,055
1 vote
1 answer
198 views

Load Testing couchbase server - Unable to capture calls triggered from couchbase lite to sync_gateway

Our mobile app uses couchbase lite (version 2.7) and it replicates the data to couchbase server through sync_gateway. Now we want to capture the calls being triggered from couchbaseLite to the ...
pepsin s's user avatar
1 vote
1 answer
246 views

Couchbase Sync Gateway cannot create indexes

I receive an error when I try to start my sync gateway: [INF] Successfully opened bucket sync [INF] Set query timeouts for bucket sync to cluster:1m15s, bucket:1m15s [INF] Initializing indexes with ...
Teodor Dimitrov's user avatar
1 vote
0 answers
185 views

Error opening bucket #bucket: failed to connect to any of the specified hosts(Sync gateway auth to Couchbase using x.509 certificate.)

This is the sync-gateway-config.json file that I am using to authenticate: **sync-gateway-config.json** file { “interface”:":4984", “logging”: { “log_file_path”: “C:/Program Files/Couchbase/...
Python_coding's user avatar
1 vote
1 answer
173 views

Couchbaselite change Changes returns all objects even though only one document was changed

I am working on a couchbase lite driven app and trying to do live query based on this help from couchbase mobile lite. While it works, I am confused on the number of documents that reported as ...
Nie Selam's user avatar
  • 1,411
1 vote
1 answer
890 views

Getting error "WebSocket connection closed by peer" when I try Replicator with Couchbase lite 2.7 Android

This class provide the couchbase lite database and the replicator in mode PUSH_AND_PULL to send and receive data from sync_gateway class CouchBaseLiteManager(private val context: Context) { ...
Malcom's user avatar
  • 283
1 vote
0 answers
115 views

Couchbase Webhook url not triggered when update document

I am new in couchbase, I am using Couchbase server and sync gateway. Trying to write a webhook for document update in couchbase server. When I am changing document manually from server admin section ...
NodeJs-Explorer's user avatar
0 votes
1 answer
207 views

Pulling data from Couchbase server to coubase lite using syncgateway in C# console application

I am trying to create a simple console application in .Net(Windows machine) which connects couchbase lite -> sync-gateway -> couchbase server (hosted in a remote machine). but the data is not ...
Md. Parwez Akhtar's user avatar
1 vote
1 answer
45 views

Is it mandatory to use Couchbase at both client and server end for seamless sync operations?

I want to know how to sync Couchbase with other Databases seamlessly? Can we use different databases with Couchbase in the same project?
Aashish's user avatar
  • 49
8 votes
1 answer
684 views

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 ...
500865's user avatar
  • 7,040
0 votes
1 answer
810 views

Couchbase.Lite fails to replicate

I am trying to replicate a Couchbase Enterprise DB via the C# Couchbase.Lite library. The sync gateway is accessed via an SSH tunnel. Even though am I using it as described in the documentation the ...
Philipp's user avatar
  • 896
0 votes
1 answer
93 views

How to use admin REST API in Xamarin application to create new users in couchbase sync gateway?

I am creating a xamarin mobile application and I want to create new users from the mobile application , I know I can create users from sync gateway configuration or from admin REST API , I tried to ...
Maria Nabil's user avatar
1 vote
1 answer
130 views

How to create user in couchbase from Xamarin application?

I am creating a xamarin app that uses couchbase lite , sync gateway and couchbase server , I followed this tutorial : https://docs.couchbase.com/userprofile-couchbase-mobile/sync/userprofile/xamarin/...
Maria Nabil's user avatar
0 votes
1 answer
495 views

Sync gateway is not syncing with Couchbase server in Xamarin

I am trying to use couchbase for online and offline database in my xamarin application . the offline part is working good , but it doesn't sync . I followed this tutorial : https://docs.couchbase.com/...
Maria Nabil's user avatar
0 votes
1 answer
203 views

Replicate data from couchbase onpremise to AWS documentdb

I have a couchbase installation onpremise and the same data at real time needs to be replicated to AWS Document DB, what are the possible approaches? Can Synch Gateway help?
dvlpr's user avatar
  • 321
0 votes
2 answers
615 views

What does it mean that Sync-gateway returns this error 401 Login required?

Sync-gateway returns this error 401 Login required, I don't understand why. Because I put in the header the basic auth with username and password, our root user to access to Couchbase. I did a get on ...
Kolzar's user avatar
  • 897
2 votes
1 answer
191 views

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 ...
Kolzar's user avatar
  • 897
2 votes
1 answer
779 views

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 ...
miPlodder's user avatar
  • 873
1 vote
1 answer
419 views

Status 403 : SG Wrong User while using Couchbase

I'm sending a POST request to add Document to Couchbase Server via Sync Gateway Server. I'm using serviceconfig.json, similar to link. server key in "databases" contains a link to my Couchbase Server (...
miPlodder's user avatar
  • 873
2 votes
2 answers
807 views

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 ...
Rob Sanders's user avatar
  • 5,277
0 votes
0 answers
99 views

Couchbase Local Server asks for Authentication

I'm sending GET request at http://192.168.43.166:4984/grocery-sync/ {"error":"Unauthorized","reason":"Login required"} and it asks for Username and Password, I ...
miPlodder's user avatar
  • 873

1
2 3 4 5