nextcloud / nextcloud/server

[Bug]: Error while getting quota info, using root quota

Open
#55,115 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 30-feedback bug feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

After the update from 30.0.14 to 30.0.15 I've started to observe the warning Error while getting quota info, using root quota in the logs.

Steps to reproduce

I see the warning Error while getting quota info, using root quota in the logs.

Expected behavior

No warning

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

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

Updated from a MINOR version (ex. 32.0.1 to 32.0.2)

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":"****","level":2,"time":"2025-09-13T20:29:16+03:00","remoteAddr":"****","user":"username","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/username/","message":"Error while getting quota info, using root quota","userAgent":"Mozilla/5.0 (Windows) mirall/3.17.1 (build 20250818) (Nextcloud, windows-10.0.22631 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"30.0.15.1","clientReqId":"******","exception":{"Exception":"OCP\\Files\\StorageNotAvailableException","Message":"File by id 859947 not found","Code":0,"Trace":[{"file":"/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Jail.php","line":321,"function":"free_space","class":"OC\\Files\\Storage\\FailedStorage","type":"->"},{"file":"/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":316,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Jail","type":"->"},{"file":"/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":316,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/www/html/nextcloud/lib/private/legacy/OC_Helper.php","line":514,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":302,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":764,"function":"getQuotaInfo","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php","line":95,"function":"Sabre\\DAV\\{closure}","class":"Sabre\\DAV\\CorePlugin","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":763,"function":"handle","class":"Sabre\\DAV\\PropFind","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"propFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1052,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":984,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/apps/dav/lib/Server.php","line":379,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/www/html/nextcloud/apps/dav/appinfo/v2/remote.php","line":19,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/remote.php","line":146,"args":["/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/www/html/nextcloud/lib/private/Files/Storage/FailedStorage.php","Line":134,"Hint":"Storage is temporarily not available","Previous":{"Exception":"OCP\\Files\\NotFoundException","Message":"File by id 859947 not found","Code":0,"Trace":[{"file":"/www/html/nextcloud/apps/files_sharing/lib/SharedStorage.php","line":559,"function":"init","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":479,"function":"getWrapperStorage","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/www/html/nextcloud/apps/files_sharing/lib/SharedStorage.php","line":219,"function":"instanceOfStorage","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":479,"function":"instanceOfStorage","class":"OCA\\Files_Sharing\\SharedStorage","type":"->"},{"file":"/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":479,"function":"instanceOfStorage","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/www/html/nextcloud/lib/private/legacy/OC_Helper.php","line":509,"function":"instanceOfStorage","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":302,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":764,"function":"getQuotaInfo","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php","line":95,"function":"Sabre\\DAV\\{closure}","class":"Sabre\\DAV\\CorePlugin","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":763,"function":"handle","class":"Sabre\\DAV\\PropFind","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"propFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1052,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":984,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/apps/dav/lib/Server.php","line":379,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/www/html/nextcloud/apps/dav/appinfo/v2/remote.php","line":19,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/www/html/nextcloud/remote.php","line":146,"args":["/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/www/html/nextcloud/apps/files_sharing/lib/SharedStorage.php","Line":153},"message":"Error while getting quota info, using root quota","exception":[],"CustomMessage":"Error while getting quota info, using root quota"},"id":"68c5bdc2e31f9"}
Additional info

I use groupfolders app.

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.

Research direction

Start with apps/files_sharing/lib/SharedStorage.php around lines 153 and 559, then follow the quota path through apps/dav/lib/Connector/Sabre/Directory.php line 302 and lib/private/legacy/OC_Helper.php lines 509-514. Use the reported File by id 859947 failure and the attached stack trace to investigate the warning after the 30.0.14 to 30.0.15 update; done means the quota request no longer emits this warning for the affected shared storage.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.