No way to pass environment variables with query server config
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Read the linked CouchDB query-server configuration documentation, then inspect how the snap service starts and how /var/snap/couchdb/9/etc/ is used. Done means a snap service can load environment variables from the proposed configuration location and use them to configure query servers; verify this with a local snap startup.
Written by the indexing model from the issue text.
Description
As of CouchDB 2.3 the only way to configure query servers and their parameters is to use environment variables (see https://docs.couchdb.org/en/main/config/query-servers.html).
A common usage is to reconfigure maximum memory allocation for the javascript server by using: COUCHDB_QUERY_SERVER_JAVASCRIPT="/usr/bin/couchjs -S 536870912 /usr/share/server/main.js"
(as explained at: https://docs.couchdb.org/en/main/config/query-servers.html)
Expected Behavior
There should be a way to pass environment variables while starting a snap service.
Current Behavior
Currently there is no way to pass an environment variable to a snap application. Hence there is no way to reconfigure or add query servers.
Possible Solution
An additional file in /var/snap/couchdb/9/etc/ that could hold the environment variables. It could be sourced upon startup.
Your Environment
- Version used: 3.1.1, rev 9
- Dominant language
- Shell
- Stars
- 33
- Forks
- 31
- Avg merge
- 1h 43m
- Merged PRs (30d)
- 1
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-pkg
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
apache/couchdb-pkg#211 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
apache/couchdb-pkg#169 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
apache/couchdb-pkg#142 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
apache/couchdb-pkg#140 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
apache/couchdb-pkg#123 · 6 comments · 1 reaction ·
All issues in apache/couchdb-pkg
Similar issues
-
area: harness bug status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Human-Agent-Society/reef#625 ·
-
module: core
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
vercel-labs/just-bash#464 ·
-
area:sandbox documentation enhancement platform:linux
Difficulty 1/5 Under an hour Newbie friendliness 85/100
anthropics/claude-code#96664 ·
-
cost:cheap severity:medium
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
fairagro/m4.2_sql_to_arc#227 ·