You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to start the supervisor service in a Docker container, an error related to environment variable expansion in supervisor.conf is encountered. The environment variables for database connection details (DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD) do not seem to be recognized.
Steps to Reproduce
Build a Docker image using the provided Dockerfile.
Run the Docker container.
Attempt to start the supervisor service.
The error is observed.
Expected Behavior
The supervisor service should start without any issues, correctly utilizing the environment variables set in the Dockerfile.
Actual Behavior
Starting supervisor results in an error due to the inability to expand the format strings for the database connection environment variables.
Error Message
Starting supervisor: Error: Format string 'DB_HOST=%(ENV_DB_HOST)s,DB_DATABASE=%(ENV_DB_DATABASE)s,DB_USERNAME=%(ENV_DB_USERNAME)s,DB_PASSWORD=%(ENV_DB)s which cannot be expanded. Available names: ENV_LANG, ENV_LANGUAGE, ENV_LC_ADDRESS, ENV_LC_ALL, ENV_LC_COLLATE, ENV_LC_CTYPE, ENV_LC_IDENTIFICATION, ENV_LC_MEASUERIC, ENV_LC_PAPER, ENV_LC_TELEPHONE, ENV_LC_TIME, ENV_PATH, ENV_PWD, ENV_TERM, group_name, here, host_node_name, numprocs, process_num, program_name in sectil-worker.conf')
Is there an error in the syntax used within the supervisor.conf file?
Could there be an issue with how Docker passes environment variables to supervisor.conf?
The text was updated successfully, but these errors were encountered:
Description
When attempting to start the supervisor service in a Docker container, an error related to environment variable expansion in
supervisor.conf
is encountered. The environment variables for database connection details (DB_HOST
,DB_DATABASE
,DB_USERNAME
,DB_PASSWORD
) do not seem to be recognized.Steps to Reproduce
Dockerfile
.Expected Behavior
The supervisor service should start without any issues, correctly utilizing the environment variables set in the Dockerfile.
Actual Behavior
Starting supervisor results in an error due to the inability to expand the format strings for the database connection environment variables.
Error Message
Starting supervisor: Error: Format string 'DB_HOST=%(ENV_DB_HOST)s,DB_DATABASE=%(ENV_DB_DATABASE)s,DB_USERNAME=%(ENV_DB_USERNAME)s,DB_PASSWORD=%(ENV_DB)s which cannot be expanded. Available names: ENV_LANG, ENV_LANGUAGE, ENV_LC_ADDRESS, ENV_LC_ALL, ENV_LC_COLLATE, ENV_LC_CTYPE, ENV_LC_IDENTIFICATION, ENV_LC_MEASUERIC, ENV_LC_PAPER, ENV_LC_TELEPHONE, ENV_LC_TIME, ENV_PATH, ENV_PWD, ENV_TERM, group_name, here, host_node_name, numprocs, process_num, program_name in sectil-worker.conf')
Is there an error in the syntax used within the supervisor.conf file?
Could there be an issue with how Docker passes environment variables to supervisor.conf?
The text was updated successfully, but these errors were encountered: