Community Health Toolkit

"Could not get design docs for [...]" error in CouchDB logs

Describe the Bug
I started having the “Could not get design docs for […]” error when starting the couchdb docker container. See the logs below for more context.

Logs

[error] 2021-07-15T08:08:32.169289Z nonode@nohost emulator -------- Error in process <0.263.0> with exit value:
{badarg,[{ets,member,[mem3_openers,<<"medic">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,"src/mem3_shards.erl"},{line,476}]},{mem3_shards,load_shards_from_db,2,[{file,"src/mem3_shards.erl"},{line,381}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,370}]},{mem3_shards,for_db,2,[{file,"src/mem3_shards.erl"},{line,59}]},{fabric_view_all_docs,go,5,[{file,"src/fabric_view_all_docs.erl"},{line,24}]},{couch_db,'-get_design_docs/1-fun-0-',1,[{file,"src/couch_db.erl"},{line,627}]}]}
[error] 2021-07-15T08:08:32.169299Z nonode@nohost <0.256.0> -------- Could not get design docs for <<"shards/c0000000-dfffffff/medic.1625560450">> error:{badarg,[{ets,member,[mem3_openers,<<"medic">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,"src/mem3_shards.erl"},{line,476}]},{mem3_shards,load_shards_from_db,2,[{file,"src/mem3_shards.erl"},{line,381}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,370}]},{mem3_shards,for_db,2,[{file,"src/mem3_shards.erl"},{line,59}]},{fabric_view_all_docs,go,5,[{file,"src/fabric_view_all_docs.erl"},{line,24}]},{couch_db,'-get_design_docs/1-fun-0-',1,[{file,"src/couch_db.erl"},{line,627}]}]}

Environment

  • Instance: local development environment
  • Client platform: Manjaro Linux
  • Version: latest commit at the time: e778577ca54a7144213bf19eea603f7e890f78bb

Additional Context
Following Diana’s advice, recreating the container seems to have fixed it now. I will update this post if I run into this error again.

1 Like