Describe the Bug
During CHT installation I am getting Fatal: Failed to create initial CouchDB administrative account error
Moving conversation from Github for the benefit of other Community members: CouchDB not starting · Issue #5 · medic/cht-infrastructure · GitHub
How To Reproduce The Issue
- Clone GitHub - medic/cht-infrastructure: Documentation and scripts needed to host the community health toolkit.
- Follow instructions to run CHT
- Check the CouchDB logs for the error message
Expected Behavior
CouchDB admin user should be created and CHT app should run
Logs
root@cf3c91e7cff4:/srv/storage/medic-core# tail -f /srv/storage/medic-core/couchdb/logs/startup.log
[notice] 2020-07-26T10:18:52.333172Z couchdb@127.0.0.1 <0.350.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:395) <= mem3_shards:load_shards_from_disk/1(line:370) <= mem3_shards:load_shards_from_disk/2(line:399) <= mem3_shards:for_docid/3(line:86) <= fabric_doc_open:go/3(line:39) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:195) <= chttpd_auth_cache:listen_for_changes/1(line:142)
[error] 2020-07-26T10:18:57.335931Z couchdb@127.0.0.1 emulator -------- Error in process <0.19943.1> on node ‘couchdb@127.0.0.1’ with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db,“_users”,[{file,“src/mem3_shards.erl”},{line,395}]},{mem3_shards,load_shards_from_disk,1,[{file,“src/mem3_shards.erl”},{line,370}]},{mem3_shards,load_shards_from_disk,2,[{file,“src/mem3_shards.erl”},{line,399}]},{mem3_shards,for_docid,3,[{file,“src/mem3_shards.erl”},{line,86}]},{fabric_doc_open,go,3,[{file,“src/fabric_doc_open.erl”},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,“src/chttpd_auth_cache.erl”},{line,195}]},{chttpd_auth_cache,listen_for_changes,1,[{file,“src/chttpd_auth_cache.erl”},{line,142}]}]}
Environment
-
OS
root@osboxes:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic -
Instance: Local instance
-
Version:
Docker: Docker version 19.03.6, build 369ce74a3c
Docker Compose: version 1.26.2, build unknown
Additional Context
The problem started after the upgrade of medic-os docker to: medic-os:cht-3.9.0-rc.1