adityayadav7 opened a new issue #3663:
URL: https://github.com/apache/couchdb/issues/3663


   [NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ 
)
   
   ## Description
   I am trying to create bulk document inside the db and getting error `No DB 
shards could be opened.` . Due to this my documents are not getting saved. The 
debug logs are as follows:-
   
   ```
   [debug] 2021-07-13T05:50:06.051322Z nonode@nohost <0.1098.0> aba4e2465c 
Failed to open shard <<"shards/00000000-7fffffff/medicines_sample.1626155316">> 
after: 100
   hr_couchdb       | [debug] 2021-07-13T05:50:06.052311Z nonode@nohost 
<0.3126.0> d91c9958c5 Failed to open shard 
<<"shards/00000000-7fffffff/medicines_sample.1626155316">> after: 100
   hr_couchdb       | [debug] 2021-07-13T05:50:06.052993Z nonode@nohost 
<0.3134.0> d7f04f2c0f Failed to open shard 
<<"shards/00000000-7fffffff/medicines_sample.1626155316">> after: 100
   hr_couchdb       | [debug] 2021-07-13T05:50:06.053079Z nonode@nohost 
<0.1136.0> 276d365f30 Failed to open shard 
<<"shards/00000000-7fffffff/medicines_sample.1626155316">> after: 100
   hr_couchdb       | [debug] 2021-07-13T05:50:06.054968Z nonode@nohost 
<0.1260.0> d48165faab Failed to open shard 
<<"shards/00000000-7fffffff/medicines_sample.1626155316">> after: 100
   hr_couchdb       | [debug] 2021-07-13T05:50:06.055080Z nonode@nohost 
<0.1088.0> 78b3425909 Failed to open shard 
<<"shards/00000000-7fffffff/medicines_sample.1626155316">> after: 100
   hr_couchdb       | [debug] 2021-07-13T05:50:06.080210Z nonode@nohost 
<0.1087.0> ad398d89d3 Failed to open shard 
<<"shards/00000000-7fffffff/medicines_sample.1626155316">> after: 100
   hr_couchdb       | [debug] 2021-07-13T05:50:06.253235Z nonode@nohost 
<0.3126.0> d91c9958c5 Failed to open shard 
<<"shards/80000000-ffffffff/medicines_sample.1626155316">> after: 200
   hr_couchdb       | [error] 2021-07-13T05:50:06.254634Z nonode@nohost 
<0.3126.0> d91c9958c5 req_err(1577439538) internal_server_error : No DB shards 
could be opened.
   hr_couchdb       |     [<<"fabric_util:get_shard/4 
L111">>,<<"fabric_util:get_shard/4 L128">>,<<"fabric_util:get_shard/4 
L128">>,<<"fabric:get_security/2 
L183">>,<<"chttpd_auth_request:db_authorization_check/1 
L110">>,<<"chttpd_auth_request:authorize_request/1 
L19">>,<<"chttpd:handle_req_after_auth/2 L321">>,<<"chttpd:process_request/1 
L306">>]
   hr_couchdb       | [debug] 2021-07-13T05:50:06.254836Z nonode@nohost 
<0.3134.0> d7f04f2c0f Failed to open shard 
<<"shards/80000000-ffffffff/medicines_sample.1626155316">> after: 200
   hr_couchdb       | [debug] 2021-07-13T05:50:06.255085Z nonode@nohost 
<0.1136.0> 276d365f30 Failed to open shard 
<<"shards/80000000-ffffffff/medicines_sample.1626155316">> after: 200
   hr_couchdb       | [notice] 2021-07-13T05:50:06.255725Z nonode@nohost 
<0.3126.0> d91c9958c5 localhost:5990 172.20.0.1 admin POST 
/medicines_sample/_bulk_docs 500 ok 1716
   hr_couchdb       | [error] 2021-07-13T05:50:06.256035Z nonode@nohost 
<0.3134.0> d7f04f2c0f req_err(1577439538) internal_server_error : No DB shards 
could be opened.
   hr_couchdb       |     [<<"fabric_util:get_shard/4 
L111">>,<<"fabric_util:get_shard/4 L128">>,<<"fabric_util:get_shard/4 
L128">>,<<"fabric:get_security/2 
L183">>,<<"chttpd_auth_request:db_authorization_check/1 
L110">>,<<"chttpd_auth_request:authorize_request/1 
L19">>,<<"chttpd:handle_req_after_auth/2 L321">>,<<"chttpd:process_request/1 
L306">>]
   hr_couchdb       | [error] 2021-07-13T05:50:06.256250Z nonode@nohost 
<0.1136.0> 276d365f30 req_err(1577439538) internal_server_error : No DB shards 
could be opened.
   hr_couchdb       |     [<<"fabric_util:get_shard/4 
L111">>,<<"fabric_util:get_shard/4 L128">>,<<"fabric_util:get_shard/4 
L128">>,<<"fabric:get_security/2 L183">>,<<"
   ```chttpd_auth_request:db_authorization_check/1 
L110">>,<<"chttpd_auth_request:authorize_request/1 
L19">>,<<"chttpd:handle_req_after_auth/2 L321">>,<<"chttpd:process_request/1 
L306">>]
   
   
   ## Steps to Reproduce
   
   [NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. )
   
   ## Expected Behaviour
   Document should be saved successfully.
   
   ## Your Environment
   
   
   
`{"couchdb":"Welcome","version":"3.1.1","git_sha":"ce596c65d","uuid":"3aacc489cfeff34e76ff8c3adf40ac58","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The
 Apache Software Foundation"}}`
   * CouchDB version used: 3.1.1
   * Browser name and version: Chrome (latest)
   * Operating system and version: macOS(11.4)
   
   ## Additional Context
   
   [TIP]:  # ( Add any other context about the problem here. )
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to