异常lockfile.AlreadyLocked: ~/airflow/airflow-scheduler.pid is already locked

Posted questionszhang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了异常lockfile.AlreadyLocked: ~/airflow/airflow-scheduler.pid is already locked相关的知识,希望对你有一定的参考价值。

1 完整异常信息

File "/usr/bin/airflow", line 32, in <module>
    args.func(args)
  File "/usr/lib/python2.7/site-packages/airflow/utils/cli.py", line 74, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/airflow/bin/cli.py", line 1000, in scheduler
    with ctx:
  File "/usr/lib/python2.7/site-packages/daemon/daemon.py", line 397, in __enter__
    self.open()
  File "/usr/lib/python2.7/site-packages/daemon/daemon.py", line 389, in open
    self.pidfile.__enter__()
  File "/usr/lib/python2.7/site-packages/lockfile/__init__.py", line 197, in __enter__
    self.acquire()
  File "/usr/lib/python2.7/site-packages/daemon/pidfile.py", line 60, in acquire
    super(TimeoutPIDLockFile, self).acquire(timeout, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/lockfile/pidlockfile.py", line 88, in acquire
    self.path)
lockfile.AlreadyLocked: /home/cloudera-scm/airflow/airflow-scheduler.pid is already locked

  

问题

    Airflow调度服务无法启动

解决办法

     删除pid文件,重启就ok了。

以上是关于异常lockfile.AlreadyLocked: ~/airflow/airflow-scheduler.pid is already locked的主要内容,如果未能解决你的问题,请参考以下文章

Java异常如何解决

Kotlin 协程协程异常处理 ① ( 根协程异常处理 | 自动传播异常 | 在协程体捕获异常 | 向用户暴露异常 | 在 await 处捕获异常 | 非根协程异常处理 | 异常传播特性 )

Kotlin 协程协程异常处理 ① ( 根协程异常处理 | 自动传播异常 | 在协程体捕获异常 | 向用户暴露异常 | 在 await 处捕获异常 | 非根协程异常处理 | 异常传播特性 )

异常--异常体系异常的处理异常的捕获finally语句块和自定义异常

Java❤️认识异常异常的基本使用认识异常(异常详解)❤️

异常(异常)