ubuntu - Airflow Upstart 直接停止/等待

标签 ubuntu ubuntu-14.04 airflow upstart

我正在尝试让 Airflow 调度程序和网络服务器在 ubuntu EC2 实例的后台运行。每当我开始 Upstart 工作时,airflow-webserver 工作都会直接停止/等待。这是我保存在/etc/init 中的 .conf 文件。 (我用anaconda安装 Airflow )

description "Airflow webserver daemon"

start on started networking
stop on (deconfiguring-networking or runlevel [016])

respawn
respawn limit 5 30

setuid unbuntu
setgid unbuntu

env AIRFLOW_CONFIG=/home/ubuntu/airflow/airflow.cfg
env AIRFLOW_HOME=/home/ubuntu/airflow/
export AIRFLOW_CONFIG
export AIRFLOW_HOME

exec /home/ubuntu/anaconda3/bin/airflow webserver

当我检查日志时,这就是我所看到的:
starting airflow-webserver...
/home/airflow/airflow/
/home/airflow/airflow/airflow.cfg
[2018-07-23 19:44:29,341] {__init__.py:45} INFO - Using executor SequentialExecutor
  ____________       _____________
 ____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
 _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/

[2018-07-23 19:44:29,883] {models.py:189} INFO - Filling up the DagBag from /home/ubuntu/airflow/dags
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
================================================================= 

但在那之后就什么都没有了。

最佳答案

您将 uid 和 gid 设置为“ubuntu”而不是“ubuntu”。
如日志消息所示,它似乎正在尝试从基于/home/ubuntu/的用户“ubuntu”运行。

关于ubuntu - Airflow Upstart 直接停止/等待,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51487018/

相关文章:

无法在启用的 CPU 上使用 SSSE3

c++ - Ubuntu下Eigen3如何使用CholmodSupport

linux - 使用 xRDP 访问 Azure 虚拟机 (Ubuntu 14.04LTS)

airflow - 如何更改 Airflow/ Composer 的日志级别

ubuntu - 当我使用安装的 docker 启动 ubuntu 时,我有几个 HWaddr。从哪里?

ruby-on-rails - Nginx + 乘客 + Rails 服务器错误

python - 在 Jenkins 主目录之外导入模块

python - 手动触发 dag 后, Airflow 调度程序无法正常工作

airflow - 从 Airflow 中获取 DAG

node.js - ubuntu 12.10 上的平均堆栈安装失败