# Error getting validation data (http-01)

**URL:** <https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515>\
**Category:** Help\
**Created:** [June 20, 2017, 11:06pm UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515 "2017-06-20T23:06:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wofiel](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@Wofiel](https://community.letsencrypt.org/u/Wofiel)\
**Post date:** [June 20, 2017, 11:06pm UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/1 "2017-06-20T23:06:21Z")

</div>

Hi all,

Just looking to get some assistance if possible - It’s not the first time I’ve renewed, but it’s the first time I’ve had trouble with it.

My domain is: [wofiel.com](http://wofiel.com)

I ran this command: ./certbot-auto renew --dry-run

It produced this output:

`Attempting to renew cert from /etc/letsencrypt/renewal/wofiel.com.conf produced an unexpected error: Failed authorization procedure. wofiel.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://wofiel.com/.well-known/acme-challenge/PcYcSaZ-junMDR6DmVrCO8Ku4fWgIR4hOc0fpp0_NGY: Error getting validation data. Skipping.`

My web server is (include version): nginx/1.4.6

The operating system my web server runs on is (include version): Ubuntu 14.04.5 LTS

My hosting provider, if applicable, is: Digital Ocean

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No

I’ve followed a few other threads on here, but none have seemed to help. The webroot seems correct in the LE conf, I have created a test page in acme-challenge and it is accessible via browser/curl via ipv4 and ipv6 at [http://wofiel.com/.well-known/acme-challenge/test.html](http://wofiel.com/.well-known/acme-challenge/test.html) (redirects to https):

```
curl -IkL6 http://wofiel.com/.well-known/acme-challenge/test.html
HTTP/1.1 301 Moved Permanently
Server: nginx/1.4.6 (Ubuntu)
Date: Tue, 20 Jun 2017 22:55:02 GMT
Content-Type: text/html
Content-Length: 193
Connection: keep-alive
Location: https://wofiel.com/.well-known/acme-challenge/test.html

HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Tue, 20 Jun 2017 22:55:03 GMT
Content-Type: text/html
Content-Length: 12
Last-Modified: Tue, 20 Jun 2017 22:35:47 GMT
Connection: keep-alive
ETag: "5949a343-c"
Accept-Ranges: bytes

```

Thanks in advance for any help!

---

<div class="post-metadata">

**Author:** ![Patches](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/patches/32/17145_2.png) [@Patches](https://community.letsencrypt.org/u/Patches)\
**Post date:** [June 21, 2017, 12:12am UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/2 "2017-06-21T00:12:57Z")

</div>

This domain uses Digital Ocean's DNS service, which is having problems today:

> [@DNS problem when attempting to generate a certificate?](https://community.letsencrypt.org/t/dns-problem-when-attempting-to-generate-a-certificate/36500/4):
>
> A…

It might work if you try again, or you might have to wait awhile for them to resolve their issues.

---

<div class="post-metadata">

**Author:** ![Wofiel](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@Wofiel](https://community.letsencrypt.org/u/Wofiel)\
**Post date:** [June 21, 2017, 10:05pm UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/3 "2017-06-21T22:05:02Z")

</div>

Still no change after 24 hours - is there something else that could be affecting the renewal attempt?

---

<div class="post-metadata">

**Author:** ![cpu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/cpu/32/84514_2.png) [@cpu](https://community.letsencrypt.org/u/cpu)\
**Post date:** [June 22, 2017, 1:20pm UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/4 "2017-06-22T13:20:41Z")

</div>

> [@Wofiel](#):
>
> Still no change after 24 hours - is there something else that could be affecting the renewal attempt?

I believe so. Looking at the server logs I see that the validation authority tries to connect to your challenge server on IPv6 address `2604:a880:800:10::3401:4001` and then IPv4 address `104.131.107.46` and receives a connection refused error.

---

<div class="post-metadata">

**Author:** ![Wofiel](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@Wofiel](https://community.letsencrypt.org/u/Wofiel)\
**Post date:** [June 23, 2017, 8:47pm UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/5 "2017-06-23T20:47:08Z")

</div>

Hm, seems like the IPv6 redirect to https wasn’t working correctly for some reason. I’ve removed the AAAA record for now, so it shouldn’t try to use IPv6, but still no change ~18 hours after updating it.

---

<div class="post-metadata">

**Author:** ![mnordhoff](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mnordhoff/32/22583_2.png) [@mnordhoff](https://community.letsencrypt.org/u/mnordhoff)\
**Post date:** [June 23, 2017, 10:01pm UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/6 "2017-06-23T22:01:54Z")

</div>

What error does Let’s Encrypt give now?

---

<div class="post-metadata">

**Author:** ![Wofiel](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@Wofiel](https://community.letsencrypt.org/u/Wofiel)\
**Post date:** [June 24, 2017, 7:57am UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/7 "2017-06-24T07:57:46Z")

</div>

Still the same one as in the first post:

`Failed authorization procedure. wofiel.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain`

---

<div class="post-metadata">

**Author:** ![Wofiel](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@Wofiel](https://community.letsencrypt.org/u/Wofiel)\
**Post date:** [July 3, 2017, 6:56pm UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/8 "2017-07-03T18:56:53Z")

</div>

Apologies for letting this thread sleep a little - been a busy few weeks. Unfortunately, this problem does still persist. Is there any other suggestion to remedy this?

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [July 5, 2017, 10:43pm UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/9 "2017-07-05T22:43:21Z")

</div>

The error message may have been updated on the server side to give more detail—what error do you see now?

Can you confirm from server logs that the CA is trying to connect to you to test your domain?

Are you sure that the webroot directory you specified is the right one? (The directory that _contains_ `.well-known`, rather than `.well-known` or `acme-challenge` itself?)

---

<div class="post-metadata">

**Author:** ![Wofiel](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@Wofiel](https://community.letsencrypt.org/u/Wofiel)\
**Post date:** [July 5, 2017, 11:53pm UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/10 "2017-07-05T23:53:24Z")

</div>

Hmm - I have solved this with your hint of it being the webroot, but I’m not entirely sure of the root cause.

It was certainly using the correct directory from the config file, but the server was indeed getting no hits in the log. In the config file, it was specified in a way that I couldn’t find any documentation of?

```
[[webroot_map]]
wofiel.com = /path/to/webroot/

```

I ended up using the same details with certonly: `certbot-auto certonly -w /path/to/webroot/ -d wofiel.com` which authenticated correctly. Now I have a new line in my conf with `webroot_path = /path/to/webroot,` (comma included) which was not previously there. Doing a `--dry-run` of renew also now appears to work.

Edit: Some more digging with that information shows that you helped someone else with almost the same issue over a year ago: [Help us test renewal with "letsencrypt renew"](https://community.letsencrypt.org/t/help-us-test-renewal-with-letsencrypt-renew/10562/18)

Greatly appreciated your help on this, got it solved just in the nick of time! 🙂

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [July 6, 2017, 12:00am UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/11 "2017-07-06T00:00:22Z")

</div>

I’m glad it worked. I’m also not sure of what was wrong, since the `webroot_map` should also have worked.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [August 5, 2017, 12:00am UTC](https://community.letsencrypt.org/t/error-getting-validation-data-http-01/36515/12 "2017-08-05T00:00:24Z")

</div>

Closed on August 5, 2017, 12:00am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
