nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.15k stars 3.94k forks source link

[Bug]: Unable to create folders / files as admin -> StorageInvalidException #46318

Closed himpierre closed 15 hours ago

himpierre commented 3 days ago

⚠️ This issue respects the following points: ⚠️

Bug description

Hello Devs!

I cannot create folders / files anymore as admin. The button to do that is greyed out. Logfile says:

"reqId":"rwqrHznewgRmdVSOI9Hx","level":3,"time":"2024-07-05T10:50:32+02:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"admin","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/admin/","message":"Sabre\\HTTP\\ClientHttpException: Unauthorized","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"28.0.7.4","exception":{"Exception":"OCP\\Files\\StorageInvalidException","Message":"Sabre\\HTTP\\ClientHttpException: Unauthorized"

This is very odd. I don't know what is preventing me from doing so. It can't be a quota limit because the user in question (admin) has no quote set. It's unlimited. Right the user uses 1.3TB.

Steps to reproduce

  1. Login as admin
  2. Try to create a folder
  3. Not possible / Button is grey

Expected behavior

Admin should be able to create folders / files

Installation method

Community Manual installation with Archive

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 28.0.1 to 28.0.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

Configuration report

{
    "system": {
        "encryption_skip_signature_check": true,
        "skeletondirectory": "",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Berlin",
        "loglevel": 2,
        "lost_password_link": "disabled",
        "log_rotate_size": "0",
        "trusted_domains": [
            "filecloud.syseleven.net"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/mydomain",
        "dbtype": "mysql",
        "version": "28.0.7.4",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "profile.enabled": false,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "updater.release.channel": "stable",
        "app_install_overwrite": [
            "spreed",
            "calendar"
        ],
        "mysql.utf8mb4": true,
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false,
        "allow_user_to_change_display_name": false,
        "defaultapp": "files",
        "maintenance": false,
        "theme": ""
    }
}

``

List of activated Apps

Enabled:
  - activity: 2.20.0
  - bruteforcesettings: 2.8.0
  - calendar: 4.7.6
  - cloud_federation_api: 1.11.0
  - comments: 1.18.0
  - contacts: 5.5.3
  - contactsinteraction: 1.9.0
  - dashboard: 7.8.0
  - dav: 1.29.2
  - encryption: 2.16.0
  - federatedfilesharing: 1.18.0
  - federation: 1.18.0
  - files: 2.0.0
  - files_accesscontrol: 1.18.1
  - files_external: 1.20.0
  - files_pdfviewer: 2.9.0
  - files_reminders: 1.1.0
  - files_sharing: 1.20.0
  - files_trashbin: 1.18.0
  - files_versions: 1.21.0
  - firstrunwizard: 2.17.0
  - forms: 4.2.4
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - nextcloud_announcements: 1.17.0
  - notes: 4.10.0
  - notifications: 2.16.0
  - oauth2: 1.16.3
  - password_policy: 1.18.0
  - passwords: 2024.5.20
  - photos: 2.4.0
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - recommendations: 2.0.0
  - related_resources: 1.3.0
  - richdocuments: 8.3.8
  - richdocumentscode: 24.4.402
  - serverinfo: 1.18.0
  - settings: 1.10.1
  - sharebymail: 1.18.0
  - support: 1.11.1
  - survey_client: 1.16.0
  - systemtags: 1.18.0
  - tasks: 0.16.0
  - text: 3.9.2
  - theming: 2.3.0
  - twofactor_backupcodes: 1.17.0
  - updatenotification: 1.18.0
  - user_ldap: 1.19.0
  - user_status: 1.8.1
  - viewer: 2.2.0
  - weather_status: 1.8.0
  - workflowengine: 2.10.0
Disabled:
  - admin_audit: 1.18.0
  - breezedark: 28.0.0 (installed 28.0.0)
  - circles: 28.0.0 (installed 25.0.0)
  - files_antivirus: 5.5.5 (installed 5.5.5)
  - files_readmemd: 2.0.1 (installed 2.0.1)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - passman: 2.4.9 (installed 2.4.9)
  - spreed: 18.0.8 (installed 18.0.8)
  - suspicious_login: 6.0.0
  - twofactor_totp: 10.0.0-beta.2

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

"reqId":"rwqrHznewgRmdVSOI9Hx","level":3,"time":"2024-07-05T10:50:32+02:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"admin","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/admin/","message":"Sabre\\HTTP\\ClientHttpException: Unauthorized","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"28.0.7.4","exception":{"Exception":"OCP\\Files\\StorageInvalidException","Message":"Sabre\\HTTP\\ClientHttpException: Unauthorized"


### Additional info

_No response_
joshtrichards commented 3 days ago

This error suggests a problem with a WebDAV based External Storage mount that you have configured. Does that ring a bell?

himpierre commented 3 days ago

Thanks for your answer. It's a nfs mount, yes. Strange thing is, the shares owned by admin are still writable by the users. It seems only the "root" directory of the admin is affected.

Am 5. Juli 2024 18:18:15 MESZ schrieb Josh @.***>:

This error suggests a problem with a WebDAV based External Storage mount that you have configured. Does that ring a bell?

himpierre commented 15 hours ago

Problem solved. Someone did create an external storage which was unreachable. This led to an empty folder overview. This is maybe the real issue here. I think it would have been better if only the missconfigured storage hasn't shown up not every other folder with it together.

cheers! t.