Why Am I Getting 'ValueError: max() arg is an empty sequence' Error During an Ansible Automation Platform installation?

Solution Verified - Updated -

Issue

The installation of Ansible Automation Platform fails on ansible.automation_platform_installer.automationcontroller : Allocate subuids for awx user step with the following error:

TASK [ansible.automation_platform_installer.automationcontroller : Allocate subuids for awx user] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: max() arg is an empty sequence
fatal: [tower.example.com]: FAILED! => {"changed": false, "module_stderr": "Shared connection to tower.example.comclosed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/root/.ansible/tmp/ansible-tmp-1633533466.553316-1797413-231051126079322/AnsiballZ_subuid.py\", line 100, in <module>\r\n    _ansiballz_main()\r\n  File \"/root/.ansible/tmp/ansible-tmp-1633533466.553316-1797413-231051126079322/AnsiballZ_subuid.py\", line 92, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/root/.ansible/tmp/ansible-tmp-1633533466.553316-1797413-231051126079322/AnsiballZ_subuid.py\", line 41, in invoke_module\r\n    run_name='__main__', alter_sys=True)\r\n  File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\r\n    return _run_module_code(code, init_globals, run_name, mod_spec)\r\n  File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\r\n    mod_name, mod_spec, pkg_name, script_name)\r\n  File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/tmp/ansible_subuid_payload_34_gh1bl/ansible_subuid_payload.zip/ansible_collections/ansible/automation_platform_installer/plugins/modules/subuid.py\", line 81, in <module>\r\n  File \"/tmp/ansible_subuid_payload_34_gh1bl/ansible_subuid_payload.zip/ansible_collections/ansible/automation_platform_installer/plugins/modules/subuid.py\", line 77, in main\r\n  File \"/tmp/ansible_subuid_payload_34_gh1bl/ansible_subuid_payload.zip/ansible_collections/ansible/automation_platform_installer/plugins/modules/subuid.py\", line 71, in run_module\r\n  File \"/tmp/ansible_subuid_payload_34_gh1bl/ansible_subuid_payload.zip/ansible_collections/ansible/automation_platform_installer/plugins/module_utils/subids.py\", line 61, in run\r\nValueError: max() arg is an empty sequence\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Environment

Ansible Automation Platform 2.0

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