Hi, I’m using WSL Debian as local web server and it works for Wordpress and Shopware 5 however after last step of Shopware 6 installation (shop configuration) I get this message:
Slim Application Error
The application could not run because of the following error:
Details
Type: Shopware\Recovery\Common\HttpClient\ClientException
Code: 6
Message: Could not resolve host: shop6.local
File: /var/www/shop6/vendor/shopware/recovery/Common/src/HttpClient/CurlClient.php
Line: 97
Trace
#0 /var/www/shop6/vendor/shopware/recovery/Common/src/HttpClient/CurlClient.php(35): Shopware\Recovery\Common\HttpClient\CurlClient->call('http://shop6.lo...', 'POST', Array, '{"grant_type":"...')
#1 /var/www/shop6/vendor/shopware/recovery/Install/src/app.php(513): Shopware\Recovery\Common\HttpClient\CurlClient->post('http://shop6.lo...', '{"grant_type":"...', Array)
#2 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#3 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#4 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#5 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#6 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#7 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#8 /var/www/shop6/vendor/shopware/recovery/Install/src/app.php(158): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#10 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)
#11 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#12 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#13 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#14 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#15 /var/www/shop6/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#16 /var/www/shop6/vendor/shopware/recovery/Install/index.php(51): Slim\App->run()
#17 /var/www/shop6/public/recovery/install/index.php(6): require_once('/var/www/shop6/...')
#18 {main}
In Apache error log I got “PHP message: PHP Warning: chmod(): Operation not permitted” so i changed directory to /var/www/ and set permissions for 777. Chmod error disappeared however I still get the same error after last step of installation.
System:
- WSL Debian
- PHP 7.2.31
- Apache 2.4.38
Do you have any idea what is the cause and how to fix it?