da-letsencrypt icon indicating copy to clipboard operation
da-letsencrypt copied to clipboard

Error while completing domain challenges (Nginx)

Open iPokz opened this issue 9 years ago • 11 comments

It's show error message when submit form

Error while completing domain challenges
Details
Could not obtain directory.

OS : CentOS 6 (x64) DirectAdmin with Custombuild Nginx Web Server PHP-FPM : 7.0.1

iPokz avatar Jan 07 '16 02:01 iPokz

Hmm, I'll look into this. Thanks.

Wouter0100 avatar Jan 07 '16 08:01 Wouter0100

Same problem on my box. with the latest version pulled from git (18:30)

http://IP:2222/CMD_PLUGINS/da-letsencrypt/actions/request.html Error while completing domain challenges

Details

Could not obtain directory.

Back

WaaaghNL avatar Jan 07 '16 17:01 WaaaghNL

@WaaaghNL

Which version of PHP and which webserver(s) do you use?

zenire avatar Jan 07 '16 18:01 zenire

Apache 2.4.17 Running DirectAdmin 1.49.1 Running Php 5.5.30 Installed

WaaaghNL avatar Jan 07 '16 19:01 WaaaghNL

Hmm, are you able to debug this issue? I'm not sure why this error accords.

Wouter0100 avatar Jan 13 '16 21:01 Wouter0100

Is it possible to run this in debug mode? Because the logs are empty.

Just pulled the latest update from git but i still getting the same problem.

steps i take as a user: Login > Domain > Let's Encrypt Certificates > supplying an email and accepting the ToS > Send > Error page.

Error while completing domain challenges

Details

Could not obtain directory.

Back

WaaaghNL avatar Jan 13 '16 22:01 WaaaghNL

It doesn't seems to be related to our plugin. This error is thrown by the library we use.

Could you put some var_dump's in these catch statements, to know what's going wrong? See this.

Wouter0100 avatar Jan 13 '16 22:01 Wouter0100

maybe a strange question but where can i find the file on my server?

WaaaghNL avatar Jan 14 '16 18:01 WaaaghNL

/usr/local/directadmin/plugins/da-letsencrypt/vendor/kelunik/acme/lib/AcmeClient.php

Wouter0100 avatar Jan 15 '16 08:01 Wouter0100

I'm experiencing the same problem using PHP 7. One thing I noticed viewing print_r/var_dump is the first line:

Amp\Dns\ResolutionException Object ( [message:protected] => Connection to udp://2a01:7c8:a::c53:53 failed: [Error #0] php_network_getaddresses: getaddrinfo failed: Name or service not known [string:Exception:private] => [code:protected] => 0 [file:protected] => /usr/local/directadmin/plugins/da-letsencrypt/vendor/amphp/dns/lib/functions.php [line:protected] => 442

If you need a full var_dump let me know. ( pretty big )

cino avatar Jan 17 '16 14:01 cino

Hmm, are you able to debug that issue more? I'm unsure why it's unable to connect over IPv6.

Wouter0100 avatar Jan 21 '16 20:01 Wouter0100