Curl error 7 in Nextcloud 17

Hi,

i just installed Nextcloud 17 on Centos 8 server. It´s working good but in the log i´m always getting this error:

[internet_connection_check] Error: GuzzleHttp\Exception\ConnectException: cURL error 7:  (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) at <<closure>>

 0. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 149
    GuzzleHttp\Handler\CurlFactory::createRejection(GuzzleHttp\Handl ... l}, {errno: 7,error: ... 0})
 1. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 102
    GuzzleHttp\Handler\CurlFactory::finishError(GuzzleHttp\Handler\CurlHandler {}, GuzzleHttp\Handl ... l}, GuzzleHttp\Handler\CurlFactory {})
 2. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 43
    GuzzleHttp\Handler\CurlFactory::finish(GuzzleHttp\Handler\CurlHandler {}, GuzzleHttp\Handl ... l}, GuzzleHttp\Handler\CurlFactory {})
 3. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php line 28
    GuzzleHttp\Handler\CurlHandler->__invoke("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
 4. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php line 51
    GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}("*** sensitive parameters replaced ***")
 5. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 37
    GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}("*** sensitive parameters replaced ***")
 6. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 30
    GuzzleHttp\PrepareBodyMiddleware->__invoke("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
 7. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 70
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 8. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 60
    GuzzleHttp\RedirectMiddleware->__invoke("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
 9. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php line 67
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
10. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 277
    GuzzleHttp\HandlerStack->__invoke("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
11. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 125
    GuzzleHttp\Client->transfer("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
12. /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 131
    GuzzleHttp\Client->requestAsync("get", GuzzleHttp\Psr7\Uri {}, {verify: "/media ... }})
13. /var/www/html/nextcloud/lib/private/Http/Client/Client.php line 144
    GuzzleHttp\Client->request("get", "http://www.edri.org/", {proxy: null,ver ... e})
14. /var/www/html/nextcloud/settings/Controller/CheckSetupController.php line 153
    OC\Http\Client\Client->get("http://www.edri.org/")
15. /var/www/html/nextcloud/settings/Controller/CheckSetupController.php line 136
    OC\Settings\Controller\CheckSetupController->isSiteReachable("www.edri.org")
16. /var/www/html/nextcloud/settings/Controller/CheckSetupController.php line 673
    OC\Settings\Controller\CheckSetupController->hasInternetConnectivityProblems()
17. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OC\Settings\Controller\CheckSetupController->check()
18. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\Cont ... {}, "check")
19. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\Cont ... {}, "check")
20. /var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OC\\Settings\\C ... r", "check", OC\AppFramework\ ... {}, {_route: "settings.CheckSetup.check"})
21. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "settings.CheckSetup.check"})
22. /var/www/html/nextcloud/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {_route: "settings.CheckSetup.check"})
23. /var/www/html/nextcloud/lib/base.php line 1000
    OC\Route\Router->match("/settings/ajax/checksetup")
24. /var/www/html/nextcloud/index.php line 42
    OC::handleRequest()

I already checked in internet but any solution worked with my problem. Many have the same problem with “Collabora” but i didn´t install it. I tried to ping from server nextcloud site and edri as suggested in the error and it worked. I also tried to disable firewalld but still nothing.
I have no other idea :frowning_face:

Thank`s in advance for your help

Probably a curl + Apache curl module reinstall helps. Also ensure the module has been enabled.

The problem is SElinux. If I stop it with setenforce 0 I’m not getting the error anymore. I followed all the suggestions from the nextcloud guide about selinux but it’s still not working with selinux activated :frowning: