Webdav and Ext Storage Permissions Errors

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 10 (31.0.4)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Version 7.0.1 2025-02-25
  • Web server and version (e.g, Apache 2.4.25):
    • I’m not sure how to find this
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • jlesage/nginx-proxy-manager - latest
  • PHP version (e.g, 8.3):
    • I’m not sure how to find this
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Not sure, but my logs are full with 10s of thousands of errors
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker in Unraid
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Cloudflare

Summary of the issue you are facing:

I checked my Nextcloud and saw that there are 20-30k errors in logs.
All of those are about webdav not working and some permissions errors regarding the external folders that are attached.

But the ext folder setup looks ok on my end and when I initially set it up, I didn’t get any errors. So I’m not sure if anything changed with one of the latest updates, and I don’t know how to fix it as I’m not an advanced user.

Can you please help me with finding a way to fix it?

Screenshots of errors and ext storage setup:


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

I didn’t change anything for years, so I don’t know how to replicate the problem.

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.

Example of webdav error:

{"reqId":"VMJmpIQax4qOkM0RDnHb","level":3,"time":"2025-04-25T21:23:28+00:00","remoteAddr":"172.68.27.103","user":"imds","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/imds/Backups/MENU%20Laptop%20Backup/%23MENU%20Laptop%20Backup/Pictures/Viktor%20i%20Mijat%201.%20Rodjendan%202023","message":"Directory listing failed","userAgent":"Mozilla/5.0 (Windows) mirall/3.16.3 (build 20250416) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"31.0.4.1","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Directory listing failed","Code":0,"Trace":[{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Tree.php","line":95,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":971,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":1664,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":1649,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Server.php","line":398,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":21,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/app/www/public/remote.php","line":145,"args":["/config/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":185,"Previous":{"Exception":"OCP\\Files\\StorageNotAvailableException","Message":"Directory listing failed","Code":1,"Trace":[{"file":"/app/www/public/lib/private/Files/Storage/Wrapper/PermissionsMask.php","line":131,"function":"getDirectoryContent","class":"OC\\Files\\Storage\\Common","type":"->"},{"function":"getDirectoryContent","class":"OC\\Files\\Storage\\Wrapper\\PermissionsMask","type":"->"},{"file":"/app/www/public/lib/private/Files/Cache/Scanner.php","line":457,"function":"iterator_to_array"},{"file":"/app/www/public/lib/private/Files/Cache/Scanner.php","line":414,"function":"handleChildren","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/app/www/public/lib/private/Files/Cache/Scanner.php","line":323,"function":"scanChildren","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/app/www/public/lib/private/Files/View.php","line":1386,"function":"scan","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/app/www/public/lib/private/Files/View.php","line":1422,"function":"getCacheEntry","class":"OC\\Files\\View","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":183,"function":"getFileInfo","class":"OC\\Files\\View","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Tree.php","line":95,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":971,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":1664,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":1649,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Server.php","line":398,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":21,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/app/www/public/remote.php","line":145,"args":["/config/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/app/www/public/lib/private/Files/Storage/Common.php","Line":752,"Hint":"Storage is temporarily not available"},"message":"Directory listing failed","exception":[],"CustomMessage":"Directory listing failed"},"id":"680bfd58d58ef"}

Example of permissions error:

{"reqId":"ftZ2lTJK1769lRNOUKud","level":3,"time":"2025-04-25T21:24:28+00:00","remoteAddr":"172.70.94.2","user":"imds","app":"PHP","method":"PROPFIND","url":"/remote.php/dav/files/imds/Backups/MENU%20Laptop%20Backup/%23MENU%20Laptop%20Backup/Pictures/TP%20Link%20AX50","message":"opendir(/ext_backups/MENU Laptop Backup/#MENU Laptop Backup/Pictures/TP Link AX50): Failed to open directory: Permission denied at /app/www/public/lib/private/Files/Storage/Local.php#130","userAgent":"Mozilla/5.0 (Windows) mirall/3.16.3 (build 20250416) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"31.0.4.1","data":{"app":"PHP"},"id":"680bfd8f02589"}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

I don't think it is

Web server / Reverse Proxy

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

I don't think this matters

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": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.0.9:444",
            "drive.sveserver.com"
        ],
        "dbtype": "mysql",
        "version": "31.0.4.1",
        "overwrite.cli.url": "https:\/\/drive.sveserver.com\/",
        "overwritehost": "drive.sveserver.com",
        "overwriteprotocol": "https",
        "default_phone_region": "RS",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpsecure": "tls",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "filelocking.enabled": "true",
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "upgrade.disable-web": true,
        "maintenance_window_start": 6
    }
}

Apps

The output of occ app:list (if possible).

Enabled:
  - activity: 4.0.0
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - circles: 31.0.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_external: 1.23.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
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - nextcloud_announcements: 3.0.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0-dev.1
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - support: 3.0.0
  - survey_client: 3.0.0
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - admin_audit: 1.21.0
  - encryption: 2.19.0
  - files_rightclick: 1.6.0 (installed 1.6.0)
  - maps: 1.5.0 (installed 1.3.1)
  - onlyoffice: 9.8.0 (installed 9.8.0)
  - richdocuments: 8.6.4 (installed 8.6.4)
  - suspicious_login: 9.0.1
  - twofactor_nextcloud_notification: 5.0.0
  - twofactor_totp: 13.0.0-dev.0
  - unsplash: 3.0.3 (installed 2.2.1)
  - updatenotification: 1.21.0 (installed 1.17.0)
  - user_ldap: 1.22.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Forgot to add that all of that ext storage are just shares that I have on that same server, nothing external.