WebDAV doesnt work on Android but everywhere else

Official documentation (searchable and regularly updated)

(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).

[/details]

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

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.5
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.2 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Server version: Apache/2.4.63 (Unix) Server built: Feb 14 2025 19:15:30
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • NGINX Proxy Manager Version 2.12.3 (c5a319c) 2025-03-12 00:21:07 UTC, OpenResty 1.27.1.1, debian 12 (bookworm), Certbot certbot 3.2.0
  • PHP version (e.g, 8.3):
    • PHP 8.3.20
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • I cannot pinpoint exactly when and I am not sure if it even worked in the First place
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I have the following error Message.

  • Your web server is not yet properly set up to allow file synchronization, because the WebDAV interface seems to be broken. To allow this check to run you have to make sure that your Web server can connect to itself. Therefore it must be able to resolve and connect to at least one of its trusted_domains or the overwrite.cli.url. This failure may be the result of a server-side DNS mismatch or outbound firewall rule.

I can connect via WebDAV with My IPad With the Nextcloud App for PC and Linux just on Android it does not work.
Neither the Google Play nor F-Droid Version work across diffrent Phones
It says Malformed Server Configuration

Steps to replicate it:

  1. Just Installed the Docker AIO Container in a NPM as Reverse Proxy in the nextcloud aio Docker Network

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.

https://cloud.evard.me/s/jBqTjXmHLeJLdeL
File to big for Pastebin

Web server / Reverse Proxy

The output of docker logs nextcloud-aio-apache

