Error during user and/or database creation
Maintainers usually reply within 1 day
@janl is already working on this.
Since Apr 10, 2025.
Assessment
This issue has not been assessed yet.
Description
Hi, I need to open an issue to understand what is going wrong during a user / database creation on my couchdb cluster
Description
I have an issue on a production cluster (version 3.3.3) of 3 nodes (with per_user activated) deployed on a Kubernetes Cluster
We have ~ 19000 users databases :
Sometimes we have this error which appears during the user creation, I got this error :
Steps to Reproduce
We are using this repository :
- name: couchdb url: https://apache.github.io/couchdb-helm/
Here's my couchdb YAML configuration : https://gist.github.com/jsenzier-oxeva/d286c892e41a76be8846f4945a5dd272
The encountered error is in previous Description section
And the php code which is executed : https://gist.github.com/jsenzier-oxeva/dc9a05cca44ac2610b743cb97b9bb69e
The error appears during this code execution :
User is created, then we execute a loop 5 times with a sleep 2 to wait database creation, but it never happens as we encountered the "security" error
As discussed on Slack (thanks for your help) : it appears the security object is not identical across all shards of your database
But I'm asking why and how can I resolve those errors ?
Expected Behaviour
Not having 500 error, so have a user and database creation working without any error in couchdb logs
- CouchDB version used: 3.3.3
- Operating system and version: Kubernetes 1.28.15 with CouchDB deployment (chart version 4.6.0) from official repository : https://apache.github.io/couchdb-helm/
- Dominant language
- Erlang
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 1d 23m
- Merged PRs (30d)
- 30
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/couchdb
-
Fix: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' insteadPossibly taken @devx-arjun claimed this 4 days ago. Openbeginner-friendly build chore patches-welcome
Difficulty 4/5 3-5 days Newbie friendliness 45/100
apache/couchdb#6144 · 4 comments ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
apache/couchdb#6132 · 3 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 45/100
apache/couchdb#6120 · 4 comments ·
Maintainers usually reply within 1 day
-
enhancement needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day