Search code examples
localhostairflowwindows-subsystem-for-linuxairflow-webserver

Airflow webserver `http://0.0.0.0:8080/` not working


$ airflow webserver
  ____________       _____________
 ____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
 _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
Access Logformat:
=================================================================
/home/shubham/.local/lib/python3.10/site-packages/flask_limiter/extension.py:293 UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.
[2023-06-19 23:43:25 +0530] [464] [INFO] Starting gunicorn 20.1.0
[2023-06-19 23:43:25 +0530] [464] [INFO] Listening at: **http://0.0.0.0:8080** (464)
[2023-06-19 23:43:25 +0530] [464] [INFO] Using worker: sync
[2023-06-19 23:43:25 +0530] [466] [INFO] Booting worker with pid: 466
[2023-06-19 23:43:25 +0530] [467] [INFO] Booting worker with pid: 467
[2023-06-19 23:43:25 +0530] [468] [INFO] Booting worker with pid: 468
[2023-06-19 23:43:25 +0530] [469] [INFO] Booting worker with pid: 469

In this running http://0.0.0.0:8080 is not working enter image description here

I tried running it in windows-subsystem-linux using bash and in ubuntu by downloading $ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb $ sudo dpkg -i google-chrome-stable_current_amd64.deb in ubuntu and tried to open the $ xdg-open http://0.0.0.0:8080 through ubuntu terminal in windows subsystem and tried to run docker-container also after failure but still it didn't work.


Solution

  • Use http://localhost:8080/ instead of http://0.0.0.0:8080/.

    And I can't believe how simple the answer can be, and I found this answer nowhere; just a mere coincidence that I was watching a YouTube tutorial on running airflow using docker, and the guy used http://localhost:8080/ instead of http://0.0.0.0:8080/ without any reason. Then I realized what the problem was. I want the @apache team to look into this because this simple thing took a whole day to figure out. I know it's very rear, but it's real. enter image description here