Skip to content

Failed to export assets Not Found (404) received #16076

@ansiblejunky

Description

@ansiblejunky

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.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

I'm running the following playbook to export objects from AAP 2.5.x single-node container installation. However, the playbook fails with an error. I'm using latest version of the Ansible Collections.

PLAY [Export objects from Ansible Platform Environment (using API)] ************************************************************************************************************************

TASK [Export assets] ***********************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {
    "changed": false,
    "msg": "Failed to export assets Not Found (404) received - {}"
}

PLAY RECAP *********************************************************************************************************************************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

AWX version

awxkit-24.6.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

N/A

Modifications

no

Ansible version

2.18.5

Operating system

MacOS

Web browser

No response

Steps to reproduce

Run the following playbook to perform the export:

---
- name: Export objects from Ansible Platform Environment (using API)
  hosts: localhost
  connection: local
  gather_facts: false

  tasks:

    - name: Export assets
      awx.awx.export:
        controller_host: "{{ aap_hostname }}"
        controller_username: "{{ aap_username }}"
        controller_password: "{{ aap_password }}"
        validate_certs: "{{ aap_validate_certs | default(false) }}"
        all: true
      register: results

    - name: Display exported information
      ansible.builtin.debug:
        var: results

Expected results

Objects exported from system

Actual results

Nothing exported, and error occurs

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions