Could not determine if TLS version of cURL is outdated or not because an error happened during the HTTPS

[details=“Support intro”]

Nextcloud version (eg, 20.0.5): 23.0.20
Operating system and version (eg, Ubuntu 20.04): CentOS 6.10 replace me
Apache or nginx version (eg, Apache 2.4.25): Apache 2.2.15
PHP version (eg, 7.4): 7.3.25

The issue you are facing:
Getting notifications in the Overview menu:

  • This server has no working internet connection: Multiple endpoints could not be reached. This means that some of the features like mounting external storage, notifications about updates or installation of third-party apps will not work. Accessing files remotely and sending of notification emails might not work, either. Establish a connection from this server to the internet to enjoy all features.
  • Could not determine if TLS version of cURL is outdated or not because an error happened during the HTTPS request against https://nextcloud.com. Please check the nextcloud log file for more details.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Go to Settings
  2. Click Overview

The output of your Nextcloud log in Admin > Logging:

Error: curl_setopt_array(): Array keys must be CURLOPT constants or equivalent integer values at /var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php#70
Error: Use of undefined constant CURLOPT_RESOLVE - assumed 'CURLOPT_RESOLVE' (this will throw an Error in a future version of PHP) at /var/www/html/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php#143
/var/www/html/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 143:

OC\Log\ErrorHandler::onError(2, "Use of unde ... )", "/var/www/ht ... p", 143, { 0: "And 6 ... "})

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php - line 35:

OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 31:

GuzzleHttp\PrepareBodyMiddleware->__invoke("*** sensiti ... *", "*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php - line 71:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 63:

GuzzleHttp\RedirectMiddleware->__invoke("*** sensiti ... *", "*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php - line 75:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 331:

GuzzleHttp\HandlerStack->__invoke("*** sensiti ... *", "*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 168:

GuzzleHttp\Client->transfer("*** sensiti ... *", "*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 187:

GuzzleHttp\Client->requestAsync("get", GuzzleHttp\Psr7\Uri {}, { 0: "And 6 ... e})

/var/www/html/nextcloud/lib/private/Http/Client/Client.php - line 223:

GuzzleHttp\Client->request("get", "https://app ... n", { 0: "And 1 ... }})

/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php - line 120:

OC\Http\Client\Client->get("https://app ... n", { timeout: 60})

/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php - line 87:

OC\App\AppStore\Fetcher\Fetcher->fetch("", "")

/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php - line 192:

OC\App\AppStore\Fetcher\AppFetcher->fetch("", "", false)

/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php - line 186:

OC\App\AppStore\Fetcher\Fetcher->get(false)

/var/www/html/nextcloud/lib/private/Installer.php - line 433:

OC\App\AppStore\Fetcher\AppFetcher->get(false)

/var/www/html/nextcloud/apps/serverinfo/lib/SystemStatistics.php - line 181:

OC\Installer->isUpdateAvailable("activity")

/var/www/html/nextcloud/apps/serverinfo/lib/SystemStatistics.php - line 90:

OCA\ServerInfo\SystemStatistics->getAppsInfo()

/var/www/html/nextcloud/apps/serverinfo/lib/Controller/PageController.php - line 60:

OCA\ServerInfo\SystemStatistics->getSystemStatistics()

/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 217:

OCA\ServerInfo\Controller\PageController->update("*** sensiti ... *")

/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 126:

OC\AppFramework\Http\Dispatcher->executeController(OCA\ServerIn ... {}, "update")

/var/www/html/nextcloud/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\ServerIn ... {}, "update")

/var/www/html/nextcloud/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main("OCA\\Server ... r", "update", OC\AppFramew ... {}, { _route: "s ... "})

/var/www/html/nextcloud/lib/base.php - line 1006:

OC\Route\Router->match("/apps/serverinfo/update")

/var/www/html/nextcloud/index.php - line 36:

OC::handleRequest()

	

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'oc***',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' =>
  array (
    0 => '***.org.ua',
    1 => 'conference.***.org.ua',
    2 => 'xmpp.***.org.ua',
    3 => 'pubsub.***.org.ua',
    4 => 'proxy.***.org.ua',
    5 => 'userdata.***.org.ua',
    6 => 'server.***.org.ua',
    7 => 'localhost',
  ),
  'datadirectory' => '/files/oc-data',
  'overwrite.cli.url' => 'http://***.org.ua',
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
  'dbname' => 'nxc',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_master9',
  'dbpassword' => '****',
  'installed' => true,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud.log',
  'loglevel' => 1,
  'mail_from_address' => 'noreply',
  'mail_smtpmode' => 'sendmail',
  'mail_domain' => '***.org.ua',
  'has_rebuilt_cache' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '127.0.0.1',
    'port' => 6379,
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'maintenance' => false,
  'integrity.check.disabled' => true,
  'mail_smtphost' => 'localhost',
  'mail_smtpport' => '25',
  'theme' => '',
  'mysql.utf8mb4' => true,
  'mail_sendmailmode' => 'smtp',
  'logdateformat' => 'd.m.Y H:i:s',
  'allowZipDonwload' => true,
  'htaccessRewriteBase' => '/',
  'default_phone_region' => '804',
  'onlyoffice' =>
  array (
    'verify_peer_off' => true,
  ),
  'updater.release.channel' => 'stable',
  'data-fingerprint' => '****',
  'app_install_overwrite' =>
  array (
    0 => 'mindmap_app',
    1 => 'calendar',
    2 => 'documentserver_community',
    3 => 'contacts',
    4 => 'external',
    5 => 'maps',
    6 => 'music',
    7 => 'forms',
    8 => 'apporder',
    9 => 'audioplayer',
    10 => 'onlyoffice',
    11 => 'ojsxc',
    12 => 'extract',
    13 => 'polls',
    14 => 'previewgenerator',
    15 => 'files_lock',
    16 => 'spreed',
    17 => 'carnet',
    18 => 'whiteboard',
  ),
  'updater.secret' => '****',
);

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE