Skip to content
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

Failed to install docker-compose #79

Closed
joelanguera opened this issue Jun 24, 2024 · 7 comments
Closed

Failed to install docker-compose #79

joelanguera opened this issue Jun 24, 2024 · 7 comments

Comments

@joelanguera
Copy link

OS: Ubuntu 24.04 LTS
Ansible: core 2.17.1
Docker: 26.1.4

Just a fresh Ubuntu 24.04 Server installation, just ran:
sudo apt install git make python3-pip -y
sudo pip3 install ansible
sudo mv /usr/lib/python3.12/EXTERNALLY-MANAGED /usr/lib/python3.12/EXTERNALLY-MANAGED.old
Then cloned the repo, configured and make apply
It fails on:
TASK [galaxy-roles/geerlingguy.pip : Ensure pip_install_packages are installed.]
It is able to install docker but fails to install docker-compose
Looks like there is a issue with the PyYAML version used [5.4.1] and the installation of docker-compose.

I managed to get the docker-compose installed by manually installing an older version of PyYAML. Then removed the docker-compose installation from the playbook and the run finally succeeded.

@ahembree
Copy link
Owner

ahembree commented Jun 24, 2024

This appears to be an issue with the geerlingguy.pip package, which is not managed by this repo.
There's an open issue for Ubuntu 24.04 LTS: geerlingguy/ansible-role-pip#66

The above page will then lead you here, so try the steps here: geerlingguy/ansible-role-pip#57

@joelanguera
Copy link
Author

It is a different issue, there is the issue regarding the This environment is externally managed which happens with the installation of docker, as it's the first package to install, but then it also fails on the docker-compose installation due to incompatibility with the PyYAML version used..
Closing this now though as it's not related with this repo. Thanks!

@joelanguera
Copy link
Author

Looks like the long term fix would be to use docker compose v2 instead of the old docker-compose v1. I do not know the implications of using one vs the other and if it should be considered in this repo, the other one "geerlingguy/ansible-role-pip" or both

@joelanguera
Copy link
Author

You can actually just remove the docker-compose installation from pip_install_packages on hms-docker.yml and the run goes fine. (I only had plex, sonarr and radarr though)

@ahembree
Copy link
Owner

ahembree commented Jul 1, 2024

I switched the ansible compose module to the docker_compose_v2 module a while ago, so I'll look into if the pip package is still needed or not, thanks for digging into it!

@KnuffigerMaxi
Copy link

pls fix

@ahembree
Copy link
Owner

ahembree commented Jul 4, 2024

The docker-compose pip dependency has been fixed in #81

Please run git pull to pull the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants