为什么 couchdb 寻找“_users”数据库?

问题描述 投票:0回答:3

CouchDB 日志中的此错误意味着什么?我看到它正在寻找一些“_users”数据库。但我没有同名的数据库。我能做些什么来阻止这些错误吗?

[notice] 2021-10-12T14:36:18.259160Z [email protected] <0.328.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] 2021-10-12T14:36:18.259219Z [email protected] emulator -------- Error in process <0.2113.0> on node '[email protected]' 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}]}]}
nosql erlang couchdb
3个回答
6
投票

我在 Couchdb 文档中找到了解决方案

https://docs.couchdb.org/en/latest/setup/single-node.html

确保在启动时手动创建三个系统数据库:

curl -X PUT http://127.0.0.1:5984/_users

curl -X PUT http://127.0.0.1:5984/_replicator

curl -X PUT http://127.0.0.1:5984/_global_changes

请注意,如果您不希望使用全局更改源,则不需要最后一个。如果您创建了该数据库,并且它的大小已经增长,并且您不需要该功能,请随意删除该数据库(并且不希望浪费系统资源来定期压缩它。)


1
投票

设置未完成。请参阅文档的设置部分。

CouchDB 2.x 可以部署在单节点或集群中 配置。本节介绍所需的首次设置步骤 对于每个配置。

单节点设置

安装并首次启动后,请访问 Fauxton: http://127.0.0.1:5984/_utils#setup


0
投票

我也收到这些错误,同时我将其设置为一个集群,不需要使用文档使用这些表

© www.soinside.com 2019 - 2024. All rights reserved.