Connection to nextcloud-aio-nextcloud (172.20.0.11) 9000 port [tcp/*] succeeded!
[Tue May 20 09:54:33.433166 2025] [mpm_event:notice] [pid 149:tid 149] AH00489: Apache/2.4.63 (Unix) configured -- resuming normal operations
[Tue May 20 09:54:33.433216 2025] [core:notice] [pid 149:tid 149] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
{"level":"info","ts":1747734873.4484503,"msg":"maxprocs: Leaving GOMAXPROCS=6: CPU quota undefined"}
{"level":"info","ts":1747734873.4487262,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":30109947494,"previous":9223372036854775807}
{"level":"info","ts":1747734873.448761,"msg":"using config from file","file":"/tmp/Caddyfile"}
{"level":"info","ts":1747734873.4507413,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"info","ts":1747734873.4529598,"msg":"serving initial configuration"}

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
            }
        ],
        "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": "cloud.evard.me",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "cloud.evard.me"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.5.1",
        "overwrite.cli.url": "https:\/\/cloud.evard.me",
        "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": "0",
        "app_install_overwrite": [
            "nextcloud-aio"
        ],
        "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",
            "0": "OC\\Preview\\Imaginary",
            "23": "OC\\Preview\\ImaginaryPDF"
        },
        "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,
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "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***",
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "default_language": "en_US",
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "DOMAIN": "cloud.evard.me"
    }
}

Apps

The output of occ app:list


Enabled:

- activity: 4.0.0

- admin_audit: 1.21.0

- appointments: 2.4.4

- bruteforcesettings: 4.0.0

- calendar: 5.2.4

- circles: 31.0.0

- cloud_federation_api: 1.14.0

- comments: 1.21.0

- contacts: 7.1.1

- contactsinteraction: 1.12.0

- dashboard: 7.11.0

- dav: 1.33.0

- deck: 1.15.1

- eidlogin: 1.0.18

- federatedfilesharing: 1.21.0

- federation: 1.21.0

- files: 2.3.1

- files_antivirus: 6.0.2

- files_confidential: 3.2.0

- files_downloadlimit: 4.0.0

- files_fulltextsearch: 31.0.0

- files_pdfviewer: 4.0.0

- files_reminders: 1.4.0

- files_sharing: 1.23.1

- files_trashbin: 1.21.0

- files_versions: 1.24.0

- firstrunwizard: 4.0.0

- forms: 5.1.0

- fulltextsearch: 31.0.0

- fulltextsearch_elasticsearch: 31.0.0

- impersonate: 2.0.0

- integration_onedrive: 3.3.1

- logreader: 4.0.0

- lookup_server_connector: 1.19.0

- memories: 7.5.2

- music: 2.1.4

- nextcloud-aio: 0.7.0

- nextcloud_announcements: 3.0.0

- notes: 4.12.0

- notifications: 4.0.0

- notify_push: 1.1.0

- oauth2: 1.19.1

- occweb: 0.2.3

- password_policy: 3.0.0

- photos: 4.0.0-dev.1

- polls: 7.4.2

- privacy: 3.0.0

- profile: 1.0.0

- provisioning_api: 1.21.0

- recommendations: 4.0.0

- related_resources: 2.0.0

- richdocuments: 8.6.5

- serverinfo: 3.0.0

- settings: 1.14.0

- sharebymail: 1.21.0

- spreed: 21.0.4

- support: 3.0.0

- survey_client: 3.0.0

- systemtags: 1.21.1

- tables: 0.9.2

- tasks: 0.16.1

- text: 5.0.0

- theming: 2.6.1

- twofactor_backupcodes: 1.20.0

- twofactor_nextcloud_notification: 5.0.0

- twofactor_totp: 13.0.0-dev.0

- user_status: 1.11.0

- viewer: 4.0.0

- weather_status: 1.11.0

- webhook_listeners: 1.2.0

- whiteboard: 1.0.5

- workflowengine: 2.13.0

Disabled:

- app_api: 5.0.2 (installed 5.0.2)

- encryption: 2.19.0

- files_emailviewer: 0.1.4 (installed 0.1.4)

- files_external: 1.23.0

- oidc_login: 3.2.2 (installed 3.2.2)

- sip_trip_phone: 1.1.8 (installed 1.1.8)

- suspicious_login: 9.0.1

- user_ldap: 1.22.0

- user_oidc: 7.2.0 (installed 7.2.0)

the nextcloud-aio-nextcloud container is able to connect to the domain using the domainname

I really dont know what the issue is
Any help is Appreciated

Check the output of:

curl -I https://cloud.evard.me/remote.php/webdav

It should be 401 (or 207 if you provide credentials, but either is fine for the setup check).

Any other HTTP status code indicates a problem. Will need to check web server, reverse proxy, and Nextcloud logs.

1 Like

Probably not the problem, but not ideal either:

IPv4 and IPv6 are configured in the DNS:

$ dig +short cloud.evard.me a
home.evard.me.
evard.ipv64.de.
82.82.152.212 # <-- ipv4

$ dig +short cloud.evard.me aaaa
home.evard.me.
evard.ipv64.de.
2a00:1e:82c3:5c00:: # <-- ipv6

However, your Nextcloud is only accessible via IPv4:

$ curl -4 --connect-timeout 5 https://cloud.evard.me/status.php
{"installed":true,"maintenance":false,"needsDbUpgrade":false,"version":"31.0.5.1","versionstring":"31.0.5","edition":"","productname":"Nextcloud","extendedSupport":false}%                                                                   

$ curl -6 --connect-timeout 5 https://cloud.evard.me/status.php
curl: (28) Failed to connect to cloud.evard.me port 443 after 5000 ms: Timeout was reached

Normally this should not be a problem, as most implementations fall back to the working IP version. However, I recommend also fixing this so that you can rule this out.

1 Like

I removed the AAAA Record because IPv6 only makes issues and It did not change anything

Output of: curl -I https://cloud.evard.me/remote.php/webdav

HTTP/2 500 
server: openresty
date: Sun, 01 Jun 2025 17:26:13 GMT
content-type: text/html; charset=UTF-8
content-security-policy: default-src 'none';
referrer-policy: no-referrer
set-cookie: oc_sessionPassphrase=################## path=/; secure; HttpOnly; SameSite=Lax
set-cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
set-cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
set-cookie: ocv4ye2b7psl=###############; path=/; secure; HttpOnly; SameSite=Lax
strict-transport-security: max-age=31536000;
via: 1.1 Caddy
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-robots-tag: noindex, nofollow
x-xss-protection: 1; mode=block


My Nextcloud Instance is publically reachable
and it looks like it returned a Status Code 500

NGINX Proxy Manager:

[02/Jun/2025:00:11:53 +0200] - 200 200 - GET https cloud.evard.me "/remote.php/webdav" [Client 192.168.42.171] [Length 0] [Gzip -] [Sent-to 192.168.42.2] "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0" "-"

Output: docker logs nextcloud-aio-apache

Connection to nextcloud-aio-nextcloud (172.20.0.11) 9000 port [tcp/*] succeeded!
[Tue May 20 09:54:33.433166 2025] [mpm_event:notice] [pid 149:tid 149] AH00489: Apache/2.4.63 (Unix) configured -- resuming normal operations
[Tue May 20 09:54:33.433216 2025] [core:notice] [pid 149:tid 149] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
{"level":"info","ts":1747734873.4484503,"msg":"maxprocs: Leaving GOMAXPROCS=6: CPU quota undefined"}
{"level":"info","ts":1747734873.4487262,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":30109947494,"previous":9223372036854775807}
{"level":"info","ts":1747734873.448761,"msg":"using config from file","file":"/tmp/Caddyfile"}
{"level":"info","ts":1747734873.4507413,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"info","ts":1747734873.4529598,"msg":"serving initial configuration"}

I couldnt really find any other Logs from the Apache Container

Here are the new Nextcloud Logs. I activated Debug Messages.

And thanks for helping me

Please turn off Debug logging. If Nextcloud Server is generating a 500 (that your proxy is passing on), it’s unlikely to need Debug to be visible. Unfortunately your log doesn’t contain any connections from Android. It does indicate the log was too large and thus was rotated just beforehand though. (Probably because you had Debug level logging enabled).

I see you posted a log entry from NPM, but it does not correspond from either a time or user agent perspective with the transactions generated 500 errors. You need to do some leg work to find the entries in your reverse proxy access/error logs that match up with what you’re seeing based on the time and user agent.

It’s weird but the Message just went away. I have no idea what i did The Message just went away and the Problem is completely gone. Thanks for the Help I really Appreciate it!