ansible/awx

Worker failed to run task awx.main.tasks.system.purge_old_stdout_files

Open

#11,903 创建于 2022年3月14日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Python (3,333 fork)batch import
Hacktoberfestcomponent:apigood first issuehelp wantedtype:bug

仓库指标

Star
 (13,071 star)
PR 合并指标
 (平均合并 24天 6小时) (30 天内合并 30 个 PR)

描述

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

Summary

We see some errors in the container logs of the awx task container:

2022-03-14 17:09:00,771 ERROR    [491eb2c3cf884c52aee0b55ac9197a2e] awx.main.dispatch Worker failed to run task awx.main.tasks.system.purge_old_stdout_files(*[], **{}
Traceback (most recent call last):
  File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/dispatch/worker/task.py", line 90, in perform_work
--
  File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/system.py", line 325, in purge_old_stdout_files
    for f in os.listdir(settings.JOBOUTPUT_ROOT):
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/awx/job_status'

The directory /var/lib/awx/job_status did not exist.

bash-5.1$ ls -lahZ /var/lib/awx/job_status
ls: cannot access '/var/lib/awx/job_status': No such file or directory

bash-5.1$ namei -mo /var/lib/awx
f: /var/lib/awx
 drwxr-xr-x root root /
 drwxr-xr-x root root var
 drwxr-xr-x root root lib
 drwxrwxr-x root root awx

AWX version

20.0.0

Select the relevant components

  • UI
  • API
  • Docs

Installation method

kubernetes

Modifications

yes

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx-int
  namespace: awx-int
spec:
  service_type: NodePort

  replicas: 2

  web_resource_requirements:
    requests:
      cpu: 1000m
      memory: 2Gi
    limits:
      cpu: 1000m
      memory: 2Gi
  task_resource_requirements:
    requests:
      cpu: 2000m
      memory: 8Gi
    limits:
      cpu: 2000m
      memory: 8Gi

  ee_images:
    - name: xxxxxxx
      image: xxxxxxx/container/awx-ee:latest
  ee_pull_credentials_secret: awx-int-ee-pull-credentials

We imported a postgres db dump from our v15.0.1 awx instance bevor we spawned the awx instance.

Expected results

No error is logged. Directory (/var/lib/awx/job_status) is created?

Actual results

2022-03-14 17:09:00,771 ERROR [491eb2c3cf884c52aee0b55ac9197a2e] awx.main.dispatch Worker failed to run task awx.main.tasks.system.purge_old_stdout_files(*[], **{} Traceback (most recent call last): File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/dispatch/worker/task.py", line 90, in perform_work

File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/system.py", line 325, in purge_old_stdout_files for f in os.listdir(settings.JOBOUTPUT_ROOT): FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/awx/job_status'

Additional information

No response

贡献者指南