-
Notifications
You must be signed in to change notification settings - Fork 77
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
Caddy sometimes locks up when running inside docker #374
Comments
Thanks for opening an issue! We'll look into this. It's not immediately clear to us what is going on, so we'll need your help to understand it better. Ideally, we need to be able to reproduce the bug in the most minimal way possible. This allows us to write regression tests to verify the fix is working. If we can't reproduce it, then you'll have to test our changes for us until it's fixed -- and then we can't add test cases, either. I've attached a template below that will help make this easier and faster! It will ask for some information you've already provided; that's OK, just fill it out the best you can. 👍 I've also included some helpful tips below the template. Feel free to let me know if you have any questions! Thank you again for your report, we look forward to resolving it! Template
Helpful tips
Example of a tutorial: Create a config file: |
Thanks. This is Ubuntu 22.04.5, fully patched, running in AWS. The trigger for this behavior is random, and getting telemetry from the broken container is more or less impossible once it's started. I'm digging in some more, and the container:
Running In the end, the only fix is to restart the entire docker daemon, or reboot the server. Both of which are far more disruptive than I'd like. |
Is that the Caddy process blowing up specifically? If possible, please provide a profile: https://caddyserver.com/docs/profiling A heap and goroutine profile would both be most useful! |
Next time it happens, I'll see if I can get it to spit one out, but as I said, once it gets into this state I'm not sure there's a process left to profile. |
If |
Some users will just poll those endpoints every few seconds to nab a quick profile, then if the process has a problem they can look at the last one that it got. |
I have a problem where my Caddy (version 2.8.4), running inside the official docker image, locks up and hangs on all network input, refuses to respond to kill signals from
docker compose
, and basically turns into a useless lump. There's no runaway memory or CPU usage or anything.What logs or metrics can I pull to help debug what's going on here?
The text was updated successfully, but these errors were encountered: