Https://next.mydomain.com:30127/.well-known/carddav results in an error

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Server configuration detail

    Operating system: Linux 6.12.15-production+truenas #1 SMP PREEMPT_DYNAMIC Mon Sep 8 18:50:34 UTC 2025 x86_64

    Webserver: Apache/2.4.65 (Debian) (apache2handler)

    Database: pgsql PostgreSQL 17.6 (Debian 17.6-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit

    PHP version: 8.3.25

    Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, hash, iconv, json, mbstring, SPL, session, PDO, pdo_sqlite, standard, posix, random, Reflection, Phar, SimpleXML, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, apcu, bcmath, exif, ftp, gd, gmp, igbinary, imagick, intl, ldap, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, sodium, sysvsem, zip, Zend OPcache

    Nextcloud version: 31.0.9 - 31.0.9.1

    Updated from an older Nextcloud/ownCloud or fresh install:

  • Is this the first time you’ve seen this error? (Yes / No):

    • no
  • When did this problem seem to first start?

    • iOS sync
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)

    • App in Truenas (Docker)
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)

    • ?

Summary of the issue you are facing

syncing with macOS and iOS does not work

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

  1. download macOS config file from nextcloud

  2. install config on Mac OS x

  3. error appears: DAAccountValidationDomain:100

  4. next test: try to access Https://next.mydomain.com:30127/.well-known/carddav

  5. results also in an error … Fehler: „Load cannot follow more than 20 redirections" (:0)

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.

Fehler
webdav
ServiceUnavailable
Sabre\DAV\Exception\NotFound:


22.09.2025, 20:07:33


Fehler
no app in context
NotFound
Exception thrown: Sabre\DAV\Exception\NotFound
Exception thrown: Sabre\DAV\Exception\NotFound


22.09.2025, 20:07:33

I’m not clear what you’re trying to do.

What config file are you referring to?

And are you referring to file syncing with the Desktop and iOS Nextcloud clients? If so, what are you using a CardDAV URL?

Perhaps you can improve your reproduction steps / description.

Also, it’s challenging to assist unless you post the real lot entries rather than just the one liners (details are described in the instructions in the support template).

Configuration would also be helpful.

1 Like

OK, I try to give more information about the error and my configuration:

Error: it is not possible to sync my calendar and contacts with nextcloud over caldav and carddav.

I followed the manual and did the folloowing:

under settings → mobile and desktop → I downloaded the “Download macOS/iOS configuration profile“.

This file can be opened in system settings on a Mac or iOS device. Normally when you do this you can connect to your contacts and calendar. But now appears the error:

Das Profil „Nextcloud (de.lang-w.next.e7cedf12-1a72-4da5-9c7a-5c210796300e:e7cedf12-1a72-4da5-9c7a-5c210796300e)“ konnte aufgrund eines unerwarteten Fehlers nicht installiert werden.

DAAccountValidationDomain:100.

Then I tried to verify if the redirects are correct installed/configured.

  1. next test: try to access https://next.mydomain.com:30127/.well-known/carddav in a browser

  2. this results in an error: „Load cannot follow more than 20 redirections"

This means, that the redirection of the .well-known-address does not work.

Desktop sync of files is working correct under Mac OS X and iOS. The only problem is the calendar and contact sync

But how to fix it?

Here my configuration:

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "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
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwriteprotocol": "https",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "upgrade.disable-web": true,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.9.1",
        "overwrite.cli.url": "https:\/\/localhost",
        "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***",
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 2,
        "maintenance": false,
        "default_phone_region": "DE",
        "maintenance_window_start": 1,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": true,
        "trusted_domains": [
            "127.0.0.1",
            "localhost",
            "next.lang-w.de",
            "nextcloud"
        ]
    }
}

do you need additional information?

I never heard, tha a profile must be downloaded on a IOS device.

Normally calendar- and contacts sync will be configured in the app DavX5.

Just enter the link from calendar within Nextcloud using browser - see lower left corner:

