Why am I receiving the error "RuntimeError: Failed to start work unit: unknown work type local" after I upgraded the RHEL in Ansible Automation Platform 2?

Solution Verified - Updated -

Issue

  • When I upgrade the RHEL, all jobs fail with the error message “RuntimeError: Failed to start work unit: unknown work type local” in Ansible Automation Platform.

    AAP 2.1

    Traceback (most recent call last):
      File "/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/tasks.py", line 1584, in run
        res = receptor_job.run()
      File "/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/tasks.py", line 3115, in run
        res = self._run_internal(receptor_ctl)
      File "/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/tasks.py", line 3145, in _run_internal
        result = receptor_ctl.submit_work(worktype=self.work_type, payload=sockout.makefile('rb'),     params=self.receptor_params, signwork=self.sign_work, **_kw)
      File "/var/lib/awx/venv/awx/lib64/python3.8/site-packages/receptorctl/socket_interface.py", line 228, in submit_work
        raise RuntimeError(errmsg)
    RuntimeError: Failed to start work unit: unknown work type local
    

    AAP 2.2

    Traceback (most recent call last):
      File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py", line 539, in run
        res = receptor_job.run()
      File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/receptor.py", line 271, in run
        res = self._run_internal(receptor_ctl)
      File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/receptor.py", line 302, in _run_internal
        result = receptor_ctl.submit_work(payload=sockout.makefile('rb'), **work_submit_kw)
      File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/receptorctl/socket_interface.py", line 228, in submit_work
        raise RuntimeError(errmsg)
    RuntimeError: Failed to start work unit: unknown work type local
    

Environment

  • Ansible Automation Platform >= 2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content