23/02/27 18:26:11 ERROR io: [com.couchbase.io][SaslAuthenticationFailedEvent][28ms] Authentication Failure - Potential causes: invalid credentials or if LDAP is enabled ensure PLAIN SASL mechanism is exclusively used on the PasswordAuthenticator (insecure) or TLS is used (recommended) {"circuitBreaker":"DISABLED","coreId":"0xe4be866c00000001","remote":"svc-dqis-node-001.czemkgrfh9uqqdor.cloud.couchbase.com:11207","status":"UNKNOWN","type":"KV","xerror":{"ref":"412f8ccc-2bc5-4c7a-4799-22ba14c9e930"}}
The id and pass are correct as I am able to connect with them on the capella instance and the connectionstring is directly copied from the network tab from couchbase.
This looks like the service name (and not the data node). So it would appear that the DNS SRV lookup is failing. Try connecting with SDK Doctor SDK Doctor | Couchbase Docs and look for clues in the diagnostics.
and it returned svc-dqis-node-001.czemkgrfh9uqqdor.cloud.couchbase.com, so I think the DNS SRV is working ok and the resolved address is correct. SDK Doctor is a good idea and may shed some light here.
@rusbi the config option for the bucket is .config("spark.couchbase.implicitBucket", "travel-sample") rather than .config("com.couchbase.bucket.travel-sample", ""). I’m not sure if that’s what’s causing your error though.
[WARN] No certificate authority file specified (--tls-ca), skipping server certificate verification for this run.
[ERRO] Failed to fetch configuration via cccp from `svc-dqis-node-001.dw6zqiavq4ah8llj.cloud.couchbase.com:11207` (error: invalid bucket name/password)
[ERRO] All endpoints specified by your connection string were unreachable, further cluster diagnostics are not possible
Found multiple issues, see listing above
Although all information is valid and i am not providing a bucketname. User pass are fine I have logged in capella using them.
@rusbi just to check the basics - you aren’t using your email address as the username right? That’s for logging in to the Capella admin UI. You then create a database user and use those credentials from your app.
I have created a database access with username and password with all scopes and and read/write. still the sdk-doctor gives:
Summary:
[WARN] No certificate authority file specified (--tls-ca), skipping server certificate verification for this run.
[ERRO] Failed to fetch configuration via cccp from `svc-dqis-node-001.dw6zqiavq4ah8llj.cloud.couchbase.com:11207` (error: failed to select bucket `` (status: 1))
[ERRO] All endpoints specified by your connection string were unreachable, further cluster diagnostics are not possible
Found multiple issues, see listing above.