apache / couchdb-helm

Apache CouchDB Helm Chart
https://couchdb.apache.org/
Apache License 2.0
49 stars 64 forks source link

Running couchdb using the helm chart is not successful with the suggested values in the documention #172

Closed alexchiri closed 4 months ago

alexchiri commented 4 months ago

Describe the bug I am trying to deploy couchdb using the Helm chart 3.5.6 as described in its documentation. I am only passing the uuid in the values.yaml files. I tried using the allowPartyMode=true as documented in the helm chart docs, but removed it after the pods logs said this is not supported anymore. I am deploying using flux cd and its helm controller.

The pods end up in CrashLoopBackOff. The main reason I can pick-up from the logs is this:

couchdb-couchdb-1 couchdb [error] 2024-07-15T19:14:42.096450Z couchdb@couchdb-couchdb-1.couchdb-couchdb.couchdb.svc.local.talos.alexchiri.xyz emulator -------- Error in process <0.665.0> on node 'couchdb@couchdb-couchdb-1.couchdb-couchdb.couchdb.svc.local.talos.alexchiri.xyz' with exit value:
couchdb-couchdb-1 couchdb {{rexi_DOWN,{'couchdb@couchdb-couchdb-1.couchdb-couchdb.couchdb.svc.cluster.local',noconnect}},[{mem3_rpc,rexi_call,3,[{file,"src/mem3_rpc.erl"},{line,384}]},{mem3_seeds,'-start_replication/1-fun-0-',1,[{file,"src/mem3_seeds.erl"},{line,107}]}]}
couchdb-couchdb-1 couchdb 
couchdb-couchdb-1 couchdb [notice] 2024-07-15T19:14:42.126949Z couchdb@couchdb-couchdb-1.couchdb-couchdb.couchdb.svc.local.talos.alexchiri.xyz <0.398.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
couchdb-couchdb-1 couchdb [error] 2024-07-15T19:14:42.127511Z couchdb@couchdb-couchdb-1.couchdb-couchdb.couchdb.svc.local.talos.alexchiri.xyz emulator -------- Error in process <0.667.0> on node 'couchdb@couchdb-couchdb-1.couchdb-couchdb.couchdb.svc.local.talos.alexchiri.xyz' with exit value:
couchdb-couchdb-1 couchdb {database_does_not_exist,[{mem3_shards,load_shards_from_db,[<<"_users">>],[{file,"src/mem3_shards.erl"},{line,430}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,405}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,434}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,100}]},{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,214}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,160}]}]}

Are there any extra steps required to get it to work?

Version of Helm and Kubernetes: Kubernetes 1.30.1 Helm 3

willholley commented 4 months ago

My guess is that your custom cluster domain (I inferior from the logs) is causing problems. Did you set dns.clusterDomainSuffix to your custom domain in the chart values?

alexchiri commented 4 months ago

@willholley That is correct, well spotted! I missed the wrong cluster domain in the log. Thank you! :bowing_man: