-
Notifications
You must be signed in to change notification settings - Fork 1.9k
docker_container pull 'Get http://: http: no Host in request URL' #5775
Comments
@Davey-Dev, we need more information to resolve this issue. For that reason, we put this Issue into the 'needs_info' state. Here are the required items we could not find in your description:
When you have filled in the missing data, we will notify the module maintainer for further action. |
I'm seeing same problem on Ubuntu 16.04.1. |
I am also experiencing the issue. Like, @Davey-Dev , the same script worked yesterday but fails today. I did have to switch to a different VM so the environment is not identical but very close. Here is the dump I get trying to pull down the RabbitMQ image from Docker Hub with
I know the module relies on
Hopefully, this can assist in tracking down the cause. |
Interestingly, this is happening to us as well. I used the ansible playbooks last night (CentOS 6) with success but today it is failing. No yum updates show in the logs on the ansible machine. I'll update with anything I find. |
+1 Seeing this issue on new ubuntu 14.04.3 aws instances. Ansible playbook == 2.2.0.0 Also hitting a private docker repository |
@matrix10657 ours is a private docker repo as well. |
We're specifically using a quay.io repo. I suspect the problem is maybe with the repository considering that we're pinning all of the versions I mentioned, and we do a fresh install of all of them every time we build. If we're all using quay then that's pretty suspicious. |
@matrix10657 not using quay - and our private docker repo is is self hosted and did not have any package updates between the last successful run and the new failed runs. |
+1 same here. like others above, our builds have been working fine - tonight failing with this strange error. This was after ansible reported a successful image build then failed with this error attempting to start the image. docker images command does not show the supposedly newly built image name, instead shows:
|
I think the issue is related to docker-compose. Switching down to 1.8.1 (on the target machine) fixed it:
|
I have |
I can confirm @Davey-Dev solution worked for me. Ansible playbooks were running just fine yesterday, but failed to start/restart containers today. I did NOT have docker-compose installed. I manually installed docker-compose on the target host: pip install docker-compose==1.8.1 Immediately reran the playbook and my containers came up just fine. AWS |
@kurron I don't know much about Go, other than that Docker is written in Go and the 'http: no Host in request URL' error seems to be a specific to Go. |
I have the same issue with some writeup posted to SO. EDIT: I did not previously have a task to install docker-compose, but I added one and installed 1.8.1 and can confirm this fixes the issue. |
Obviously, I don't fully understand what is going on but running |
@Davey-Dev docker-compose likely downgraded the requests module which is the actual culprit. The requests module came out with an update today (https://pypi.python.org/pypi/requests/2.12.2) For anyone else, FYI, if your playbook is installing docker-py to the latest, then it is getting the latest version of requests. However, we actually need a lower version of requests. I'm testing requests versions... |
@kurron When I installed docker-compose, the requests module was the only one to update. |
@ansible, ping. This issue is waiting on your response. |
After successfully pulling down images again, I ran
|
This issue should be closed in favor of the docker-py issue: docker/docker-py#1321 |
Last release seems to have broken docker-py See ansible/ansible-modules-core#5775 and https://github.com/kennethreitz/requests/issues/3734 for the relevant issues
Last release seems to have broken docker-py See ansible/ansible-modules-core#5775 and https://github.com/kennethreitz/requests/issues/3734 for the relevant issues
Last release seems to have broken docker-py See ansible/ansible-modules-core#5775 and https://github.com/kennethreitz/requests/issues/3734 for the relevant issues
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
OS
Ubuntu 14.04.5 LTS
Summary:
This docker_container module was working up until now and have not changed any code. When I try to pull the image manually in a ssh session, it works.
Error:
fatal: [api]: FAILED! => {"changed": false, "failed": true, "msg": "Error pulling blah-testing.artifactory.internal/soa-kazoo - code: None message: Get http://: http: no Host in request URL"}
The text was updated successfully, but these errors were encountered: