Failed to fetch discovery endpoint cURL error 7

Hello, my Nextcloud instance has been running perfectly since I set it up, but the following occurred during my vacation. I can’t reach my cloud anymore, in the network as well as outside. in the logs there seems to be a problem with the url or the port. But I can’t find out exactly why. The system was not changed during my vacation. Why it no longer reaches the server I have no idea.

Does anyone have an idea to put me on the right track?


Nextcloud version (eg, 29.0.5): v9.6.0
Operating system and version (eg, Ubuntu 24.04): Ubuntu, up to date
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.62
PHP version (eg, 8.3): replace me

The issue you are facing:
Received a timeout (no headers received) error
Sep 24 at 4:38am CEST

Received a couldn’t connect to server error
Sep 25 at 9:39am CEST

[28-Sep-2024 16:51:25] NOTICE: fpm is running, pid 537
2024-09-28T16:51:25.296477707Z [28-Sep-2024 16:51:25] NOTICE: ready to handle connections
2024-09-28T16:51:40.188707363Z Activating Collabora config…
2024-09-28T16:51:40.621625494Z ✓ Reset callback url autodetect
2024-09-28T16:51:40.621674131Z Checking configuration
2024-09-28T16:51:40.621677904Z 🛈 Configured WOPI URL: https://cloud.XXXX.de
2024-09-28T16:51:40.621681170Z 🛈 Configured public WOPI URL: https://cloud.XXXXX.de
2024-09-28T16:51:40.621684283Z 🛈 Configured callback URL:
2024-09-28T16:51:40.621687455Z
2024-09-28T16:51:40.675531090Z Failed to fetch discovery endpoint from https://cloud.XXXX.de
2024-09-28T16:51:40.675578868Z cURL error 7: Failed to connect to cloud.XXXX.de port 443 after 21 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://cloud.XXXXX.de/hosting/discovery

Is this the first time you’ve seen this error? Yes

The output of your Nextcloud log in Admin > Logging:

do not reach the cloud

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

