Skip to content

Missing /var/lib/awx/venv directory causes build failure in Dockerfile.dev #16089

@maryam4s26

Description

@maryam4s26

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

When building AWX using make docker-compose-build with the provided Dockerfile.dev, the build fails because the directory /var/lib/awx/venv does not exist before attempting to create the Python virtual environment.

Error log:

mkdir: cannot create directory ‘/var/lib/awx/venv’: No such file or directory
pip install failed
make: *** [requirements_awx] Error 1
Image

AWX version

devel

Select the relevant components

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

Installation method

docker development environment

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

  1. Clone the AWX repository
  2. Run make docker-compose-build
  3. Build fails with the error above

Expected results

The Docker build should complete successfully without errors, and the Python virtual environment should be created at /var/lib/awx/venv.

Actual results

The Docker build fails with:
mkdir: cannot create directory ‘/var/lib/awx/venv’: No such file or directory
pip install failed
make: *** [requirements_awx] Error 1

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