Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

No DB shards could be opened. #96

Open
Nathariel opened this issue Mar 17, 2012 · 2 comments
Open

No DB shards could be opened. #96

Nathariel opened this issue Mar 17, 2012 · 2 comments

Comments

@Nathariel
Copy link

Hey guys. We are using bigcouch 0.4.0-1 single node with q = 1 and n =1 for testing purposes.

Occasionally HTTP GET requests for random dbs fail with 'Uncaught error in HTTP request: {error,{internal_server_error,"No DB shards could be opened."}}'. Sometimes redoing them succeeds immediately, sometimes we have to wait several times until they pass. The queries can be with or without views and from what we observe happen in totally random fashion. We can confirm that the requested db shards exist on the filesystem.

Any feedback would be greatly appreciated.

Console output

[Wed, 14 Mar 2012 14:47:04 GMT] [error] [<0.28853.117>] [b9b4b7c0] Uncaught error in HTTP request: {error,
{internal_server_error,
"No DB shards could be opened."}}
[Wed, 14 Mar 2012 14:47:04 GMT] [error] [<0.28852.117>] [921351eb] Uncaught error in HTTP request: {error,
{internal_server_error,
"No DB shards could be opened."}}
[Wed, 14 Mar 2012 14:47:04 GMT] [info] [<0.28853.117>] [b9b4b7c0] Stacktrace: [{fabric_util,get_shard,3},
{fabric,get_security,2},
{chttpd_db,do_db_req,2},
{chttpd,handle_request,1},
{mochiweb_http,headers,5},
{proc_lib,init_p_do_apply,3}]
[Wed, 14 Mar 2012 14:47:04 GMT] [info] [<0.28852.117>] [921351eb] Stacktrace: [{fabric_util,get_shard,3},
{fabric,get_security,2},
{chttpd_db,do_db_req,2},
{chttpd,handle_request,1},
{mochiweb_http,headers,5},
{proc_lib,init_p_do_apply,3}]
[Wed, 14 Mar 2012 14:47:04 GMT] [info] [<0.28853.117>] [b9b4b7c0] undefined - - 'GET' /something 500
[Wed, 14 Mar 2012 14:47:04 GMT] [info] [<0.28852.117>] [921351eb] undefined - - 'GET' /something 500

@rnewson
Copy link
Contributor

rnewson commented Mar 17, 2012

Hi,

I assume you mean 0.4.0 here. Can you show the output of 'curl host:5986/dbs/dbname' where 'dbname' is the name you use to access the database on port 5984?

@Nathariel
Copy link
Author

Hey,

This is correct - the version we are using is 0.4.0-1.

The output of the command is as follows:

curl 127.0.0.1:5986/dbs/dbname

{"_id":"dbname","_rev":"1-ae666b6d0941f14b1c501f02535b3b4f","shard_suffix":[46,49,51,51,48,51,55,56,49,57,50],"changelog":[["add","00000000-ffffffff","[email protected]"]],"by_node":{"[email protected]":["00000000-ffffffff"]},"by_range":{"00000000-ffffffff":["[email protected]"]}}

I can confirm that the listed shards exist as subsequent requests for the same db and document succeed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants