Questions tagged [couchbase]

Use for the Couchbase Server product only (NOT CouchDB or Couchbase Lite). Couchbase Server is a distributed database engineered for performance, scalability, availability and flexible query. It enables developers to build applications easier and faster by with both the power of SQL and the flexibility of JSON.

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

Panic runtime error while running Hello Couchbase application

Installed go SDK 1.6 following the instructions given here: https://docs.couchbase.com/go-sdk/current/start-using-sdk.html Created Hello Couchbase application as listed on the above page. While ...
1
vote
0answers
8 views

Problem setting up my replication to my remote elasticsearch cluster

I am having trouble setting up a replication to my elasticsearch remote cluster which I created. This is the error I am getting in cb UI and curl. {"errors":{"toBucket":"Error validating target ...
0
votes
0answers
8 views

Couchbase operator 1.1.0 to 1.2.0 upgradation issue

I am using couchbase server 5.5 with autonomous operator 1.1.0. I made change in operator.yaml couchbase/operator:1.2.0. But when I create cluster, all pods are coming up but cluster is always in ...
0
votes
1answer
15 views

Add count to N1QL query result in Couchbase

I have a N1QL query: SELECT p.`ID`, p.`Name` FROM `Preferences` p WHERE `type` = "myType" The result is a list of objects[{"ID": "123", "Name": "John"}, ...] I want to get a result JSON such as: { ...
2
votes
1answer
18 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 ...
1
vote
0answers
25 views

Query complex JSON on Couchbase Server Query

I'm running Queries on Couchbase Server Query on Complex JSON, { "fname": "saksham", "lname": "handu", "dateOfBirth": { "day": 30, "month": 11, "year": 1996 } } ...
2
votes
1answer
28 views

`sudo pecl install couchbase` gives an error of `ERROR: failed to mkdir /usr/local/Cellar/php/7.3.8/pecl/20180731`

I am setting up couchbase but when I try to install the Couchbase PHP extension by running the command sudo pecl install couchbase it fails with an error of ERROR: failed to mkdir /usr/local/Cellar/...
1
vote
0answers
25 views

STS4 : Unable to connect to Couchbase in debug mode

I am trying to debug my spring boot application in STS 4 (Version: 4.2.2.RELEASE), however application is not able to start in debug mode. It seems it is not able to connect to couchbase server. To ...
1
vote
0answers
24 views

How to access Couchbase RAW document with spring-boot-couchbase CrudRepository

I am migrating an old application from using the Couchbase java client, 2.2.5 to Spring-boot-couchbase. I would like to use Spring Data's Crud Repository. The problem I am running into is that the ...
1
vote
1answer
61 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 (...
3
votes
0answers
57 views

Couchbase insert empty content to server if I use internal, why? [duplicate]

I create a simple insert operation to add the document to the server. My problem is the server has the id and empty content. I create all the staff by tutorial from Source code this is source code ...
2
votes
2answers
80 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 ...
2
votes
1answer
34 views

kafka sink connector cannot connect to Couchbase

I have Apache Kafka and Couchbase running on my local machine Ubuntu VM. I have a SourceConnector that reads from MS SQL, and a sink connector that will write to Couchbase. I'm currently having ...
1
vote
1answer
31 views

How to get today's inserted documents in Couchbase?

I want to get all the documents which were inserted today in couchbase. My document doesn't has any createdAt timestamp. Can someone please guide on how this can be achieved without adding any ...
1
vote
0answers
9 views

Couchbase Automated index updates config changes performance impact

We are calling view with STALE_AFTER, it gives us result immediately and starts building view after that call. We are having just 100 documents that why are getting just ZERO result and calling the ...
0
votes
0answers
33 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 don't know which credentials it's asking ...
0
votes
0answers
22 views

How to implement Couchbase cache with MySQL Database

I am working on a requirement where I need to use Couchbase within a Go webservice for caching services. We have a MySQL Database and Webservices in Go for retrieving data. I need to do Couchbase ...
0
votes
0answers
17 views

Getting Query timeout in Couchbase while performing aggregation on 100m records using spark

I am getting Query timeout when reading 100m records from cocuhbase bucket using spark
1
vote
0answers
34 views

Couchbase distinct query not working as expected

I am trying to get distinct values from a Couchbase query and it is timing out on what should be an almost instantaneous response. I have a bucket with quite a few Documents and 99% of them have a ...
2
votes
2answers
35 views

Couchbase No Index Available

We are having problems with a couchbase N1QL Query. We have an index defined as follows: CREATE INDEX `AppUser_SubjectId3` ON `Portal`(`SubjectId`) WHERE ((meta(self).`id`) like `AppUser%`) We are ...
1
vote
1answer
15 views

How do I authenticate with txcouchbase?

I am connecting to my couchbase server via bucket = Bucket("couchbase://localhost/users"), but how do I authenticate, since the server has a username and password?
1
vote
1answer
28 views

How can Couchbase Mobile Client Lite pass through Proxy

I am using .net core Couchbase Mobile Lite client 2.5 on Windows 10. My machine is part of my corporate network while the Sync Gateway runs in our companies openshift platform in another network. ...
3
votes
1answer
31 views

How to insert the result of a n1ql to a bucket using python SDK couchbase

I want to insert the result of a n1ql into a bucket 'test' using python, and I don't know how to, I'm new to this. I searched into the documentation python SDK using couchbase but didn't find the ...
1
vote
0answers
22 views

View Does Not Exist Exception in Couchbase Spring Application. View does not exists

I am creating a simple Spring MVC application and trying to using Couchbase(No Sql Database) in the back-end. The server is starting successfully, but when I was hitting to get something from Database,...
1
vote
0answers
27 views

“You have defined query method in the repository but you don't have any query lookup strategy defined” after Spring boot version update

When trying to upgrade our Spring Boot app from verions 2.0.4.RELEASE to version 2.1.6.RELEASE we get the following error during the application startup: Caused by: java.lang.IllegalStateException: ...
2
votes
1answer
53 views

Deploying couchbase in a docker swarm environment

I'm trying to deploy couchbase community edition in a docker swarm environment. I followed the steps suggested by Arun Gupta, though I'm not sure if a master-worker model is desired as Couchbase ...
1
vote
1answer
21 views

Nested Query giving 5000 error code in Couchbase

Query throwing 5000 error code: select `e`.* from e where _engViewType = 'lk' and s.assets[0]._id= 'de1bf489-b086-48c8-bbe1-af9527f9ca12' and s.assets[1]._id IN (select RAW e1.s.assets[0]._id from e ...
0
votes
1answer
29 views

lowest numbered “hole” in the sequence

Given a set of documents in couchbase where each document has an integer value which is initially assigned sequentially, but is then later released out of order, find the lowest numbered "hole" in the ...
2
votes
2answers
91 views

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 ...
2
votes
1answer
40 views

How to get CAS value while performing an update using couchbase subdocument api?

I want to perform update on documents. I am using couchbase subdocument api to update the documents. While performing the update,I only have the document id at hand. However to get the current Cas ...
0
votes
0answers
19 views

How to connect to separate couchbase docker containers in the same machine?

I am using this example and it runs fine. But if I spin up another couchbase server like docker run -d --name db2 -p 8095-8098:8091-8094 -p 11211:11210 couchbase The output would be that I would ...
1
vote
1answer
19 views

Unable to understand couchbase metrics

I am unable to understand couchbase metrics. Example: The output of ep_cache_miss_rate is a list of numbers. Kindly do help explain how to understand these metrics. There are also other metrics which ...
1
vote
2answers
31 views

How to write one n1ql query to sum values from multiple documents in the same bucket

I am a newbie to Couchbase DB server and I am trying to achieve with one query what I have done with three queries as this is not so efficient. I have three different documents types (x,y,z) in the ...
1
vote
1answer
43 views

Couchbase: NOT_STORED error during document update

We're running Couchbase Server CE 5.0.1 cluster and communicate with it using java-client in version 2.7.2 to store JSON documents. We perform document updates using sub-document API e.g.: final ...
0
votes
1answer
10 views

Lambda NodeJS error: libcouchbase.so.2: cannot open shared object file: No such file or directory

I get the error libcouchbase.so.2: cannot open shared object file: No such file or directory in my lambda when it tries to initalize Running on Lambda using Couchbase and the Node SDK with external C ...
0
votes
1answer
25 views

Couchbase N1QL ORDER by true and field that doesn't exist

I am trying to order by a field that is present sometimes and other times its not. Example data: [ { Name: Jeff, RegisteredUser: true }, { Name: Jane }, { Name: Jill, RegisteredUser: true }, ] ...
2
votes
0answers
21 views

spirng-data-couchbase writes to the wrong bucket

I have a simple spring-boot project with spring-data-couchbase. In the couchbase I 3 buckets default-bucket, foo-bucket, and bar-bucket. As well I have a CouchbaseConfig class: @...
-2
votes
1answer
30 views

Query to get last X minutes data with couchbase

I want to fetch last X minutes record from the couch base using N1Ql , I know how to do this in SQL but in NOSQl with couch base i am not getting any clue . Please suggest me how i can do this.
0
votes
0answers
44 views

How to append an attribute(tenantID) to all the queries using spring data couchbase

I am using document based multi tenant approach where each document in couchbase db have tenant-ID field. Now for all the queries that are executing in my application, i want extend tenant-ID to it ...
2
votes
1answer
50 views

Couchbase can't MutateIn multiple upserts with null value

I have a Couchbase document that I want to mutate multiple properties on in one call. If one of the property values is null, the mutate fails with a message of: KV Error: {Name="EINVAL", ...
0
votes
0answers
34 views

How to correctly pull data from couchbase? Data stored incorrectly

I am trying to pull in some data that is stored in couchbase. The data is pulled in but it shows up as the following after it is saved. After saving the query and correctly connecting to the source, ...
1
vote
1answer
25 views

N1ql to fetch Index definition

I am working on getting all indexes scripted from one environment from other. I can get indexes names from below query by specifying bucket: select RAW name from system:indexes where keyspace_id=‘...
0
votes
1answer
29 views

springboot couchbase get all documents per 20

I want to make API which is to get all data from couchbase. public List<JsonObject> getAllDocumentsCB() { List<JsonObject> result = new ArrayList<>(); // paging 해서 ...
0
votes
1answer
24 views

couchbase copy data from seperate network

I want to take all data from another bucket. I already know, there are cbtransfer, … cbbackup…cbrestore…and so on. but each other exists seperate network. therefore, these can not be solutions. is ...
1
vote
1answer
29 views

Couchbase (ver. >=5): How to create user using only N1QL

I'm aware of other, well documented methods of user managing like WebUI, CLI tools, API POST.. What I actually need is to have ability to create user only by issuing N1QL statement. I can't find such ...
0
votes
0answers
33 views

Debian:jessie LSB Release, LSB core missing

I ran into a weird issue today. I have my project containerized in docker. I am using Couchbase as a DB and I install Couchbase using deb files. as per the Couchbase documentation and this is how my ...
2
votes
1answer
26 views

Couchbase N1QL want to return items and count

Trying to figure out how to make my couchbase return an object like so: { items: [], totalItemsCount: T<number>, } My select is formatted like so: SELECT a.*, ( SELECT COUNT(*) FROM ...
1
vote
1answer
23 views

Redhat Couchbase Server image/container doesn't respond to http://localhost:8091

I am using couchbase server 6.0.2 image from RedHat https://access.redhat.com/containers/?tab=overview&get-method=registry-tokens#/registry.connect.redhat.com/couchbase/server in openshift. ...
3
votes
2answers
34 views

How to execute a query in couchbase server

I want to execute this query : select path_id , usr_id from pth, so I can get all data from my bucket "path" so I can use it to generate data for my bucket "step". I tried to create a index using ...
0
votes
0answers
25 views

How to Query Couchbase through Java Code using Dynamic Query Param?

I have a couchbase bucket containing documents like : { "name" : "some Name", "address" : "some address", "id" : EFDSFGDD, "age" : 20, "nationality" : "XYZ" } I need to write a Rest ...