Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
1
Description
A Sync Gateway user has reported recieving a 'password required' error when Sync Gateway attempts to issue view queries during a graceful failover of one of a three node CBS cluster.
Authentication otherwise is configured properly - SG is able to execute view queries prior to the failover, and after the node is brought back up.
Couchbase server logs show an error like:
[couchdb:error,2019-08-30T09:48:49.226Z,couchdb_ns_1@127.0.0.1:<0.10268.38>:couch_log:error:44]Uncaught error in HTTP request: {throw,{unauthorized,<<"password required">>}}
|
|
Stacktrace: <ud>[{capi_frontend,with_verify_bucket_auth,4,
|
[{file,"src/capi_frontend.erl"},{line,184}]},
|
{request_throttler,do_request,3,
|
[{file,"src/request_throttler.erl"},{line,59}]},
|
{couch_httpd,handle_request,6,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_httpd.erl"},
|
{line,228}]},
|
{mochiweb_http,headers,5,
|
[{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/mochiweb/mochiweb_http.erl"},
|
{line,94}]},
|
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]</ud>
|
|
Does this look like a gocb issue to you? The server appears to think it's not getting the password, but it's not clear to me how/where it could be getting dropped.
This was reported on Sync Gateway 2.1.0, which is pinned to:
gocb: https://github.com/couchbase/gocb/commit/eb0048566506484772bb1be22c1cf0c8cd9def05
gocbcore: https://github.com/couchbase/gocbcore/commit/7b68c492c29f3f952a00a4ba97dac14cc4b2b57e