question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`WORKER TIMEOUT` on Docker 20.x

See original GitHub issue
  1. Starting with the sample docker-compose files (either sqlite or postgres), set any SECRET_KEY and set ALLOWED_HOSTS=* (the latter is only required for gitpod, see below, but left here for consistency).
  2. docker-compose up
  3. 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.
  4. 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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cdubzcommented, Jun 25, 2021

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…

1reaction
cdubzcommented, Jun 25, 2021

@lutzky interesting… that leads to some other potentially relevant information:

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found