Several problems after adding IPv4 support to former IPv6-only instance and upgrade to v30

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Raspberry Pi OS
  • Web server and version (e.g, Apache 2.4.25):
    • as in AIO latest v10.0.0
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • none
  • PHP version (e.g, 8.3):
    • as in AIO latest v10.0.0
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • after automatic upgrade to v30
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

  • Instance was first set up in a “home environment” behind a native IPv6 ISP connection without IPv4 support.
  • After a while, it became evident that not all networks used by clients supported IPv6. An IPv4 address was added to the connection, NC is now running behind NAT with necessary ports forwarded from the router to the host (in addition to non-NAT IPv6 setup).
  • After nightly backups, Apache often (but not always) showed a “503 Service unavailable” error (no NC error page, but “native” Apache error page).
  • This could be fixed by restarting docker on the Raspberry.
  • Yesterday, an automatic update to v30 was run.
  • Since then, the following apps could not be updated and were disabled: Deck, Calendar, Spreed, Contacts
  • Manual update of Deck worked
  • Since then, the following apps cannot be updated: Social Login (working, though), Calendar, Contacts, Group Folders, Nextcloud Office, Talk
  • As I’m writing this, updating Group Folders worked. I did not change anything.
  • I have the feeling, this has to do with the network setup, since also, there’s always the error that the Web server cannot connect to itself.

Steps to replicate it (hint: details matter!):

  1. In Admin apps overview click on “Update to 20.0.2” for Talk
  2. Popup occurs after a couple of seconds: "An error occured during the request. Unable to proceed. Could not update app.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"ywUHwPJcyUXiHt0jAzrv","level":3,"time":"2024-11-27T14:00:19+00:00","remoteAddr":"147.161.164.182","user":"admin","app":"no app in context","method":"GET","url":"/settings/apps/update/spreed","message":"cURL error 6: Could not resolve host: objects.githubusercontent.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://objects.githubusercontent.com/github-production-release-asset-2e65be/377448625/802d4fb0-b50a-4c06-8683-ec1144a4d26a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241127T140008Z&X-Amz-Expires=300&X-Amz-Signature=fde0910c47c5ed6b3696abbb2bcde161efd9e3474dff84c281c6fa292eaf0d31&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dspreed-v20.0.2.tar.gz&response-content-type=application%2Foctet-stream","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0","version":"30.0.2.2","exception":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 6: Could not resolve host: objects.githubusercontent.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://objects.githubusercontent.com/github-production-release-asset-2e65be/377448625/802d4fb0-b50a-4c06-8683-ec1144a4d26a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241127T140008Z&X-Amz-Expires=300&X-Amz-Signature=fde0910c47c5ed6b3696abbb2bcde161efd9e3474dff84c281c6fa292eaf0d31&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dspreed-v20.0.2.tar.gz&response-content-type=application%2Foctet-stream","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},"*** sensitive parameters replaced ***",{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},"*** sensitive parameters replaced ***",{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":142,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Http/Client/DnsPinMiddleware.php","line":106,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":107,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":73,"function":"checkRedirect","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/FulfilledPromise.php","line":48,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":52,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\FulfilledPromise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":251,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->","args":[true]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":227,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":272,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":229,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":69,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":189,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/lib/private/Http/Client/Client.php","line":205,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["get","*** sensitive parameters replaced ***",{"0":"And 1 more entries, set log level to debug to see all entries","verify":"/var/www/html/resources/config/ca-bundle.crt","timeout":120,"sink":"/tmp/oc_tmp_Fnmlnd-.tar.gz","nextcloud":{"allow_local_address":true},"headers":{"User-Agent":"Nextcloud Server Crawler","Accept-Encoding":"gzip"}}]},{"file":"/var/www/html/lib/private/Installer.php","line":246,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Installer.php","line":144,"function":"downloadApp","class":"OC\\Installer","type":"->","args":["*** sensitive parameters replaced ***",false]},{"file":"/var/www/html/apps/settings/lib/Controller/AppSettingsController.php","line":609,"function":"updateAppstoreApp","class":"OC\\Installer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"updateApp","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\AppSettingsController"},"updateApp"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\AppSettingsController"},"updateApp"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\AppSettingsController","updateApp",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"appId":"*** sensitive parameters replaced ***","_route":"settings.appsettings.updateapp"}]},{"file":"/var/www/html/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/apps/update/spreed"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"message":"cURL error 6: Could not resolve host: objects.githubusercontent.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://objects.githubusercontent.com/github-production-release-asset-2e65be/377448625/802d4fb0-b50a-4c06-8683-ec1144a4d26a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241127T140008Z&X-Amz-Expires=300&X-Amz-Signature=fde0910c47c5ed6b3696abbb2bcde161efd9e3474dff84c281c6fa292eaf0d31&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dspreed-v20.0.2.tar.gz&response-content-type=application%2Foctet-stream","exception":[],"CustomMessage":"cURL error 6: Could not resolve host: objects.githubusercontent.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://objects.githubusercontent.com/github-production-release-asset-2e65be/377448625/802d4fb0-b50a-4c06-8683-ec1144a4d26a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241127T140008Z&X-Amz-Expires=300&X-Amz-Signature=fde0910c47c5ed6b3696abbb2bcde161efd9e3474dff84c281c6fa292eaf0d31&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dspreed-v20.0.2.tar.gz&response-content-type=application%2Foctet-stream"},"id":"67472b23e7bae"}

