You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Peter J Krawetzky <pk...@gmail.com> on 2019/01/30 17:28:04 UTC
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 couchdb@127.0.0.1 <0.16144.3292>
333b462db9 rexi_server: from: couchdb@127.0.0.1(<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 couchdb@127.0.0.1 <0.24614.3292>
bc0e3a8085 rexi_server: from: couchdb@127.0.0.1(<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}]}]
Re: Odd Error
Posted by Jan Lehnardt <ja...@apache.org>.
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 <pk...@gmail.com> 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" <wo...@apache.org>
> To: user@couchdb.apache.org
> 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" <pk...@gmail.com>
>>> To: user@couchdb.apache.org
>>> 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 couchdb@127.0.0.1 <0.16144.3292>
>>> 333b462db9 rexi_server: from: couchdb@127.0.0.1(<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 couchdb@127.0.0.1 <0.24614.3292>
>>> bc0e3a8085 rexi_server: from: couchdb@127.0.0.1(<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/
Re[2]: Odd Error
Posted by Peter J Krawetzky <pk...@gmail.com>.
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" <wo...@apache.org>
To: user@couchdb.apache.org
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" <pk...@gmail.com>
>> To: user@couchdb.apache.org
>> 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 couchdb@127.0.0.1 <0.16144.3292>
>> 333b462db9 rexi_server: from: couchdb@127.0.0.1(<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 couchdb@127.0.0.1 <0.24614.3292>
>> bc0e3a8085 rexi_server: from: couchdb@127.0.0.1(<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}]}]
>>
Re: Odd Error
Posted by Joan Touzet <wo...@apache.org>.
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" <pk...@gmail.com>
> To: user@couchdb.apache.org
> 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 couchdb@127.0.0.1 <0.16144.3292>
> 333b462db9 rexi_server: from: couchdb@127.0.0.1(<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 couchdb@127.0.0.1 <0.24614.3292>
> bc0e3a8085 rexi_server: from: couchdb@127.0.0.1(<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}]}]
>