Details
-
Bug
-
Resolution: User Error
-
Test Blocker
-
5.0.0
-
None
-
5.0.0-2534
libcouchabse_2.7.3
https://github.com/couchbase/couchbase-python-client/commit/5436719e19b05f9c1891cf7af323056107cc37c9
-
Untriaged
-
Centos 64-bit
-
Yes
Description
I'v already posted MB-23727 but it was closed
and still not able to use python client to connect ti bucket. I've discussed it with Mark Nunberg
and he agreed that auth doesn't work and looks like the issue is on server side
cluster:
1) cbadminbucket/password user with admin role
2017-04-05 12:25:34,929 - root - INFO - **** add built-in 'cbadminbucket' user to node 172.23.106.88 ****
2017-04-05 12:25:36,784 - root - INFO - sleep for 10 secs. ...
2017-04-05 12:25:46,795 - root - INFO - **** add 'admin' role to 'cbadminbucket' user ****
2) default bucket without auth:
2017-04-05 12:26:00,255 - root - INFO - http://172.23.106.88:8091/pools/default/buckets with param: bucketType=membase&threadsNumber=3&authType=sasl&replicaIndex=1&name=default&saslPassword=None&evictionPolicy=valueOnly&flushEnabled=1&replicaNumber=1&ramQuotaMB=2069
and my attempts:
cluster = Cluster('couchbase://172.23.106.88?select_bucket=true', bucket_class=Bucket) |
cluster.authenticate(PasswordAuthenticator('cbadminbucket', 'password')) |
self.cb = cluster.open_bucket('default') |
self.cb.upsert('k', {}) |
LCB_0x2D (generated, catch: CouchbaseNetworkError, CouchbaseTransientError): <Key=u'k', RC=0x2D[The remote host closed the connection], Operational Error, Results=1, C Source=(src/multiresult.c,309)> |
|
|
0ms [I0] {11445} [WARN] (negotiation - L:441) <172.23.106.88:11210> (SASLREQ=0x7f2e242ebbf0) SELECT_BUCKET Disabled by application |
214ms [I0] {11445} [WARN] (cccp - L:370) <172.23.106.88:11210> CCCP Packet responded with 0x8; nkey=0, nbytes=0, cmd=0xb5, seq=0xf00d |
214ms [I0] {11445} [ERROR] (cccp - L:160) <172.23.106.88:11210> Could not get configuration: LCB_PROTOCOL_ERROR (0x16) |
1509ms [I0] {11445} [WARN] (negotiation - L:441) <172.23.106.88:11210> (SASLREQ=0x7f2e242f1cb0) SELECT_BUCKET Disabled by application |
1724ms [I0] {11445} [WARN] (server - L:580) <172.23.106.88:11210> (SRV=0x7f2e24029c70,IX=0) Got socket error LCB_ESOCKSHUTDOWN (0x2D) |
2585ms [I0] {11445} [WARN] (negotiation - L:441) <172.23.106.88:11210> (SASLREQ=0x7f2e241abed0) SELECT_BUCKET Disabled by application |
2800ms [I0] {11445} [WARN] (server - L:580) <172.23.106.88:11210> (SRV=0x7f2e24029c70,IX=0) Got socket error LCB_ESOCKSHUTDOWN (0x2D) |
3149ms [I0] {11445} [WARN] (server - L:343) <NOHOST:NOPORT> (SRV=0x7f2e24029c70,IX=0) Failing command (pkt=0x7f2e24226e80, opaque=0, opcode=0x1) with error LCB_ESOCKSHUTDOWN (0x2D) |
3149ms [I0] {11445} [ERROR] (server - L:418) <NOHOST:NOPORT> (SRV=0x7f2e24029c70,IX=0) Server timed out. Some commands have failed |
LCB_0x2D (generated, catch: CouchbaseNetworkError, CouchbaseTransientError): <Key=u'k', RC=0x2D[The remote host closed the connection], Operational Error, Results=1, C Source=(src/multiresult.c,309)> |
Bucket('couchbase://172.23.106.88?select_bucket=true', username='cbbucketadmin', password='password') |
{_AuthError_0x2 (generated, catch AuthError)}<RC=0x2[Authentication failed. You may have provided an invalid username/password combination], There was a problem while trying to send/receive your request over the network. This may be a result of a bad network or a misconfigured client or server, C Source=(src/bucket.c,785)> |
|
|
2325224ms [I2] {11445} [ERROR] (negotiation - L:131) <172.23.106.88:11210> (SASLREQ=0x7f2e242f1cb0) Error: 0x2, SASL AUTH failed |
2325224ms [I2] {11445} [ERROR] (cccp - L:160) <NOHOST:NOPORT> Could not get configuration: LCB_AUTH_ERROR (0x02) |
2325659ms [I2] {11445} [ERROR] (htconfig - L:141) <172.23.106.88:8091> Got non-success HTTP status code 401 |
2325659ms [I2] {11445} [ERROR] (bootstrap - L:129) Failed to bootstrap client=0x7f2e242e55f0. Error=LCB_AUTH_ERROR (0x02), Message=No more bootstrap providers remain |
Bucket('couchbase://172.23.106.88/default', password = None) |
{_AuthError_0x2 (generated, catch AuthError)}<RC=0x2[Authentication failed. You may have provided an invalid username/password combination], There was a problem while trying to send/receive your request over the network. This may be a result of a bad network or a misconfigured client or server, C Source=(src/bucket.c,785)> |
|
2446989ms [I3] {11445} [ERROR] (negotiation - L:131) <172.23.106.88:11210> (SASLREQ=0x7f2e241abed0) Error: 0x2, SASL AUTH failed |
2446989ms [I3] {11445} [ERROR] (cccp - L:160) <NOHOST:NOPORT> Could not get configuration: LCB_AUTH_ERROR (0x02) |
2447424ms [I3] {11445} [ERROR] (htconfig - L:141) <172.23.106.88:8091> Got non-success HTTP status code 401 |
2447424ms [I3] {11445} [ERROR] (bootstrap - L:129) Failed to bootstrap client=0x7f2e242e55f0. Error=LCB_AUTH_ERROR (0x02), Message=No more bootstrap providers remain |
|
How I can use latest CB/libcouchbase/python-sdk to work with buckets?
Mark Nunberg please assist to find the root problem