nextcloud / nextcloud/server

[Bug]: Insufficient Storage Error does not name user (nextcloud.log, android, desktop)

Open
#37,519 6 comments 0 reactions 1 assignee View on GitHub

@joshtrichards is already working on this.

Since Sep 16, 2024.

2. developing 25-feedback bug feature: dav feature: logging
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.
Bug description

Situation: My user uses a shared folder "project" from user Sarah. Sarah's user does not have sufficient space.
my user tries to upload files from an android app or desktop app and gets an error message about insufficient space. Sadly, neither the apps nor the nextcloud.log on the server state that the "project" does not count towards the quota by my user. Only when uploading via the web UI the error message names Sarah's account.

Imagine a not too uncommon structure like this, which can add to the confusion which user a folder “belongs to”.

Project
├── Photos
│   ├── lightonflux
│   ├── sarah
│   └── steven12
└── Videos
    ├── lightonflux
    ├── sarah
    └── steven12
Steps to reproduce
  1. Create new user A with very little space
  2. Share folder from that user A with another user B that has ample space.
  3. The user B uploads files until the quota of user A is reached
Expected behavior

The error messages in the log file (nextcloud.log) and all apps should tell which user the storage/folder that has insufficient space belongs to.

Installation method

Community Manual installation with Archive

Nextcloud Server version

25

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Nginx

Database engine version

MySQL

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

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

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

No response

List of activated Apps
Not relevant.
Nextcloud Signing status

No response

Nextcloud Logs
# Note that the subfolder "lightonflux" actually belongs to another user, because the parent "Project" does as well. 


{"reqId":"nIS2Hh4ZCpNpMz","level":3,"time":"2023-03-31T12:04:28+00:00","remoteAddr":"IP_ADDR","user":"lightonflux","app":"webdav","method":"MOVE","url":"/remote.php/dav/uploads/lightonflux/567002973/.file","message":"Insufficient space in /Project/Videos/lightonflux, 27136230 required, 343725 available","userAgent":"Mozilla/5.0 (Linux) mirall/3.7.4git (Nextcloud, fedora-6.2.8-200.fc37.x86_64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"25.0.5.1","exception":{"Exception":"Sabre\\DAV\\Exception\\InsufficientStorage","Message":"Insufficient space in /Project/Videos/lightonflux, 27136230 required, 343725 available","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/QuotaPlugin.php","line":142,"function":"checkQuota","class":"OCA\\DAV\\Connector\\Sabre\\QuotaPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMove","class":"OCA\\DAV\\Connector\\Sabre\\QuotaPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":603,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":171,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/QuotaPlugin.php","Line":210,"message":"Insufficient space in /Project/Videos/lightonflux, 27136230 required, 343725 available","exception":{},"CustomMessage":"Insufficient space in /Project/Videos/lightonflux, 27136230 required, 343725 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.