NC user total disk usage stuck

Support intro

Total space consumption by a user is stuck on a single value. It has remained so since some files were uploaded initially, and those were accounted for, then the files were removed complely but the usage never got updated. Adding more files hasn’t made a difference. The per-directory usage value in files is correct.

The NC app is showing the same incorrect usage value.

I’m using server-side encryption with the default OC_DEFAULT_MODULE.

At the same time, data disk usage in the system indo panel in NC admin is correct.

Nextcloud version (eg, 20.0.5): 25.0.4 & 26.0.0 (upgrade didn’t fix it)
Operating system and version (eg, Ubuntu 20.04): Debian 11 bookworm
Apache or nginx version (eg, Apache 2.4.25): 2.4
PHP version (eg, 7.4): 8.1

The issue you are facing:
A user’s disk usage show in the app or the browser is incorrect, inadvertently stuck on a single value. No amount of new files / files deleted changes the value at all.

Is this the first time you’ve seen this error? Y

Log outputs are to the order of several MBs in size so omitting.

Please close, it’s a bug related to encryption, described here: Nextcloud displays wrong used storage · Issue #25283 · nextcloud/server · GitHub
Fix involves running an sql update (see github) or ‘sudo -Eu www-data php /var/www/nextcloud/occ maintenance:repair’, introduced in NC 26.0.0.

2 Likes