Event-Driven Project Sync Fails with the error "returned non-zero exit status 128"

Solution Verified - Updated -

Environment

  • Red Hat® Ansible Automation Platform 2.4
  • Red Hat® Event-Driven Ansible controller 1.0

Issue

  • In Ansible Automation EDA controller, while doing the project sync it fails with the following error:

    Command '['/usr/bin/git', 'rev-parse', 'HEAD']' returned non-zero exit status 128.
    
  • The git clone works fine from the EDA server cli.

Resolution

  • It's necessary to create rulebooks directory at the project level on SCM URL. i.e. make sure that Rulebook YAML file should be placed under rulebooks directory on SCM.

  • Please go thro' the document to learn more about setting up a new project inside EDA controller.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments