ansible-role-letsencrypt icon indicating copy to clipboard operation
ansible-role-letsencrypt copied to clipboard

Cannot validate via well-known

Open salsadigitalau opened this issue 7 years ago • 2 comments

When running role, I get the following error

ValueError: Wrote file to /var/www/html/docroot/letse/7NO9jVHwHKxry7PUqoNxpMx-V40Mksi_inZl14dV3Ao, but couldn't download http://website.com.well-known/acme-challenge/7NO9jVHwHKxry7PUqoNxpMx-V40Mksi_inZl14dV3Ao

Upon review, the folder docroot/letse is empty.

The permissions are set as 755 and ownership as the letsencrypt user. I can't track if it cannot write to the file and why.

The Nginx path alias is set, but it won't work unless there is a file.

salsadigitalau avatar Mar 15 '17 06:03 salsadigitalau

That is really weird. I had a similar case a few times, but that was usually due to a wrong alias configuration in the webserver.

Can you check where your ".well-known/acme-challenge" points to? Probably just put a small test file in there and try fetching it from the server.

andreaswolf avatar Mar 20 '17 10:03 andreaswolf

I just had the same issue; I'm using the role as part of Trellis.

@salsadigitalau - I did some digging and this solved for me. I think it might be due to my server configured for IPV6 but can't confirm.

runofthemill avatar Apr 04 '17 20:04 runofthemill