Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

No way to pass environment variables with query server config

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
shell
Domain
devops

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/couchdb-pkg

All issues in apache/couchdb-pkg

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.