NiyabiNiyabi MemberComments: 1 Received thanks: 0 Member since: June 18

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?

Answers

  • PasiBPasiB MemberComments: 9 Received thanks: 0 edited June 18 Member since: June 10

    Message: Could not resolve host: shop6.local

     

    Is your host reachable under http://shop6.local? Try to use the IP-Adress instead. It could be a problem with ur Network-Config not Shopware. 

     

     

    However... Instead of chmod 777 you better should give the Webserver user the ownership of the directory. 

    For Apache2 with www-data as user:

    sudo chown -R www-data:www-data /var/www/

  • NiyabiNiyabi MemberComments: 1 Received thanks: 0 edited June 19 Member since: June 18

     It's localhost and multiple vHosts so every vHost is on 127.0.0.1 so I can't access it by IP alone. Tried changing ownership of directory but it didn't help.

    Message: Could not resolve host: shop6.local

     

    Is your host reachable under http://shop6.local? Try to use the IP-Adress instead. It could be a problem with ur Network-Config not Shopware. 

     

     

    However... Instead of chmod 777 you better should give the Webserver user the ownership of the directory. 

    For Apache2 with www-data as user:

    sudo chown -R www-data:www-data /var/www/

Sign In or Register to comment.