- edited description
LEScript.ERROR: Couldn't create directory to expose challenge
Issue #268
resolved
When I use the built-in Let's Encrypt, I get the error below using Poste 1.0.7.
I have already tried removing the SSL directory and restarting the container and creating the directory manually.
[2018-03-10 09:35:46] LEScript.INFO: Starting certificate generation process for domains
[2018-03-10 09:35:46] LEScript.INFO: Requesting challenge for mail.XXXX.XX
[2018-03-10 09:35:47] LEScript.INFO: Sending signed request to /acme/new-authz
[2018-03-10 09:35:48] LEScript.INFO: Got challenge token for mail.XXXX.XX
[2018-03-10 09:35:48] LEScript.ERROR: Couldn't create directory to expose challenge: /opt/www//.well-known/acme-challenge/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[2018-03-10 09:35:48] LEScript.ERROR: #0 /opt/admin/src/Analogic/LetsEncryptBundle/Handler/LeHandler.php(55): Analogic\ACME\Lescript->signDomains(Array)
[2018-03-10 09:35:48] LEScript.ERROR: #1 /opt/admin/src/Analogic/LetsEncryptBundle/Controller/LeController.php(74): Analogic\LetsEncryptBundle\Handler\LeHandler->renew(true)
[2018-03-10 09:35:48] LEScript.ERROR: #2 [internal function]: Analogic\LetsEncryptBundle\Controller\LeController->issueAction(Object(Symfony\Component\HttpFoundation\Request))
[2018-03-10 09:35:48] LEScript.ERROR: #3 /opt/admin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(153): call_user_func_array(Array, Array)
[2018-03-10 09:35:48] LEScript.ERROR: #4 /opt/admin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
[2018-03-10 09:35:48] LEScript.ERROR: #5 /opt/admin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(171): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[2018-03-10 09:35:48] LEScript.ERROR: #6 /opt/admin/web/app.php(22): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
[2018-03-10 09:35:48] LEScript.ERROR: #7 {main}
When I create the directory manually, it claims it has saved the token but it hasn't:
[2018-03-10 09:56:25] LEScript.INFO: Account already registered. Continuing.
[2018-03-10 09:56:25] LEScript.INFO: Starting certificate generation process for domains
[2018-03-10 09:56:25] LEScript.INFO: Requesting challenge for mail.XXXX.XX
[2018-03-10 09:56:25] LEScript.INFO: Sending signed request to /acme/new-authz
[2018-03-10 09:56:26] LEScript.INFO: Got challenge token for mail.XXXX.XX
[2018-03-10 09:56:26] LEScript.INFO: Token for mail.XXXX.XX saved at /opt/www//.well-known/acme-challenge/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX and should be available at http://mail.XXXX.XX/.well-known/acme-challenge/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[2018-03-10 09:56:26] LEScript.ERROR: Please check http://mail.XXXX.XX/.well-known/acme-challenge/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - token not available
[2018-03-10 09:56:26] LEScript.ERROR: #0 /opt/admin/src/Analogic/LetsEncryptBundle/Handler/LeHandler.php(55): Analogic\ACME\Lescript->signDomains(Array)
[2018-03-10 09:56:26] LEScript.ERROR: #1 /opt/admin/src/Analogic/LetsEncryptBundle/Controller/LeController.php(74): Analogic\LetsEncryptBundle\Handler\LeHandler->renew(true)
[2018-03-10 09:56:26] LEScript.ERROR: #2 [internal function]: Analogic\LetsEncryptBundle\Controller\LeController->issueAction(Object(Symfony\Component\HttpFoundation\Request))
[2018-03-10 09:56:26] LEScript.ERROR: #3 /opt/admin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(153): call_user_func_array(Array, Array)
[2018-03-10 09:56:26] LEScript.ERROR: #4 /opt/admin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
[2018-03-10 09:56:26] LEScript.ERROR: #5 /opt/admin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(171): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[2018-03-10 09:56:26] LEScript.ERROR: #6 /opt/admin/web/app.php(22): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
[2018-03-10 09:56:26] LEScript.ERROR: #7 {main}
Comments (5)
-
reporter -
reporter - edited description
-
reporter - edited description
-
reporter It was an issue with the .well-known directories permissions.
-
reporter - changed status to resolved
- Log in to comment