Skip to content

The standalone model bug, about port 8080 #20496

Closed

Description

@qhsoft

Apache Airflow version

2.2.3 (latest released)

What happened

When I modify airflow.cfg about default webserver listening port to 8000, then start with "airflow standalone"

A error will be printed:
webserver | [2021-12-25 22:20:08 +0800] [16173] [ERROR] Connection in use: ('0.0.0.0', 8080)
webserver | [2021-12-25 22:20:08 +0800] [16173] [ERROR] Retrying in 1 second.
webserver | [2021-12-25 22:20:10 +0800] [16173] [ERROR] Connection in use: ('0.0.0.0', 8080)
webserver | [2021-12-25 22:20:10 +0800] [16173] [ERROR] Retrying in 1 second.
webserver | [2021-12-25 22:20:11 +0800] [16173] [ERROR] Connection in use: ('0.0.0.0', 8080)
webserver | [2021-12-25 22:20:11 +0800] [16173] [ERROR] Retrying in 1 second.
webserver | [2021-12-25 22:20:12 +0800] [16173] [ERROR] Connection in use: ('0.0.0.0', 8080)
webserver | [2021-12-25 22:20:12 +0800] [16173] [ERROR] Retrying in 1 second.
webserver | [2021-12-25 22:20:13 +0800] [16173] [ERROR] Connection in use: ('0.0.0.0', 8080)
webserver | [2021-12-25 22:20:13 +0800] [16173] [ERROR] Retrying in 1 second.
webserver | [2021-12-25 22:20:14 +0800] [16173] [ERROR] Can't connect to ('0.0.0.0', 8080)

Source code position,
https://github.com/apache/airflow/blob/main/airflow/cli/commands/standalone_command.py line 209, function is_ready
return self.port_open(8080) and self.job_running(SchedulerJob) and self.job_running(TriggererJob)

force the port to 8080, it's wrong.

What you expected to happen

No response

How to reproduce

No response

Operating System

All System

Versions of Apache Airflow Providers

No response

Deployment

Other

Deployment details

No response

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
    on Dec 25, 2021
  2. boring-cyborg commented on Dec 25, 2021

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template!

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:coregood first issuekind:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions