# Can't run the execution environment based on quay.io/ansible/awx-ee built as non-root?

**URL:** <https://forum.ansible.com/t/cant-run-the-execution-environment-based-on-quay-io-ansible-awx-ee-built-as-non-root/40351>\
**Category:** Get Help\
**Tags:** awx, ee\
**Created:** [February 18, 2025, 11:38pm UTC](https://forum.ansible.com/t/cant-run-the-execution-environment-based-on-quay-io-ansible-awx-ee-built-as-non-root/40351 "2025-02-18T23:38:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cnfrancis](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cnfrancis/32/2615_2.png) [@cnfrancis](https://forum.ansible.com/u/cnfrancis)\
**Post date:** [February 18, 2025, 11:38pm UTC](https://forum.ansible.com/t/cant-run-the-execution-environment-based-on-quay-io-ansible-awx-ee-built-as-non-root/40351/1 "2025-02-18T23:38:03Z")

</div>

Hello!  
I’m trying to run the AWX-EE as non-root

```auto
FROM REGISTRY/docker-quay-remote/ansible/awx-ee@sha256:c5f0c1f73b380a5720c8a1a24a4dc883a0526142c60e5b8830b4a624d03d669d

USER root

... SOME WORK

USER 1000:1000

```

However, it gives me this error when I try to run this. Anyone has an idea on how to solve this issue? (running as root won’t solve my issue unfortunately)

```auto
Worker output:
EP_WARN: uid 1000 is missing from /etc/passwd, which is not writable; this error is likely fatal
Traceback (most recent call last):
  File "/usr/local/bin/ansible-runner", line 5, in <module>
    from ansible_runner. __main__ import main
ModuleNotFoundError: No module named 'ansible_runner'

```

---

<div class="post-metadata">

**Author:** ![Andersson007](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/andersson007/32/89_2.png) [@Andersson007](https://forum.ansible.com/u/Andersson007)\
**Post date:** [February 19, 2025, 9:11am UTC](https://forum.ansible.com/t/cant-run-the-execution-environment-based-on-quay-io-ansible-awx-ee-built-as-non-root/40351/2 "2025-02-19T09:11:23Z")

</div>

@cnfrancis hello, if you run it as root, does it solve the issue? I’m not a developer/user of AWX, but i hope this info could narrow the scope.

Anyway, if there’s no response from awx people (which I hope will happen), I think it’d make sense to file an issue in the [ansible/a](https://github.com/ansible/awx).

You could also try:

- [community-ee-minimal](https://github.com/ansible-community/images/pkgs/container/community-ee-minimal)
- [community-ee-base](https://github.com/ansible-community/images/pkgs/container/community-ee-base)
- or build one yourself, it’s easy with the [Getting started with EE guide](https://docs.ansible.com/ansible/devel/getting_started_ee/index.html) and if needed publish it to your own [local registry](https://forum.ansible.com/t/running-a-local-container-registry-for-execution-environments/206/1)

---

<div class="post-metadata">

**Author:** ![cnfrancis](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cnfrancis/32/2615_2.png) [@cnfrancis](https://forum.ansible.com/u/cnfrancis)\
**Post date:** [February 21, 2025, 1:00am UTC](https://forum.ansible.com/t/cant-run-the-execution-environment-based-on-quay-io-ansible-awx-ee-built-as-non-root/40351/3 "2025-02-21T01:00:35Z")

</div>

i was actually able to resolve my issue. by creating the user and group and changing the permissions of the directory in the image once i was done my work as root

```auto
FROM REGISTRY/docker-quay-remote/ansible/awx-ee@sha256:c5f0c1f73b380a5720c8a1a24a4dc883a0526142c60e5b8830b4a624d03d669d

USER root

... SOME WORK
RUN groupadd -g 1000 awx && \
          useradd -u 1000 -g 1000 awx &&\
          chown -R 1000:1000 /runner

USER 1000:1000

```

Note; formatting is not working in the code block

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 23, 2025, 1:01am UTC](https://forum.ansible.com/t/cant-run-the-execution-environment-based-on-quay-io-ansible-awx-ee-built-as-non-root/40351/4 "2025-03-23T01:01:09Z")

</div>

Closed on March 23, 2025, 1:01am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
