compose: requests.exceptions.Timeout: UnixHTTPConnectionPool
Hi! I often get the following error on our Centos 6.5 server when executing docker-compose up -d
:
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 31, in main
File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 21, in sys_dispatch
File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 27, in dispatch
File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 24, in dispatch
File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 59, in perform_command
File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 155, in logs
File "/code/build/docker-compose/out00-PYZ.pyz/compose.project", line 205, in containers
File "/code/build/docker-compose/out00-PYZ.pyz/docker.client", line 519, in containers
File "/code/build/docker-compose/out00-PYZ.pyz/docker.client", line 81, in _get
File "/code/build/docker-compose/out00-PYZ.pyz/requests.sessions", line 395, in get
File "/code/build/docker-compose/out00-PYZ.pyz/requests.sessions", line 383, in request
File "/code/build/docker-compose/out00-PYZ.pyz/requests.sessions", line 486, in send
File "/code/build/docker-compose/out00-PYZ.pyz/requests.adapters", line 387, in send
requests.exceptions.Timeout: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
Any idea what’s happening?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 42
Having the same issue with the following steps on a Jenkins CI build. The machine has been restarted, versions upgraded, after each build and run there is a cleanup script to stop/remove containers.
Building the image(s)
Running the image(s)
Sample compose file:
Image sizes:
Versions
The following error message appears 50% of the time - this is happening on our Jenkins CI environment and also on our mac’s!
This is still a issue for us as well, it shows up every now and then, making packer deployments hard to consolidate:
https://github.com/umccr/infrastructure/blob/master/packer/stackstorm-ami/bootstrap-stackstorm.sh#L25
Running
docker 17.10.1-ce
anddocker compose 1.19.0
./cc @reisingerf
Hey guys, you can set the read timeout with
Found here via code-search. Tested in our GitLab CI, which had the exact same problems, now running like a charm even with several concurrent builds.
Is this in the docs? Don’t think so 😃
Just saw this today as well.
Hi aberope.
Try:
where you can change 600 for your needs.
Yes, Please more info. version of docker for example… Regards