Skip to content

Airflow api-server missing --log-config argument #53646

@jnstockley

Description

@jnstockley

Apache Airflow version

3.0.3

If "Other Airflow 2 version" selected, which one?

No response

What happened?

According to the docs here, https://airflow.apache.org/docs/apache-airflow/stable/cli-and-env-variables-ref.html#api-server, the api-server sub-command should have a name argument of --log-config but when the command field in the docker compose file is set to api-server --log-config=<file_path> the following error is shown airflow command error: unrecognized arguments: --log-config=<file_path>, see help above. I have also tried doing api-server --log-config <file_path> with a similar error message airflow command error: unrecognized arguments: --log-config <file_path>, see help above.

What you think should happen instead?

Preferably the api-server component should be updated to re-include this named argument, with the help message updated, or the docs should be updated to remove this name argument.

How to reproduce

In the provided docker-compose.yaml file, update the airflow-apiserver serivce command to be api-server --log-config <file_path>

Operating System

Debian

Versions of Apache Airflow Providers

No response

Deployment

Other Docker-based deployment

Deployment details

Custom docker image based on official docker image

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions