nextcloud / nextcloud/server

[Bug]: Error Message twice "Unknown error during upload" instead of "Quota Exceeded"

Open
#51,447 1 comment 1 reaction 1 assignee View on GitHub

@susnux is already working on this.

Since Mar 14, 2025.

1. to develop 29-feedback 31-feedback bug feature: activity and notification feature: dav feature: files
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Bug description

Uploading a huge file to a (shared) folder in Files exceeding the quota of the folder owner leads to message "estimating time left" and results in two popup notifications "Unknown error during upload"

Image

Steps to reproduce
  1. Set quota for user a to 500 mb
  2. Share a folder "video" to user b
  3. upload a video with 800mb as user b to "video"
Expected behavior

Show a speaking notification like "Quota of User a's Folder Video exceeded"
Maybe user 'a' should get a notification about the incident.

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

None

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs
{"reqId":"X1YSxN4S1ld51PA5yU5r","level":3,"time":"2025-03-12T16:37:54+00:00","remoteAddr":"XXXX:XXX:ae1:2400:1037:d5ee:7530:8448","user":"USERNAME","app":"webdav","method":"PUT","url":"/remote.php/dav/uploads/USERNAME/web-file-upload-883c6733d56ccaf4/1","message":"Insufficient space in /PATH/..., 804103790 required, 260268321 available","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","version":"29.0.12.2","exception":{"Exception":"Sabre\\DAV\\Exception\\InsufficientStorage","Message":"Insufficient space in /PATH/..., 804103790 required, 260268321 available","Code":0,"Trace":[{"file":"/var/www/nextcloud/www/nextcloud/apps/dav/lib/Connector/Sabre/QuotaPlugin.php","line":103,"function":"checkQuota","class":"OCA\\DAV\\Connector\\Sabre\\QuotaPlugin","type":"->"},{"file":"/var/www/nextcloud/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"OCA\\DAV\\Connector\\Sabre\\QuotaPlugin","type":"->"},{"file":"/var/www/nextcloud/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1094,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":61,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/nextcloud/www/nextcloud/apps/dav/lib/Server.php","line":393,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/www/nextcloud/apps/dav/lib/Connector/Sabre/QuotaPlugin.php","Line":232,"message":"Insufficient space in /PATH/..., 804103790 required, 260268321 available","exception":{},"CustomMessage":"Insufficient space in /PATH/..., 804103790 required, 260268321 available"}}
Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.