0

我正在尝试在 ubuntu 上安装 zuul-ci,但是在启动 zuul-web 服务时出现错误。我相信这个问题与 pid 文件的创建有关。我在 Ubuntu 上安装以进行测试,并希望将其与 gitlab 驱动程序一起使用

错误:

/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/lockfile/pidlockfile.py", line 77, in acquire
    write_pid_to_pidfile(self.path)
  File "/usr/local/lib/python3.8/dist-packages/lockfile/pidlockfile.py", line 161, in write_pid_to_pidfile
    pidfile_fd = os.open(pidfile_path, open_flags, open_mode)
FileNotFoundError: [Errno 2] No such file or directory: '/var/run/zuul/web.pid'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/zuul-web", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/zuul/cmd/web.py", line 99, in main
    WebServer().main()
  File "/usr/local/lib/python3.8/dist-packages/zuul/cmd/__init__.py", line 216, in main
    with pid:
  File "/usr/local/lib/python3.8/dist-packages/lockfile/__init__.py", line 197, in __enter__
    self.acquire()
  File "/usr/local/lib/python3.8/dist-packages/daemon/pidfile.py", line 57, in acquire
    super().acquire(timeout, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/lockfile/pidlockfile.py", line 91, in acquire
    raise LockFailed("failed to create %s" % self.path)
lockfile.LockFailed: failed to create /var/run/zuul/web.pid```
4

0 回答 0