mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 15:13:33 +01:00
dns-01 not working #454
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TB1234 on GitHub (Jan 6, 2020).
I installed dehydrated on a Pi via apt-get and tried to get a cert via dns-01 like I do this on other systems multiple times. But on this system this will not work. I also tried the latest dehydrated script direct from GitHub which also brings the same result.
Here is my config:
If I run the script, I got this result:
Why does the dns-01 method not work? It does also not work if I use explicit the -t dns-01 parameter.
@TB1234 commented on GitHub (Jan 7, 2020):
I found the problem!
After starting the command with
bash -x dehydrated -cI got a line which gave me the hint I need to fix it:There was a error in the hook script. Maybe there should be a error message if the hook script is broken and there is a fallback from dns-01 auf http-01.
@lukas2511 commented on GitHub (Feb 5, 2020):
I'm not entirely sure what exactly the problem is.
Dehydrated calls all hook scripts with a
this_hookscript_is_broken__dehydrated_is_working_fine__please_ignore_unknown_hooks_in_your_scriptparameter, this was added because newly added hooks caused some hook scripts to repeatedly break. It got this name so that A) people who just used other peoples hooks knew that this wasn't a dehydrated problem and B) so that developers knew that they should simply ignore unknown hook calls.I'm guessing your script failed and dehydrated aborted after that.
And if your script didn't give you an error, dehydrated would just silently stop, is that assumption correct?
I'll have a look at what I can do about adding a good error message for an actually failing hook script.
@TB1234 commented on GitHub (Feb 5, 2020):
How you see above, dehydrated is not aborted.
I tries to run and it was very hard for me to find the problem. I unterstand the decision for the parameter but in this case the program should write a message that there is a problem with a hook sctip. If you ignore that ok then that's your problem but if you read the message you know that there is a problem and have to spend a lot of time to search for a problem which can be fixed in a view seconds.
@lukas2511 commented on GitHub (Dec 10, 2020):
Dehydrated now prints error messages if a hook script fails.