-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Compose error "HTTP request took too long to complete" #3633
Comments
What command is timing out? |
The To reproduce: mkdir ~/myapp
cd ~/myapp
curl -L "https://raw.githubusercontent.com/bitnami/bitnami-docker-rails/master/docker-compose.yml" > docker-compose.yml
docker-compose up
...
...
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60). |
any ideas? |
@sameersbn try disabling tty. I believe this is a dupe of #3106 |
I'm running into the same issue frequently. Did you fix it? BTW: I'm using Docker 1.11.2 and docker-compose 1.7.1 |
@Fortiz2305 no workaround afaik, see my above comment: #3633 (comment) |
@aaronjensen thanks for the info. will try it out and get back. |
@aaronjensen I can confirm that removing the |
@sameersbn to be honest, I have no idea what the difference between those things would be. If it works for you, great 😄 |
using TERM=xterm still produces exit code 0 when using docker-compose up |
I'm having the same problem using appcontainers/wordpress recipe on OSX 10.11.6 running docker app 1.12.0-a with 2CPUs and 6Gb RAM. Loading process takes ages for every request. Furthermore running:
I got this error:
|
By simply restarting the docker service via Note: I did not touch the |
Hello everybody, My colleagues encountered that issue recently and I did not. But I may have find an important hint 🎉 It's indeed linked to the tty parameter. The applications that run with tty are able to print colors and this is what I get when I do a
Here, the application doesn't crash. Notice also that the logs are truncated. But if in another terminal I do this:
I get this:
It crashes every time after ~1.5 min. You can't see it on github but the As you can see, as soon as there are colors, it can crash. Hope this will help. Update: I deactivated all the colors of the application, docker-compose still crashes. |
Removing |
I get the same error message.
My docker-compose.yml file does not mention Increasing the timeout does nothing. The only things that work for me are:
The fact that it takes so long for me to restart the docker daemon is interesting. Is docker doing something in the background that causes docker-compose to throw this error? I am running:
UPDATE: I upgraded to docker version 1.12.5 but it did not help. |
@adaviding Is your Docker Engine running on a machine that is experiencing high load or has little available memory / disk space? How many containers do you typically have running? |
@shin- I'm seeing this issue as well, on a Mac. Versions:
My machine was not under high load, there is plenty of RAM, plenty of disk space, etc. My docker-compose file also doesn't mention After restarting the Docker daemon, it started working again. |
@michael-younkin When you start getting that error with |
After several consultation of the topic (hoping there would be an out-of-the-box solution), I'm joining the conversation. I experience the issue also. I never used the I'm working on a micro-serviced project and often have up to 4 compose process running at the same time on a not-so-powerful machine (4Gb RAM 😕). Sometimes they'll start without issue, sometimes I get the error. Individually they all work. I really don't have a solution here, only few comments and questions:
Thanks, ❤️ docker & compose. |
I ran into this issue as well; have to sudo service docker restart to get docker commands to work again. I checked top but didn't see cpu high usage etc. No tty: true option in docker-compose.yml I did notice my inode usage is quite high at 95%
Coincidentally I think there is some serious memory leak; not sure if it is with docker-compose itself but I notice my system memory usage was ~70% before and now it is at ~17% after restart. |
@AnthonyWC This is most definitely an engine issue. Can you report it on their issue tracker? https://github.com/docker/docker/issues |
@shin- I'm sure there are multiple issues at play here. Last time, after restarting Docker for Mac, the issue went away, so I didn't get a chance to test if the daemon was responsive. I hadn't seen the issue again until today. I am able to launch new containers using the regular This probably is a docker engine issue, but it only seems to be manifesting through docker compose. |
Encountered this fun bug on macOS - fixed with |
Is anything happening with this issue? We are seeing it all the time now and increasing the timeout doesn't seem to work. |
On Mac, what I did was going to the docker icon (upper right corner) and clicked restart, maybe is not the best solution, but it´s the fastest one |
@leovujanic Thanks. Using quotes solved the problem |
I had this issue and it turns out that Docker had its "update ready, install now?" dialogue open. After updating Docker and then restarting Docker desktop, the issue went away. |
Oh god! Why! the answer to everything is restart! BTW thanks :) |
Honestly, I could not find the tty which is advised to change in docker compose file. |
In my case (beside restarting the docker service), it helped removing the dns settings from daemon.json .. |
Maybe try checking this out #4459. |
This comment has been minimized.
This comment has been minimized.
Restarting docker daemon worked for me on MacOS as suggested by @WernerRaath 4 years ago! |
after never having had issue for a few months, I've run into this issue at least three times in the last hour between spinning up and spinning down compose on macos. There haven't been any updates nor are there any available. I'm currently on Docker Desktop 3.2.2 and engine 20.10.5 |
Make sure any docker updates available, If available install it (Requires root privileges), and restart the docker will fix the issue. |
Just to chime in here. I had the same issue on macOS with Docker Engine 20.10.5. The root cause for me was insufficient memory. By default Docker Desktop for Mac only allocates 2GB RAM. My stack required a lot more than that, which is how I ran across this error. |
Can anyone explain why does it work ^^ |
Getting this behavior in an EC host with docker and engine... |
You saved my time! |
Thank you for that - this led me to have a look at my I do not know why this would have an impact and if it will be long term though. |
Fixed Issue Thanks |
I have the same issue, I have tried all the comments above but did not work for me. I finally use one of suggestion above, just restart the docker and resolved the issue. |
I'm not sure of the specifics, but my guess would be that something unexpected happened at System.d startup, probably some race condition when the config needs to be read from somewhere. The |
Thanks, I restart everything, the previous error is gone, now another error:
|
Restarting docker solves it everytime too |
For me, it works after executed |
COMPOSE_HTTP_TIMEOUT=200 docker-compose up |
Lately I've been noticing the following error message quite frequently with
docker-compose up
:Increasing the
COMPOSE_HTTP_TIMEOUT
only seems to delay the error. Is this a known issue and/or is there a workaround for this?I'm using ubuntu 16.04, please find below the output of
docker-compose version
anddocker version
. I'd also like to note that I see this issue with docker for mac beta, docker-machine, etc.The text was updated successfully, but these errors were encountered: