Skip to content

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

Closed

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

Activity

  1. added
    kind:bug
    needs-triage
    on Jul 22, 2025
  2. potiuk commented on Jul 22, 2025

    @potiuk
    Member

    We won't do much with it. This is because the recent doc refresh (for other reasons) accidentally picked this one #53372 -> which is coming in 3.0.4. Maybe we should remove it manually from generated docs, but that's a little nuance and It looks like 3.0.4 is coming shortly so might not be worth it.

  3. added and removed
    needs-triage
    on Jul 22, 2025
  4. jnstockley commented on Jul 22, 2025

    @jnstockley
    Author

    @potiuk Thanks, just making sure I understand, that CLI argument is not something that is planned on being re-added/fixed? If that is the case, how can we change the log format for uvicorn?

  5. potiuk commented on Jul 22, 2025

    @potiuk
    Member

    Quite the contrary. It is coming in 3.0.4 . See the linked PR

  6. potiuk commented on Jul 23, 2025

    @potiuk
    Member

    And with #53668 we might have a nice mechanism to fix it in released docs. I will try it after we test it when fixing hive documentation issue we had.

  7. 3 remaining items

  8. potiuk commented on Jul 24, 2025

    @potiuk
    Member

    OK. i used the new feature of selective patching of released documentation without having to pick all other commits from branch and regenerated 3.0.3 so that it does not contain --log-config any more. It should appear in 3.0.4 - that change is scheduled to appear (and also be effective) in 3.0.4.

    You might need to shift-refresh the config page to see the changes if it is still in your cache.

  9. jnstockley commented on Aug 5, 2025

    @jnstockley
    Author

    @potiuk I pulled down the 3.04rc1 release and I'm still not seeing the --log-config argument present. When I run airflow api-server --help it's not a listed option, is this not being added in 3.0.4?

  10. jnstockley commented on Aug 6, 2025

    @jnstockley
    Author

    I did try with 3.04rc2, and ran into the same issue as well

  11. potiuk commented on Aug 6, 2025

    @potiuk
    Member

    I did try with 3.04rc2, and ran into the same issue as well

    Yep. It looks like it has been decided to not be cherry-picked to 3.0 -> it is scheduled for 3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:APIarea:coregood first issuekind:bugkind:documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions