Execution environment build fails with the error "runc create failed: unable to start container process: exec: \"/bin/sh\": stat /bin/sh: no such file or directory" : exit status 1 ERRO[0002] did not get container create message from subprocess: EOF"

Solution Verified - Updated -

Issue

  • Execution environment build fails with the following error

    [2/3] STEP 3/8: RUN ansible-builder introspect --sanitize --user-pip=requirements.txt --write-pip=/tmp/src/requirements.txt
    error running container: error from /usr/bin/runc creating container for [/bin/sh -c ansible-builder introspect --sanitize --user-pip=requirements.txt --write-pip=/tmp/src/requirements.txt]: time="2023-10-18T15:37:00-04:00" level=error msg="runc create failed: unable to start container process: exec: \"/bin/sh\": stat /bin/sh: no such file or directory"
    : exit status 1
    ERRO[0002] did not get container create message from subprocess: EOF
    Error: error building at STEP "RUN ansible-builder introspect --sanitize --user-pip=requirements.txt --write-pip=/tmp/src/requirements.txt": error while running runtime: exit status 
    

Environment

  • Red Hat Ansible Automation Platform 2.x

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