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
bbe1952 panic #5628
Comments
Thanks for opening an issue! And ESPECIALLY thank you for trying the latest commits!! You're awesome. I'll look into this. It's not immediately clear to me what is going on, so I'll need your help to understand it better. Ideally, we need to be able to reproduce the bug in the most minimal way possible using the latest version of Caddy. 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
Instructions -- please heed otherwise we cannot help you (help us help you!)
Example of a tutorial: Create a config file: |
@text01001 What is your config, at least? |
Sorry for the long wait, I re-edited the issue with more details |
Can you trigger the problem without the plugin? |
No plug-in will not panic, but caddy commit 7ceef91 The same compilation method and startup will not panic, everything is normal |
Thanks @text01001 I can replicate the problem and I understand what's wrong. But fixing it correctly is complicated, I think @mholt will need to find a solution. |
Thanks -- dang... of course, my TODO in the code turns out to be prophetic. I'll work on this this week. |
I think I have a fix for this, but am verifying that it works in conjunction with another patch coming up. |
Separate currentCtxMu to protect currentCtx, and a new rawCfgMu to protect rawCfg and synchronize loads.
@text01001 Could you please try the patch at --- nvm Francis already confirmed it 😆 Still please try it out 🙃 |
Thanks for the fix.
|
I think this means your In other words, See the docs https://caddyserver.com/docs/caddyfile/options#server-options it explains the |
No, after testing, when I apply it in the production environment, the test website cannot be accessed.
log:
I deleted the content related to the trojan plug-in, and this configuration file can work normally. Added trojan plugin content does not work.
And the old version has always used |
I have used |
I use caddy commit: 27bc16a
and
trojan commit: imgk/caddy-trojan@8be6619
(xcaddy --with github.com/imgk/caddy-trojan@master )
full compile command:
OS:
caddy version:
Simplified caddy configuration file:
After caddy starts, it will panic. I don’t know if this is a problem with caddy or a problem with the trojan plugin.
log:
After compiling and testing the last few commit versions
Panic started after this commit 0e2c7e1
The text was updated successfully, but these errors were encountered: