Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 06 2016 17:57
    test2
  • Jan 06 2016 17:56
    test
Matt Ingenthron
@ingenthr
I’m not an expert, but I believe it is correct that you would need to include the OR IS MISSING in the predicate, yes @micopiira
Hariharasuthan99
@Hariharasuthan99
Hello guys, just wanted to know that can field encryption be used for Couchbase Server Enterprise edition 6.0.4?
If I am using SDK3 through Spring Data Couchbase 4.x
Matt Ingenthron
@ingenthr
field level encryption is an SDK feature, so yes. I don’t recall if there is high level support for it through Spring Data Couchbase
Matt Ingenthron
@ingenthr
if there isn’t, which I suspect is the case, you can just pop to the lower level API
Anton Alexeev
@orangeShadow
Hello, can someone help me, I can’t find in the documentation how to select binary data via API in key / value ,
as I understand through N1QL does not work. Tnx!
17 replies
Shubham Sharma
@shubham1172
Hello, I am looking to get help with getting this PR merged couchbaselabs/jsonx#2
Can someone please have a look?
7 replies
Shubham Sharma
@shubham1172

I have a follow up question, based on my last message here. We use couchbase/gocb, and this is what go mod why outputs:

go mod why gopkg.in/couchbaselabs/jsonx.v1
# gopkg.in/couchbaselabs/jsonx.v1
github.com/dapr/dapr/cmd/daprd
github.com/dapr/components-contrib/state/couchbase
gopkg.in/couchbase/gocb.v1
gopkg.in/couchbaselabs/jsonx.v1

This is the relevant part from our go.mod file

    gopkg.in/couchbase/gocb.v1 v1.6.4
    gopkg.in/couchbase/gocbcore.v7 v7.1.18 // indirect
    gopkg.in/couchbaselabs/gocbconnstr.v1 v1.0.4 // indirect
    gopkg.in/couchbaselabs/gojcbmock.v1 v1.0.4 // indirect
    gopkg.in/couchbaselabs/jsonx.v1 v1.0.0 // indirect
5 replies
Terry Dhariwal
@terry42_gitlab
hi Couchbase
I am trying to perform an RPM install to a custom directory
can anyone help
ps - i am a former Couchbaser
kind of urgent as I only have root access for another 1 hour
Matt Ingenthron
@ingenthr
hey Terry, good to see you!
Terry Dhariwal
@terry42_gitlab
hey Matt
likewise
Matt Ingenthron
@ingenthr
RPMs can take different installation root paths, but I’m not sure ours is set up for that or tested that way. there is a set of directions for “non-root-install” that, I think, is available through support
did you try the appropriate arguments to RPM?
Terry Dhariwal
@terry42_gitlab
not sure what the appropriate argument is
I've seen on forums that --relocate is not correct
and there is a link to do it correctly with rpms
however it redirects to the new instructions -
which does not cover how to do this
Matt Ingenthron
@ingenthr
Terry Dhariwal
@terry42_gitlab
thanks
i will take a quick look at the non-root install
Matt Ingenthron
@ingenthr
it uses the RPM, but gives you a way to specify a different location
it also happens to be non-root
Terry Dhariwal
@terry42_gitlab
cool
giving it a go now
Terry Dhariwal
@terry42_gitlab
need to set the nofile to 20000
@ingenthr does not seem to work when updating /etc/security/limits.conf
is there another area?
to update limits?
its cool - figured it out
thanks @ingenthr
Terry Dhariwal
@terry42_gitlab
any idea how to change the linux user to something other than couchbase?
Terry Dhariwal
@terry42_gitlab
figured that out
Matt Ingenthron
@ingenthr
sorry, I was doing some other work stuff, but it looks like you solved things :)
Matt Ingenthron
@ingenthr

Discussion has moved!

For more discussion, join the Couchbase community on Discord.
Matthew D. Groves
@mgroves
I know discussion has moved, but just for any laggers who haven't moved to Discord yet: please make sure to take the Stack Overflow Developer's Survey as soon as you can! This is a very influential survey, and now's your chance to make your voice heard: https://stackoverflow.az1.qualtrics.com/jfe/form/SV_5jeoE1pq9sFcwIe
chhabramaninder91
@chhabramaninder91
Hi All,
I am facing an issue when multiple updations are happening on a single document in a AttemptContext transactional block
and getting a warning message "[com.couchbase.core][IllegalDocumentState] Tried committing document <document_id>, but found that it has been modified by another party in-between staging and committing. The application must ensure that non-transactional writes cannot happen at the same time as transactional writes on a document. The change will be committed with CAS=0, which will overwrite the other change. This document may need manual review to verify that no changes have been lost. Last document state=cas=<CAS>,seqno=<SEQ_NO>,vbucket"
Because of this, data is becoming inconsistent
Michael Reiche
@mikereiche
As the message describes, there is another update that occurred outside of any transaction, and that update is not protected from an update by the current transaction (this is the isolation which is provided by couchbase transactions). Either ensure that all updates occur within couchbase transactions, or use the CAS with the replace operation without couchbase transactions.
chhabramaninder91
@chhabramaninder91
All the updates to a document is happening in a transaction block itself
Keith E. Truesdell
@keithetruesdell_gitlab
hello room, I am new to couchbase, I am currently using Go and the library from Couchbase for Go, GoCB
I am getting an "ambiguous timeout" or "unambiguous timeout" error when I try to run a simple script

some sample code below...

cOpts := gocb.ClusterOptions{
        Authenticator: gocb.PasswordAuthenticator{
            Username: "user",
            Password: "pw",
        },
    }

    cluster, err := gocb.Connect("couchbase://my.dev.server.net/", cOpts)
    if err != nil {
        panic(err)
    }

    qOpts := gocb.QueryOptions{}

    // create query
    queryStr := "SELECT * FROM myBucket WHERE id = '123456789'"

    rows, err := cluster.Query(queryStr, &qOpts)
    if err != nil {
        panic(err)
    }

    fmt.Printf("rows: %v\n", rows)

    for rows.Next() {
        var intfc interface{}
        err = rows.Row(&intfc)
        if err != nil {
            panic(err)
        }
        fmt.Printf("interface result: %v\n", intfc)

    }

The couchbase server is on 5.1.

I am either getting...

panic: ambiguous timeout | {"statement":"SELECT * FROM myBucketName WHERE id = '123456789'","client_context_id":"cdd52a06-c7a5-4d3d-8r26-99fg806d559e"}

...when I run the above code.
OR
If I put in the following lines after the gocb.Connect(... I get the error that is after that.

err = cluster.WaitUntilReady(25*time.Second, &gocb.WaitUntilReadyOptions{DesiredState: gocb.ClusterStateOnline})
if err != nil {
    panic(err)
}

...error...

panic: unambiguous timeout | {"InnerError":{"InnerError":{"InnerError":{},"Message":"unambiguous timeout"}},"OperationID":"WaitUntilReady","Opaque":"","TimeObserved":25000263891,"RetryReasons":["NOT_READY"],"RetryAttempts":105,"LastDispatchedTo":"","LastDispatchedFrom":"","LastConnectionID":""}

NOTE: I changed the Username, Password, Server/connStr, bucket, and the id just for example purposes here.

What am I missing here?

If this is not how to go about connecting to and querying Couchbase I would like to know