Nextcloud container

62e9d3e67f62:/var/www/html# ping objects.githubusercontent.com
PING objects.githubusercontent.com (185.199.109.133): 56 data bytes
64 bytes from 185.199.109.133: seq=0 ttl=42 time=12.579 ms
64 bytes from 185.199.109.133: seq=1 ttl=42 time=11.910 ms
^C
--- objects.githubusercontent.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 11.910/12.244/12.579 ms
62e9d3e67f62:/var/www/html# ping6 objects.githubusercontent.com
ping6: bad address 'objects.githubusercontent.com'

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "appsallowlist": false,
        "check_data_directory_permissions": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "30.0.2.2",
        "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "updatedirectory": "\/nc-updater",
        "loglevel": "2",
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": "10485760",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "enabledPreviewProviders": {
            "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"
        },
        "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",
        "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": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "",
        "data-fingerprint": "0b00844cc341a32dc3fadefc2842ba88",
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "DOMAIN": "***REMOVED SENSITIVE VALUE***"
    }
}

Apps

Enabled:

  • activity: 3.0.0
  • admin_audit: 1.20.0
  • app_api: 4.0.0
  • bruteforcesettings: 3.0.0
  • circles: 30.0.0
  • cloud_federation_api: 1.13.0
  • collectives: 2.15.1
  • comments: 1.20.1
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • deck: 1.14.2
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_downloadlimit: 3.0.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • firstrunwizard: 3.0.0
  • groupfolders: 18.0.6
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • nextcloud-aio: 0.7.0
  • nextcloud_announcements: 2.0.0
  • notes: 4.11.0
  • notifications: 3.0.0
  • notify_push: 0.7.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • photos: 3.0.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • sociallogin: 5.6.7
  • support: 2.0.0
  • survey_client: 2.0.0
  • systemtags: 1.20.0
  • tasks: 0.16.1
  • text: 4.1.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • twofactor_totp: 12.0.0-dev
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • workflowengine: 2.12.0
    Disabled:
  • calendar: 4.7.16 (installed 4.7.16)
  • contacts: 6.0.0 (installed 6.0.0)
  • encryption: 2.18.0
  • files_external: 1.22.0
  • richdocuments: 8.4.8 (installed 8.4.8)
  • spreed: 19.0.11 (installed 19.0.11)
  • suspicious_login: 8.0.0
  • twofactor_nextcloud_notification: 4.0.0
  • user_ldap: 1.21.0

Summary

I suspect the error is in the network configuration. Please advise, which further logs I could supply, so that you would be able to help me. Thank you very much!

Hi, have you activated ipv6 like mentioned in all-in-one/docker-ipv6-support.md at main · nextcloud/all-in-one · GitHub?

