We added this log entry to catch other fabric_rpc:open_shard() errors, so we could debug other situations more easily. It’s just a side effect that this gets logged now as well. We could easily add a try/catch clause here, if anyone here fancies a tiny PR: https://github.com/apache/couchdb/blob/master/src/rexi/src/rexi_server.erl#L143
Best Jan — > On 31. Jan 2019, at 14:11, Peter J Krawetzky <[email protected]> wrote: > > Thanks. Yeah we found the calling app didn't use the creds they should have. > Just odd how the message comes out in the couchdb.log file. Thanks for your > help. > > ------ Original Message ------ > From: "Joan Touzet" <[email protected]> > To: [email protected] > Sent: 1/30/2019 2:54:03 PM > Subject: Re: Odd Error > >> Hi Peter, >> >> There's only one place in the code that this error is generated, >> and it is specific to database _security. Check your database's >> _security value and ensure that it is valid and correct. >> >> -Joan >> >> ----- Original Message ----- >>> From: "Peter J Krawetzky" <[email protected]> >>> To: [email protected] >>> Sent: Wednesday, January 30, 2019 12:28:04 PM >>> Subject: Odd Error >>> >>> Does anyone know what these errors mean? Did a few searches but >>> can't >>> find anything. They started happening all of a sudden. I did check >>> the >>> user:group owners of the shards directory and they are owned by >>> couchdb:couchdb. Nothing had changed configuration wise within >>> couchdb. >>> Thanks. >>> >>> [error] 2019-01-30T15:57:26.867035Z [email protected] <0.16144.3292> >>> 333b462db9 rexi_server: from: [email protected](<0.8983.3293>) mfa: >>> fabric_rpc:open_shard/2 throw:{forbidden,<<"You are not allowed to >>> access this db.">>} >>> [{couch_db,open,2,[{file,"src/couch_db.erl"},{line,154}]},{fabric_rpc,open_shard,2,[{file,"src/fabric_rpc.erl"},{line,267}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,140}]}] >>> >>> [error] 2019-01-30T15:57:26.867142Z [email protected] <0.24614.3292> >>> bc0e3a8085 rexi_server: from: [email protected](<0.21091.3291>) mfa: >>> fabric_rpc:open_shard/2 throw:{forbidden,<<"You are not allowed to >>> access this db.">>} >>> [{couch_db,open,2,[{file,"src/couch_db.erl"},{line,154}]},{fabric_rpc,open_shard,2,[{file,"src/fabric_rpc.erl"},{line,267}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,140}]}] >>> > -- Professional Support for Apache CouchDB: https://neighbourhood.ie/couchdb-support/
