-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
randomly caddy does not reply with html content or log the request #6793
Comments
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! This will require some effort on your part -- please understand that we will be dedicating time to fix the bug you are reporting if you can just help us understand it and reproduce it easily. This template 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: |
randomly caddy does not reply with html content or log the request
caddy version: v2.9.1 h1:OEYiZ7DbCzAWVb6TNEkjRcSCRGHVoZsJinoDR/n9oaY=
here are the test results:
while set -l r (wget -O - http://caddydomain.com 2>/dev/null); echo "Attempt: "(date)" Size: "(string length "$r")" Content: $r"; test (string length "$r") -eq 0; sleep 1; end
Attempt: 11:46:16 EET Size: 1762 Content: <!doctype html>...
Attempt: 11:46:18 EET Size: 0 Content:
Attempt: 11:46:20 EET Size: 0 Content:
Attempt: 11:46:22 EET Size: 0 Content:
Attempt: 11:46:23 EET Size: 1762 Content: <!doctype html>...
Attempt: 11:46:25 EET Size: 1762 Content: <!doctype html>...
Attempt: 11:46:27 EET Size: 0 Content:
Attempt: 11:46:29 EET Size: 0 Content:
Attempt: 11:46:31 EET Size: 0 Content:
Attempt: 11:46:33 EET Size: 0 Content:
Attempt: 11:46:34 EET Size: 0 Content:
This happens after adding a domain via PUT API,
When caddy docker image is restarted, and then the same config is reloaded using caddy reload --config /config/caddy/autosave.json
it starts serving correctly. A reload without a restart does not help.
The text was updated successfully, but these errors were encountered: