You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/05/19 13:25:07 UTC

[GitHub] [couchdb] BrodaUa opened a new issue #3570: No DB shards could be opened - req_err(1577439538)

BrodaUa opened a new issue #3570:
URL: https://github.com/apache/couchdb/issues/3570


   ## Description
   I try to build a messaging app with CouchDB +NodeJS using nano lib. For that I try to create a large number of user-message dbs (up to 10k) and start listening changes feed of each db to track new message and reroute it accordingly. 
   Currently, when I try to create  10k of dbs and subscribe to the I get *No DB shards could be opened* - please, see attached error log. This issue linked to the ticket in couchdb-nano repo: https://github.com/apache/couchdb-nano/issues/267 . In short, before I had a performance issue that **nano** was picking up last updates very slowly. Following the advice to increase maxSockets of http agent, now I am stuck with *No DB shards could be opened issue*. 
   
   ## Steps to Reproduce
   1. create 10k databases
   2. try to subscribe to changes feed
   
   ## Expected Behaviour
   no errors
   
   ## Your Environment
   
   [TIP]:  # ( Include as many relevant details about your environment as possible. )
   [TIP]:  # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
   
   * CouchDB version used: couchdb:3.1 from https://hub.docker.com/_/couchdb/
   * Browser name and version:
   * Operating system and version: ubuntu 18.04
   
   ## Additional Context
   App error message:
   ```
   {"message":" No DB shards could be opened.","level":"error","timestamp":"2021-05-19T12:08:48.160Z","metadata":{"scope":"couch","statusCode":500,"request":{"method":"post","headers":{"content-type":"application/json","accept":"application/json","user-agent":"nano/9.0.3 (Node.js v12.22.1)","Accept-Encoding":"deflate, gzip"},"agent":null,"qsStringifyOptions":{"arrayFormat":"repeat"},"url":"http://XXXXXX:XXXXXX@127.0.0.1:5984/sampleDB/_changes","params":{"feed":"longpoll","timeout":60000,"since":"now","limit":100,"include_docs":true},"data":"{}","maxRedirects":0,"httpAgent":null,"httpsAgent":null},"headers":{"uri":"http://XXXXXX:XXXXXX@127.0.0.1:5984/sampleDB/_changes","statusCode":500,"cache-control":"must-revalidate","connection":"close","content-type":"application/json","date":"Wed, 19 May 2021 12:06:07 GMT","x-couch-request-id":"6165cd9925","x-couch-stack-hash":"1577439538","x-couchdb-body-time":"0"},"errid":"non_200","name":"Error","description":"No DB shards could be opened.","e
 rror":"internal_server_error","reason":"No DB shards could be opened.","ref":1577439538,"stack":"Error: No DB shards could be opened.\n at responseHandler (/home/user/project/node_modules/nano/lib/nano.js:175:20)\n at /home/user/project/node_modules/nano/lib/nano.js:405:13\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)"}}
   ```
   
   CouchDB error:
   
   ```
   [error] 2021-05-19T12:10:00.576437Z nonode@nohost <0.17889.57> 95d02fadcb req_err(1577439538) internal_server_error : No DB shards could be opened.
   [<<"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">>]
   ```
   [TIP]:  # ( Add any other context about the problem here. )
   linked issue  https://github.com/apache/couchdb-nano/issues/267
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb] wohali closed issue #3570: No DB shards could be opened - req_err(1577439538)

Posted by GitBox <gi...@apache.org>.
wohali closed issue #3570:
URL: https://github.com/apache/couchdb/issues/3570


   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org