Container exits with no log messages if configuration file is provided
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, dockerfile
- Domain
- devops, infrastructure
Research direction
Start with the Docker entrypoint and the stack.yml reproduction, then inspect how files mounted under /opt/couchdb/etc/local.d/ are handled before CouchDB starts. Reproduce with admins.ini and Docker Swarm configuration; done means the container starts with the supplied config and emits normal logs instead of exiting with code 1.
Written by the indexing model from the issue text.
Description
Expected Behavior
The container should start using the config files provided.
Current Behavior
The container exits with code 1 and no log messages.
Possible Solution
Make configs in /etc/local.d/* readable before running couchdb in the docker entrypoint
Steps to Reproduce (for bugs)
stack.yml
services:
couch1:
image: couchdb:3.1
configs:
- source: admins
target: /opt/couchdb/etc/local.d/10-admins.ini
configs:
admins:
file: ./admins.ini
admins.ini
[admins]
admin = -pbkdf2-2006b7b27f5f3624c54e37f5126f3db2bd515a0f,ac2121044edb47438573c80764ba7dc5,10000
Context
This bug prevents me from launching a cluster of couchdb instances in my docker swarm without setting the password as plaintext in the environment variables.
Workaround can be found here: https://github.com/apache/couchdb-docker/issues/73#issuecomment-766179802
Your Environment
Docker 20.10.8
- Dominant language
- Dockerfile
- Stars
- 290
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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-docker
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
apache/couchdb-docker#293 ·
-
Docker Setup Issue Open
Difficulty 4/5 3-5 days Newbie friendliness 32/100
apache/couchdb-docker#292 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
apache/couchdb-docker#288 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
apache/couchdb-docker#285 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 50/100
apache/couchdb-docker#283 ·
All issues in apache/couchdb-docker
Similar issues
-
kind/bug needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 72/100
matrixorigin/matrixone#29223 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
bug ci-failure high priority
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
vllm-project/vllm-omni#7972 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
bug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
amponce/archive-movie-browser#166 ·