Hi All,
I have installed couchbase community server (v7) on ubuntu server 20.04, and i trying to connect to bucket from dotnet core but I am getting bucket not found or its unreachable can anyone please help me to resolve this issue, below are the more details
Platform: Ubuntu 20.04 server
Couchbase edition: community v7.0.2 build 6703
Trying to access from: Dotnet core 3.1 (Console app)
Installed SDK: 3.2.7
Line i am getting error: var bucket = await cluster.BucketAsync(bucketName);
I have few buckets created along with the default bucket and also i assigned user to the bucket via application role. I tried watching YouTube but there they have full bucket access role for a user which i dont have it in current couchbase edition. Just suspecting the error i am facing is because of that?
I have only two roles in my couchbase server (Application Access, FullAdmin)
Please suggest
Thanks!!
Welcome @SharashchandraUdupa !
Was the bucket just created by chance? If so, it can take a bit of time for this to propagate.
Can you post the full set of exception lines? Also, you may want to turn up logging to see any details? If that looks good, check the memcached.log
on the server side.
You can also try sdk-doctor from the same place you’re running the client. It can diagnose various connection/configuration problems.
I resolved the issue by changing the connection string from couchbases:// to http://
The sdk-doctor output shows that it couldn’t connect to port 11207, which is the TLS port. If it’s not possible to connect to this port, things won’t work. You’ll need to fix the connectivity problem. See the docs on what ports need to be available client to server.
As to the stack trace, that’s the async job waiting for the IO. We can’t see specifics there, but it’s likely what the sdk-doctor found.
You’ve shifted from TLS to non-TLS. You could do the same by going to “couchbase://” from “couchbases://”. The “couchbase” scheme is recommended. I would recommend you go back to that if you can.
Just checked couchbase:// its working…
Thank you