Yes, I have. I originally set up the instance IPv6 only, when the linked document was at this status: all-in-one/docker-ipv6-support.md at 1513d69a8d318b22d0d68528bfd80d872d290074 · nextcloud/all-in-one · GitHub

But after adding IPv4 support and trying to solve issues, I changed the docker IPv6 setup to reflect the latest version of the document.

So, there seems to be an issue with IPv6 hostname resolution. Don’t really know if that (still) is a Nextcloud issue or if I should reach out for help in a Docker forum?

Now I think I’ve found the root cause, but I don’t know how to solve it.

Docker internal DNS is only reachable by an IPv4 address. This is how /etc/resolv.conf looks in the containers:

2dcde8ada56a:/usr/local/apache2$ cat /etc/resolv.conf
# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.

nameserver 127.0.0.11
search fritz.box
options ndots:0

# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [fd00::7eff:4dff:febc:5ec1 192.168.178.1]
# Overrides: [nameservers]
# Option ndots from: internal

It seems, however, that Nextcloud resolves hostnames with IPv6 only. Maybe that is because of initially setting up NC in an IPv6-only environment? There is no IPv6 DNS server available inside the containers and lookups fail.

Anyone any idea? :slightly_smiling_face:

It seems that cURL is the problem. cURL can’t resolve hostnames inside the nextcloud_aio_nextcloud container.

No matter if I tell it to only use IPv4 or IPv6, to ignore any config file (-q) or specify DNS servers to use. It can’t lookup the hostname.

04387e8ff51f:/var/www/html# curl -vvv https://apps.nextcloud.com
20:54:33.293919 [0-x] == Info: [READ] client_reset, clear readers
20:54:44.058418 [0-0] == Info: Could not resolve host: apps.nextcloud.com
20:54:44.061529 [0-x] == Info: shutting down connection #0
curl: (6) Could not resolve host: apps.nextcloud.com
04387e8ff51f:/var/www/html# curl -vvv -4 https://apps.nextcloud.com
20:54:54.759149 [0-x] == Info: [READ] client_reset, clear readers
20:55:03.431389 [0-0] == Info: Could not resolve host: apps.nextcloud.com
20:55:03.432919 [0-x] == Info: shutting down connection #0
curl: (6) Could not resolve host: apps.nextcloud.com
04387e8ff51f:/var/www/html# curl -vvv -6 https://apps.nextcloud.com
20:55:09.158325 [0-x] == Info: [READ] client_reset, clear readers
20:55:20.426632 [0-0] == Info: Could not resolve host: apps.nextcloud.com
20:55:20.432963 [0-x] == Info: shutting down connection #0
curl: (6) Could not resolve host: apps.nextcloud.com
04387e8ff51f:/var/www/html# curl -q -vvv https://apps.nextcloud.com
20:56:27.159937 [0-x] == Info: [READ] client_reset, clear readers
20:56:38.168359 [0-0] == Info: Could not resolve host: apps.nextcloud.com
20:56:38.168925 [0-x] == Info: shutting down connection #0
curl: (6) Could not resolve host: apps.nextcloud.com
04387e8ff51f:/var/www/html# curl -q -vvv --dns-servers 127.0.0.11 https://apps.nextcloud.com
21:06:46.363628 [0-x] == Info: [READ] client_reset, clear readers
21:06:57.072599 [0-0] == Info: Could not resolve host: apps.nextcloud.com
21:06:57.075750 [0-x] == Info: shutting down connection #0
curl: (6) Could not resolve host: apps.nextcloud.com
04387e8ff51f:/var/www/html#

cURL is able to access external servers, though:

04387e8ff51f:/var/www/html# curl -I http://65.21.231.50/
HTTP/1.1 308 Permanent Redirect
Connection: close
Location: https://65.21.231.50/
Server: Caddy
Date: Tue, 03 Dec 2024 20:09:36 GMT

04387e8ff51f:/var/www/html#

Any ideas why cURL could have this problem?

This might be the reason: Curl fails to resolve hostname · nextcloud/all-in-one · Discussion #5557 · GitHub

1 Like