DNS working but not recognized #1894
-
I have a strange issue here and I'm lost trying to solve it. Recently I've moved a domain from Squarespace to Porkbun. I've set up new A and AAAA records. DNS lookup works as expected.
So I tried spinning up a new server, updated my DNS accordingly and set up a new website:
What's going on? It's just an A record. Nothing else changed! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
root@localhost:~# ee site ssl-renew mysite.com
Starting SSL cert renewal
Loading current certificate for mysite.com
Loading current certificate for mysite.com
Starting SSL verification.
PHP Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: www.mysite.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://www.mysite.com/.well-known/acme-challenge/_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx in phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:210
Stack trace:
#0 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::createRejection()
#1 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(110): GuzzleHttp\Handler\CurlFactory::finishError()
#2 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(47): GuzzleHttp\Handler\CurlFactory::finish()
#3 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#4 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}()
#5 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(35): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}()
#6 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke()
#7 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp\{closure}()
#8 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\RedirectMiddleware->__invoke()
#9 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp\{closure}()
#10 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Client.php(333): GuzzleHttp\HandlerStack->__invoke()
#11 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Client.php(169): GuzzleHttp\Client->transfer()
#12 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Client->requestAsync()
#13 phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/ClientTrait.php(44): GuzzleHttp\Client->request()
#14 phar:///usr/local/bin/ee/vendor/acmephp/core/Challenge/Http/HttpValidator.php(59): GuzzleHttp\Client->get()
#15 phar:///usr/local/bin/ee/vendor/acmephp/core/Challenge/WaitingValidator.php(59): AcmePhp\Core\Challenge\Http\HttpValidator->isValid()
#16 phar:///usr/local/bin/ee/vendor/acmephp/core/Challenge/ChainValidator.php(58): AcmePhp\Core\Challenge\WaitingValidator->isValid()
#17 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/Site_Letsencrypt.php(386): AcmePhp\Core\Challenge\ChainValidator->isValid()
#18 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1683): EE\Site\Type\Site_Letsencrypt->check()
#19 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1566): EE\Site\Type\EE_Site_Command->ssl_verify()
#20 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1507): EE\Site\Type\EE_Site_Command->init_le()
#21 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1446): EE\Site\Type\EE_Site_Command->init_ssl()
#22 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1815): EE\Site\Type\EE_Site_Command->www_ssl_wrapper()
#23 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1773): EE\Site\Type\EE_Site_Command->renew_ssl_cert()
#24 [internal function]: EE\Site\Type\EE_Site_Command->ssl_renew()
#25 phar:///usr/local/bin/ee/php/EE/Dispatcher/CommandFactory.php(96): call_user_func()
#26 [internal function]: EE\Dispatcher\CommandFactory::EE\Dispatcher\{closure}()
#27 phar:///usr/local/bin/ee/php/EE/Dispatcher/Subcommand.php(272): call_user_func()
#28 phar:///usr/local/bin/ee/php/EE/Runner.php(366): EE\Dispatcher\Subcommand->invoke()
#29 phar:///usr/local/bin/ee/php/class-ee.php(1184): EE\Runner->run_command()
#30 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/Site_Command.php(154): EE::run_command()
#31 [internal function]: Site_Command->__invoke()
#32 phar:///usr/local/bin/ee/php/EE/Dispatcher/CommandFactory.php(96): call_user_func()
#33 [internal function]: EE\Dispatcher\CommandFactory::EE\Dispatcher\{closure}()
#34 phar:///usr/local/bin/ee/php/EE/Dispatcher/Subcommand.php(272): call_user_func()
#35 phar:///usr/local/bin/ee/php/EE/Runner.php(366): EE\Dispatcher\Subcommand->invoke()
#36 phar:///usr/local/bin/ee/php/EE/Runner.php(389): EE\Runner->run_command()
#37 phar:///usr/local/bin/ee/php/EE/Runner.php(815): EE\Runner->_run_command_and_exit()
#38 phar:///usr/local/bin/ee/php/EE/Bootstrap/LaunchRunner.php(23): EE\Runner->start()
#39 phar:///usr/local/bin/ee/php/bootstrap.php(74): EE\Bootstrap\LaunchRunner->process()
#40 phar:///usr/local/bin/ee/php/init-ee.php(27): EE\bootstrap()
#41 phar:///usr/local/bin/ee/php/boot-phar.php(8): include('...')
#42 /usr/local/bin/ee(5): include('...')
#43 {main}
thrown in phar:///usr/local/bin/ee/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 210
Warning: An Error occurred. Initiating clean-up.
Warning: Exiting gracefully after rolling back. This may take some time.
Success: Rollback complete. Exiting now.
|
Beta Was this translation helpful? Give feedback.
So I found the issue.
For reference: after moving DNS, I was only having a root record (*.mysite.com). For EE to properly work, you need to also have a www.mysite.com 'A' record. After adding this, everything is back to normal.
I bit odd to me (but I'm not an expert), since the site works just fine with only the root record. It's just the EE functionality (like 'site create' or 'site ssl-renew') that fails without www record.