<?php
$CONFIG = array (
  'one-click-instance' => true,
  'one-click-instance.user-limit' => 100,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  array (
    0 =>
    array (
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'appsallowlist' => false,
  'check_data_directory_permissions' => false,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'nextcloud-aio-redis',
    'port' => 6379,
  ),
  'overwritehost' => 'cloud.XXXXX.de',
  'overwriteprotocol' => 'https',
  'trusted_domains' =>
  array (
    0 => '192.168.XXX.XX',
    1 => 'cloud.XXXXX.de',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '30.0.0.14',
  'overwrite.cli.url' => 'https://cloud.XXXXX.de/',
  'dbname' => 'XXXXXX',
  'dbhost' => 'nextcloud-aio-database:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'XXXXXX',
  'installed' => true,
  'instanceid' => 'ocyj4tyq5enl',
  'maintenance' => false,
  'loglevel' => 2,
  'log_type' => 'file',
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_rotate_size' => 10485760,
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'jpeg_quality' => 60,
  'enabledPreviewProviders' =>
  array (
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MarkDown',
    3 => 'OC\\Preview\\MP3',
    4 => 'OC\\Preview\\TXT',
    5 => 'OC\\Preview\\OpenDocument',
    6 => 'OC\\Preview\\Movie',
    7 => 'OC\\Preview\\Krita',
    0 => 'OC\\Preview\\Imaginary',
  ),
  'enable_previews' => true,
  'upgrade.disable-web' => true,
  'mail_smtpmode' => 'smtp',
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 30',
  'activity_expire_days' => 30,
  'simpleSignUpLink.shown' => false,
  'share_folder' => '/Shared',
  'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
  'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
  'updatedirectory' => '/nc-updater',
  'maintenance_window_start' => 100,
  'allow_local_remote_servers' => true,
  'davstorage.request_timeout' => 3600,
  'htaccess.RewriteBase' => '/',
  'dbpersistent' => false,
  'auth.bruteforce.protection.enabled' => true,
  'ratelimit.protection.enabled' => true,
  'files_external_allow_create_new_local' => true,
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '::1',
    10 => '172.21.0.0/16',
  ),
  'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
  'mail_domain' => 'XXXXX',
  'mail_from_address' => 'XXXXXX',
  'mail_smtphost' => 'XXXXXX',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'XXXXXXX',
  'defaultapp' => 'dashboard',
  'updater.release.channel' => 'stable',
  'app_install_overwrite' =>
  array (
    0 => 'nextcloud-aio',
  ),
);

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

2024-09-28T16:21:01.639544355Z Waiting for Nextcloud to start...
2024-09-28T16:21:06.641572228Z Connection to nextcloud-aio-nextcloud (172.21.0.9) 9000 port [tcp/*] succeeded!
2024-09-28T16:21:07.923631044Z [Sat Sep 28 16:21:07.923295 2024] [mpm_event:notice] [pid 74:tid 74] AH00489: Apache/2.4.62 (Unix) configured -- resuming normal operations
2024-09-28T16:21:07.923780000Z [Sat Sep 28 16:21:07.923668 2024] [core:notice] [pid 74:tid 74] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
2024-09-28T16:21:07.932012139Z {"level":"info","ts":1727540467.9317417,"msg":"using config from file","file":"/tmp/Caddyfile"}
2024-09-28T16:21:07.933688004Z {"level":"info","ts":1727540467.9334803,"msg":"adapted config to JSON","adapter":"caddyfile"}
2024-09-28T16:21:07.935713119Z {"level":"info","ts":1727540467.9355078,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}
2024-09-28T16:27:43.298721498Z Connection to nextcloud-aio-nextcloud (172.21.0.9) 9000 port [tcp/*] succeeded!
2024-09-28T16:27:44.581688915Z [Sat Sep 28 16:27:44.581381 2024] [mpm_event:notice] [pid 33:tid 33] AH00489: Apache/2.4.62 (Unix) configured -- resuming normal operations
2024-09-28T16:27:44.581999384Z [Sat Sep 28 16:27:44.581892 2024] [core:notice] [pid 33:tid 33] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
2024-09-28T16:27:44.589228925Z {"level":"info","ts":1727540864.5889785,"msg":"using config from file","file":"/tmp/Caddyfile"}
2024-09-28T16:27:44.592414694Z {"level":"info","ts":1727540864.592207,"msg":"adapted config to JSON","adapter":"caddyfile"}
2024-09-28T16:27:44.594918440Z {"level":"info","ts":1727540864.5942252,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}
2024-09-28T16:28:35.069925201Z Connection to nextcloud-aio-nextcloud (172.21.0.9) 9000 port [tcp/*] succeeded!
2024-09-28T16:28:36.378392177Z [Sat Sep 28 16:28:36.378092 2024] [mpm_event:notice] [pid 33:tid 33] AH00489: Apache/2.4.62 (Unix) configured -- resuming normal operations
2024-09-28T16:28:36.378647162Z [Sat Sep 28 16:28:36.378533 2024] [core:notice] [pid 33:tid 33] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
2024-09-28T16:28:36.385709592Z {"level":"info","ts":1727540916.3854039,"msg":"using config from file","file":"/tmp/Caddyfile"}
2024-09-28T16:28:36.389095005Z {"level":"info","ts":1727540916.388876,"msg":"adapted config to JSON","adapter":"caddyfile"}
2024-09-28T16:28:36.391039851Z {"level":"info","ts":1727540916.390829,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}
2024-09-28T16:50:50.284623366Z nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9000: Name does not resolve
2024-09-28T16:50:50.284735093Z Waiting for Nextcloud to start...
2024-09-28T16:50:55.286721895Z Waiting for Nextcloud to start...
2024-09-28T16:51:00.288530315Z Waiting for Nextcloud to start...
2024-09-28T16:51:05.290600016Z Waiting for Nextcloud to start...
2024-09-28T16:51:10.292445392Z Waiting for Nextcloud to start...
2024-09-28T16:51:15.294441258Z Waiting for Nextcloud to start...
2024-09-28T16:51:20.296334159Z Waiting for Nextcloud to start...
2024-09-28T16:51:25.300873606Z Connection to nextcloud-aio-nextcloud (172.21.0.5) 9000 port [tcp/*] succeeded!
2024-09-28T16:51:26.596747328Z [Sat Sep 28 16:51:26.596447 2024] [mpm_event:notice] [pid 52:tid 52] AH00489: Apache/2.4.62 (Unix) configured -- resuming normal operations
2024-09-28T16:51:26.596924701Z [Sat Sep 28 16:51:26.596817 2024] [core:notice] [pid 52:tid 52] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
2024-09-28T16:51:26.607028086Z {"level":"info","ts":1727542286.6067746,"msg":"using config from file","file":"/tmp/Caddyfile"}
2024-09-28T16:51:26.608736923Z {"level":"info","ts":1727542286.6085482,"msg":"adapted config to JSON","adapter":"caddyfile"}
2024-09-28T16:51:26.611119690Z {"level":"info","ts":1727542286.6109483,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}

Hi, can you follow How to debug problems with Collabora and/or Talk · nextcloud/all-in-one · Discussion #1358 · GitHub?