Debut Infotech
Debut Infotech

Reputation: 472

Getting error running couchdb 2.1 in docker

By Default couchDB should create 3 system databases but its not creating the system databases and giving error in docker

{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,407}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,91}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]}

I am using it on linux 16.04LTS 64 bit .docker couchdb image x86_64-0.4.6 and couchdb version 2.1.1

Thanks in advance

Upvotes: 2

Views: 385

Answers (1)

Jonathan Hall
Jonathan Hall

Reputation: 79744

As documented, you must create the _users database, and the other system databases:

curl -X PUT http://{url}/_users
curl -X PUT http://{url}/_replicator
curl -X PUT http://{url}/_global_changes

Upvotes: 2

Related Questions