-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when executing Makefile with docker-compose-build - Unable to find openssl-3.0.7 #15600
Comments
Hi I'm running into the same error too. I tried taking out the Update: Seems to be fixed. But running into other dependency errors with pip now. Weird that there are no Setting up simple AWX on docker seems so complicated now. |
did you find a fix for the pip dependency fails? I'm having the same issue.. 97.17 |
Try changing your Django version in pip file to I never really found a fix and used alternative guide to follow installing and successfully installed it on CentOs Stream9 with k3s using awx-operator. I'd recommend putting CPU architecture to x86 for CentOs if you're installing on a hypervisor like proxmox or ESX. |
I removed the hard coded versions from the requirements.txt files. This lets pip manage the dependencies himself and solves the issue. But i do recommend skipping the docker container installation and going directly to Kubernetes using minikube. It's not that hard of a installation to go through and way more reliable. |
Yeah, need to look into that... But honestly i have a hard time understanding what/how AWX is put together... Seems unnecessary complicated. Updating is really a hassle... We do have at Tanzu Kube setup, so should be able to put it there, just have to find some good guide for it. |
This is likely fixed by #15498 which removes the explicit openssl-3.0.7 package installation. |
The pip/Django failure mentioned in #15600 (comment) is likely fixed by c85fa70, at least if I apply that fix by hand the build works for me. |
Well, i actually got the build to work, but i am losing all data, it's a blank new awx database, can still find the old volume, but havent had any luck importing it to the new PG db without issues. |
Please confirm the following
security@ansible.com
instead.)Bug Summary
sudo make docker-compose-build
ansible-playbook -e ansible_python_interpreter=python3 tools/ansible/dockerfile.yml
-e dockerfile_name=Dockerfile.dev
-e build_dev=True
-e receptor_image=quay.io/ansible/receptor:devel
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [Render AWX Dockerfile and sources] *************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [dockerfile : Create _build directory] **********************************************************************************************************************************************************************************************
ok: [localhost]
TASK [dockerfile : Render supervisor configs] ********************************************************************************************************************************************************************************************
ok: [localhost] => (item=supervisor_web.conf)
ok: [localhost] => (item=supervisor_task.conf)
ok: [localhost] => (item=supervisor_rsyslog.conf)
TASK [dockerfile : Render Dockerfile] ****************************************************************************************************************************************************************************************************
ok: [localhost]
PLAY RECAP *******************************************************************************************************************************************************************************************************************************
localhost : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
DOCKER_BUILDKIT=1 docker build
-f Dockerfile.dev
-t ghcr.io/ansible/awx_devel:HEAD
--build-arg BUILDKIT_INLINE_CACHE=1
--cache-from=ghcr.io/ansible/awx_devel:HEAD .
[+] Building 25.1s (13/50) docker:default
=> [internal] load build definition from Dockerfile.dev 0.0s
=> => transferring dockerfile: 7.93kB 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 8) 0.0s
=> [internal] load metadata for quay.io/centos/centos:stream9 0.5s
=> [internal] load metadata for quay.io/ansible/receptor:devel 0.9s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 115B 0.0s
=> ERROR importing cache manifest from ghcr.io/ansible/awx_devel:HEAD 0.3s
=> [internal] load build context 0.0s
=> => transferring context: 2.42kB 0.0s
=> CACHED FROM quay.io/ansible/receptor:devel@sha256:8dd293df3843d2e7306f718795ab60198614911ab209a3926f01df2b9c2c28f7 0.0s
=> [builder 1/10] FROM quay.io/centos/centos:stream9@sha256:83157fe5138fa2964b2698e90ecaa43cf020a4e329653049f4bfb7b04fdde9a0 0.0s
=> [stage-1 3/34] ADD https://copr.fedorainfracloud.org/coprs/ansible/Rsyslog/repo/epel-9/ansible-Rsyslog-epel-9.repo /etc/yum.repos.d/ansible-Rsyslog-epel-9.repo 0.7s
=> CACHED [builder 2/10] RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial 0.0s
=> CANCELED [builder 3/10] RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' && dnf config-manager --set-enabled crb && dnf -y install iputils gcc gcc-c++ git-core gettext glib 23.7s
=> CACHED [stage-1 3/34] ADD https://copr.fedorainfracloud.org/coprs/ansible/Rsyslog/repo/epel-9/ansible-Rsyslog-epel-9.repo /etc/yum.repos.d/ansible-Rsyslog-epel-9.repo 0.0s
=> ERROR [stage-1 4/34] RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' && dnf config-manager --set-enabled crb && dnf -y install acl git-core git-lfs glibc-langpack-en krb5-workstat 22.8s
Dockerfile.dev:89
88 | # Install runtime requirements
89 | >>> RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' &&
90 | >>> dnf config-manager --set-enabled crb &&
91 | >>> dnf -y install acl
92 | >>> git-core
93 | >>> git-lfs
94 | >>> glibc-langpack-en
95 | >>> krb5-workstation
96 | >>> nginx
97 | >>> "openldap >= 2.6.2-3"
98 | >>> # pin to older openssl, see jira AAP-23449
99 | >>> openssl-3.0.7
100 | >>> postgresql
101 | >>> python3.11
102 | >>> "python3.11-devel"
103 | >>> "python3.11-pip*"
104 | >>> "python3.11-setuptools"
105 | >>> "python3.11-packaging"
106 | >>> "python3.11-psycopg2"
107 | >>> rsync
108 | >>> rsyslog-8.2102.0-106.el9
109 | >>> subversion
110 | >>> sudo
111 | >>> vim-minimal
112 | >>> which
113 | >>> unzip
114 | >>> xmlsec1-openssl &&
115 | >>> dnf -y clean all
116 |
ERROR: failed to solve: process "/bin/sh -c dnf -y update && dnf install -y 'dnf-command(config-manager)' && dnf config-manager --set-enabled crb && dnf -y install acl git-core git-lfs glibc-langpack-en krb5-workstation nginx "openldap >= 2.6.2-3" openssl-3.0.7 postgresql python3.11 "python3.11-devel" "python3.11-pip*" "python3.11-setuptools" "python3.11-packaging" "python3.11-psycopg2" rsync rsyslog-8.2102.0-106.el9 subversion sudo vim-minimal which unzip xmlsec1-openssl && dnf -y clean all" did not complete successfully: exit code: 1
make: *** [Makefile:605: docker-compose-build] Error 1
AWX version
26.6.1/26.6.0
Select the relevant components
Installation method
docker development environment
Modifications
yes
Ansible version
No response
Operating system
AlmaLinux 24.9
Web browser
Chrome
Steps to reproduce
Expected results
Make procedures finished successfully
Actual results
dnf procedures results in an error in which it's unable to find a correspondent for openssl-3.0.7
Additional information
Removing the hardcoded version from the Dockerfile.js2 inside tools/ansible/roles/dockerfile/templates/ and leaving just the package resolves the issue
The text was updated successfully, but these errors were encountered: