最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

rhel - CouchDB Cluster - Stack Overflow

programmeradmin8浏览0评论

Since my previous question did not get any answers, I am modifying my question. I have CouchDB 3.4.2 installed in a linux machine which will eventually be part of a cluster. Listed below are few of the sections in local.ini. Please note that the node is not yet joined to a cluster.

[couchdb]
uuid = <uid>
database_dir = /var/lib/couchdb
view_index_dir = /var/lib/couchdb

[cluster]
q = 1
n = 1

[chttpd]
bind_address = 0.0.0.0

[ssl]
enable = true
cert_file = /path/to/cert/file
key_file = /path/to/key/file

[admins]
admin = <encrypted value>

As you can see, I have given a path to the database folder which does have _users database. However, I am seeing the following error in the log:

error] 2025-04-02T03:35:27.279357Z [email protected] 
emulator -------- Error in process <0.19781.0> on node 
'couchdb@machine1' with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db, 
[<<"_users">>],[{file,"src/mem3_shards.erl"},{line,445}]}, 
{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"}, 
{line,420}]},{mem3_shards,load_shards_from_disk,2, 
[{file,"src/mem3_shards.erl"},{line,449}]}, 
{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"}, 
{line,100}]},{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,210}]}, 
{chttpd_auth_cache,listen_for_changes,1, 
[{file,"src/chttpd_auth_cache.erl"},{line,156}]}]}

The endpoint /_all_dbs is giving empty list ([]).

So I created a database:

curl -X PUT https://admin:password@<FQDN>:6984/testDB

and it does get listed from /_all_dbs. However, I just cannot find the it's location. I have used locate and find, and it simply doesn't show up.

Does anyone know where the database gets created since it doesn't seem to be using the path I provided? Also, what do I need to fix to get the path working?

Thanks for any help you can provide.

Since my previous question did not get any answers, I am modifying my question. I have CouchDB 3.4.2 installed in a linux machine which will eventually be part of a cluster. Listed below are few of the sections in local.ini. Please note that the node is not yet joined to a cluster.

[couchdb]
uuid = <uid>
database_dir = /var/lib/couchdb
view_index_dir = /var/lib/couchdb

[cluster]
q = 1
n = 1

[chttpd]
bind_address = 0.0.0.0

[ssl]
enable = true
cert_file = /path/to/cert/file
key_file = /path/to/key/file

[admins]
admin = <encrypted value>

As you can see, I have given a path to the database folder which does have _users database. However, I am seeing the following error in the log:

error] 2025-04-02T03:35:27.279357Z [email protected] 
emulator -------- Error in process <0.19781.0> on node 
'couchdb@machine1' with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db, 
[<<"_users">>],[{file,"src/mem3_shards.erl"},{line,445}]}, 
{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"}, 
{line,420}]},{mem3_shards,load_shards_from_disk,2, 
[{file,"src/mem3_shards.erl"},{line,449}]}, 
{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"}, 
{line,100}]},{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,210}]}, 
{chttpd_auth_cache,listen_for_changes,1, 
[{file,"src/chttpd_auth_cache.erl"},{line,156}]}]}

The endpoint /_all_dbs is giving empty list ([]).

So I created a database:

curl -X PUT https://admin:password@<FQDN>:6984/testDB

and it does get listed from /_all_dbs. However, I just cannot find the it's location. I have used locate and find, and it simply doesn't show up.

Does anyone know where the database gets created since it doesn't seem to be using the path I provided? Also, what do I need to fix to get the path working?

Thanks for any help you can provide.

Share Improve this question edited Apr 2 at 4:28 AZeus asked Mar 27 at 5:13 AZeusAZeus 54 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Never mind. The database was under shards folder in the given path. Also, I needed to create _users database and the error went away. Thought the _users database had to be created only for single-node setup so I never tried that since I had configured my installation for a cluster.

发布评论

评论列表(0)

  1. 暂无评论