The copied link looks like this:

https://nextcloud.mydomain.de/remote.php/dav/principals/users/< username >/

Paste this link in DavX5 while configure it. Then mark the contacts and calendars you want to synchronize and have a look on the item “Certificate Validation”, whether to ignore or validate it.

(I only use Android devices, but on IOS it should be similar)

Please check Administration settings–>Overview in the Web UI. You likely have a relevant warning or error.

It’ll have a link to the relevant docs IIRC.

The exact answer will depend on your web server and/or reverse proxy configuration.

I always wonder, why port 30127 is called. Nextcloud and CalDAV/CardDAV normally work using ports 80 and 443.

If really Nextcloud is working with port 30127, no valid SSL-certificate may be used and the error appears due to the not validated SSL certificate, and access may be blocked.

here the output of the warnings:

Es gibt einige Warnungen zu Ihrer Systemkonfiguration.
6 Fehler in den Protokollen seit 17. September 2025, 17:57:58
Sie haben Ihre E-Mail-Serverkonfiguration noch nicht festgelegt oder überprüft. Gehen Sie bitte zu den "Grundeinstellungen", um diese festzulegen. Benutzen Sie anschließend den Button "E-Mail senden" unterhalb des Formulars, um Ihre Einstellungen zu überprüfen. Weitere Informationen finden Sie in der Dokumentation ↗.
Bitte überprüfen Sie noch einmal die Installationsanleitungen ↗ und kontrollieren Sie das Protokoll auf mögliche Fehler oder Warnungen.

and here the protocol:

Fehler core InvalidTokenException Token does not exist: token does not exist Renewing session token failed: Token does not exist: token does not exist 23.09.2025, 18:44:19
Warnung appstoreFetcher Response from appstore is invalid, apps could not be retrieved. Try again later. 23.09.2025, 07:02:12
Fehler no app in context ConnectException cURL error 28: Operation timed out after 60000 milliseconds with 7154834 out of 9149194 bytes received (see libcurl - Error Codes ) for https://apps.nextcloud.com/api/v1/apps.json 23.09.2025, 07:02:12
Warnung appstoreFetcher Response from appstore is invalid, apps could not be retrieved. Try again later. 23.09.2025, 07:02:12
Fehler no app in context ConnectException cURL error 28: Operation timed out after 60000 milliseconds with 7154834 out of 9149194 bytes received (see libcurl - Error Codes ) for https://apps.nextcloud.com/api/v1/apps.json 23.09.2025, 07:02:12
Fehler webdav ServiceUnavailable Sabre\DAV\Exception\NotFound: 22.09.2025, 20:07:33
Fehler no app in context NotFound Exception thrown: Sabre\DAV\Exception\NotFound 22.09.2025, 20:07:33
Fehler webdav ServiceUnavailable Sabre\DAV\Exception\NotFound: 22.09.2025, 20:07:33
Fehler no app in context NotFound Exception thrown: Sabre\DAV\Exception\NotFound 22.09.2025, 20:07:33
Fehler RequestNetworkException Exception thrown: OCA\Circles\Tools\Exceptions\RequestNetworkException 22.09.2025, 19:40:13
Fehler RequestNetworkException Exception thrown: OCA\Circles\Tools\Exceptions\RequestNetworkException 22.09.2025, 19:40:13
Fehler RequestNetworkException Exception thrown: OCA\Circles\Tools\Exceptions\RequestNetworkException 22.09.2025, 19:39:26
Fehler RequestNetworkException Exception thrown: OCA\Circles\Tools\Exceptions\RequestNetworkException 22.09.2025, 19:39:26
Warnung no app in context Login failed: admin (Remote IP: 172.16.4.6) 22.09.2025, 19:14:31
Warnung no app in context Login failed: admin (Remote IP: 172.16.4.6) 22.09.2025, 19:14:31

I think the main issue is this;

Sabre\DAV\Exception\NotFound