Skip to content

Web server fails to start when GUNICORN_CMD_ARGS environment variable is specified #26646

Answered by potiuk
mjarosie asked this question in General
Discussion options

You must be logged in to vote

This is coming from wrong understanding on how docker-compose and specifically yaml anchors works.

By addding "environment" section you overrode entire "environment" section from the common yaml anchor <<: *airflow-common section and what you get is a default (empty) sqlite database.

You need to find a way to add environment variable rather than override those common ones. You likely need to copy the common part to your webserver and add your environment there. Or you can add the GUNICORN envv in the common parat (it will not hurt if it is also specified for other components)

Note that the docler compose we have is "quick-start" only - it's not suitable to extend and append stuff easily a…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mjarosie
Comment options

@potiuk
Comment options

potiuk Sep 25, 2022
Collaborator

Answer selected by mjarosie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug invalid area:core
2 participants
Converted from issue

This discussion was converted from issue #26640 on September 23, 2022 22:40.