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

Rocker throws DependencyMissing error on Ubuntu 24.04. #290

Closed
nvbln opened this issue Sep 25, 2024 · 4 comments
Closed

Rocker throws DependencyMissing error on Ubuntu 24.04. #290

nvbln opened this issue Sep 25, 2024 · 4 comments

Comments

@nvbln
Copy link

nvbln commented Sep 25, 2024

I am creating this issue as I cannot find a new issue by @SevenFo, as suggested in issue #280.

I was following along the following guide to run a container: https://github.com/osrf/vrx/wiki/docker_install_tutorial.
As part of this guide, rocker is installed as follows (see also "Step 1" in the previous guide): https://github.com/HonuRobotics/dockwater/wiki/Install-Dependencies.

During the guide, I hit the following error as soon as I run ./run.bash dockwater:humble:

              [--version] [--cuda] [--dev-helpers] [--devices [DEVICES ...]]
              [--env NAME[=VALUE] [NAME[=VALUE] ...]] [--env-file ENV_FILE]
              [--expose EXPOSE] [--git] [--git-config-path GIT_CONFIG_PATH]
              [--group-add GROUP_ADD] [--home] [--hostname HOSTNAME]
              [--name NAME]
              image [command ...]
rocker: error: DependencyMissing encountered: Docker Client failed to connect to docker daemon. Please verify that docker is installed and running. As well as that you have permission to access the docker daemon. This is usually by being a member of the docker group. The underlying error was:
"""
Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'
"""

However, simply running rocker without any arguments is enough to trigger this error.
I have attempted to use Docker in rootless mode, but this didn't make a difference.

I am using Ubuntu 24.04, upgraded from 22.04.

@tfoote
Copy link
Collaborator

tfoote commented Sep 25, 2024

It looks like a similar incompatibilty between docker-py and requests as #278 . I found docker/docker-py#3113

Can you verify your versions of python3-docker and python3-requests in your environment? It appears to have been fixed: docker/docker-py#3116 but I don't know which release it's into.

@nvbln
Copy link
Author

nvbln commented Sep 25, 2024

Ubuntu 24.04 LTS has:
python3-requests: 2.31.0
python3-docker: 5.0.3-1

So you're correct that this is caused due to a version incompatibility, this is not an issue anymore from python3-docker>=6.1.0 onwards.
For future reference, since python3-docker is only available as 5.0.3-1 for noble. Instead I manually installed version 7.1.0-1 from oracular as the dependencies stay the same. In order for things to work I also had to reverse the rootless mode. After that everything ran as expected. Thanks!

@nvbln nvbln closed this as completed Sep 25, 2024
@tfoote
Copy link
Collaborator

tfoote commented Sep 26, 2024

Ohh, that sounds like an issue we'll want to push on upstream with Ubuntu. Thanks for confirming that's your issue and providing a suggested workaround.

python3-docker package version in noble: https://packages.ubuntu.com/noble/python3-docker

@nvbln
Copy link
Author

nvbln commented Sep 28, 2024

It appears a fix is fortunately already on the way: https://bugs.launchpad.net/ubuntu/+source/python-docker/+bug/2065348.

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

2 participants