gpt4 book ai didi

python - Airflow 网络服务器已启动,但 UI 未显示在浏览器中

转载 作者:行者123 更新时间:2023-12-03 19:45:10 24 4
gpt4 key购买 nike

我正在尝试使用 airflow .

我想对我写的 dag 进行本地测试。我在 Windows 上,所以我决定按照这个简短的教程安装 ubuntu WLS https://coding-stream-of-consciousness.com/2018/11/06/apache-airflow-windows-10-install-ubuntu/ .
一切似乎都很好。

我用 airflow initdb 开始了我的数据库.

然后我运行 airflow webserver -p 8080它似乎在运行。当我去http://0.0.0.0:8080/我看不到任何用户界面。如果我再次尝试运行 airflow webserver我有
Error: Already running on PID 6244 (or pid file '/home/marcofumagalli/airflow/airflow-webserver.pid' is stale)
所以我想网络服务器正在运行。

它与代理有关吗?

最佳答案

Error: Already running on PID 6244 (or pid file '/home/marcofumagalli/airflow/airflow-webserver.pid' is stale)
这意味着端口 8080 很忙。

尝试运行以下命令:-

  • sudo lsof -i tcp:8080 :- 将显示正在运行的进程
  • COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    Python 945 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
    Python 1009 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
    Python 1052 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
    Python 1076 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
    Python 96034 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
  • 通过 kill -9 945 杀死 PID等等..
  • 删除 airflow-webserver.pid文件并再次启动服务器,您将看到它运行良好。
  • 关于python - Airflow 网络服务器已启动,但 UI 未显示在浏览器中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55729303/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com