Skip to content

Worker Start-up Issue #717

@martingrayson

Description

@martingrayson

I'm attempting to have the various airflow services run on startup of the airflow host (a ubuntu box).

They all work fine except I'm have an issue where by the worker doesn't seem to want run at startup but works fine when called manually (using the same init.d script).

I'm getting the following error in my worker logs:

Traceback (most recent call last):
  File "/usr/local/bin/airflow", line 17, in <module>
    args.func(args)
  File "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 376, in worker
    sp = subprocess.Popen(['airflow', 'serve_logs'], env=env)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Do you have any pointers as to what environment variables etc could be causing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions