`WORKER TIMEOUT` on Docker 20.x
See original GitHub issue- Starting with the sample
docker-compose
files (either sqlite or postgres), set anySECRET_KEY
and setALLOWED_HOSTS=*
(the latter is only required for gitpod, see below, but left here for consistency). docker-compose up
- Point the browser at the babybuddy instance, at the login page (or any other page) hit refresh 3-4 times. Most of the time it’ll be sub-second latency, but occasionally it’ll take about 30 seconds.
- When this occurs, the logs will (after 30 seconds) say the following (with the numbers 13,14 incrementing each time)
[1] [CRITICAL] WORKER TIMEOUT (pid:13) [13] [INFO] Worker exiting (pid: 13) [14] [INFO] Booting worker with pid: 14
Setting DEBUG=True
and setting log-level to debug
adds no information. This also occurs with https://github.com/linuxserver/docker-babybuddy.
Tested on (❌ means reproduces, ✔️ means doesn’t-reproduce and works fine)
- ❌ Ubuntu 20.04.2 on WSL, Docker 20.10.6
- ❌ Ubuntu 20.04.2 on bare-metal, Docker 20.10.6
- ✔️ Ubuntu 20.04.2 on https://gitpod.io, Docker 19.03.15
This has been discussed in https://gitter.im/babybuddy/Lobby?at=60d4adb16c992105fd994cee, and I’m formatting it as an issue at the request of @cdubz.
I’ve performed some more investigation, I’ll add in a comment below.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Gunicorn worker timeout error - Stack Overflow
WORKER TIMEOUT means your application cannot response to the request in a defined amount of time. You can set ...
Read more >Docker Worker Timeout : r/DashMachine - Reddit
My Docker container has decided to stop working after a reboot of my server. The error log looks like this. [2020-08-04 20:15:02 +0000]...
Read more >Frequently asked questions - Docker Documentation
Compose stop attempts to stop a container by sending a SIGTERM . It then waits for a default timeout of 10 seconds. After...
Read more >How to resolve the Docker "Timeout exceeded while awaiting ...
Most often, this issue is caused by the machine running the Docker command being behind a proxy. When that's the case, the Docker...
Read more >Issue with increasing Gitaly Timeout Period using PUMA worker
Historically, we have injected unicorn timeouts settings via docker-compose like this unicorn['worker_timeout'] = 60.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yay! @lutzky would you be willing to open a PR to add the changes to the example compose files? I think that’s all that is needed here…
@lutzky interesting… that leads to some other potentially relevant information: