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
Improve standalone errors #8919
Conversation
5903676
to
b78f71e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, very nice catches! One minor suggestion to clarify the explanation, because otherwise "server" could mean the webserver or the machine as a whole.
neat_addr = f"{addr}:{port}" if addr else f"port {port}" | ||
return ("The Certificate Authority failed to download the challenge files from " | ||
f"the temporary standalone webserver started by Certbot on {neat_addr}. " | ||
"Ensure the listed domains point to this server and that this server can accept " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Ensure the listed domains point to this server and that this server can accept " | |
"Ensure the listed domains point to this server and that this machine can accept " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the preceding "server" refers to the same thing. Would something like this be more correct:
Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes, true. That looks great!
b78f71e
to
f137d84
Compare
There's two changes here:
EACCES
andEADDRINUSE
. It seems that this functionality was accidentally lost during a change toacme.standalone
a long time ago. We go from seeing a very generic error message inmaster
: to much more actionable: and:I suggest merging this PR instead of squashing it.
Fixes #8887.