Nextcloud shows wrong quota percentage

How to solve a problem that causes Nextcloud to report inaccurate amount of free space.

80 views
d

By. Jacob

Edited: 2023-09-10 20:40

The solution to this problem is to pick a finite quota for your users. E.g. 5 TB.

The problem: Nextcloud may sometimes report an inaccurate amount of available space on the user overview page. It does not report an exact number, but rather it shows a visual bar indicating that space is running out. I am not sure whether this has any actual affect or it is just a visual mishap. Before I found the solution the problem had actually been bothering me for several months.

I initially suspected this happened when I was resizing the volume or switching to s3fs storage for the data directory, but this does not seem to have anything to do with it.

Note. Doing a re-scan of all my users files did not fix the problem. E.g:

sudo -u www-data php occ files:scan --all

Then someone suggested I simply pick a storage limit for my users instead of leaving the setting on Unlimited, and — bam! — the problem went away. Now the Quota indicator appears to show an accurate amount of used and available space left for all users.

  1. Quota percent usage is incorrect #39465 - github.com

Tell us what you think:

  1. You need to route ocm-provider requests to index.php to have the error go away. The error started showing after I upgraded my Nextcloud server some time ago, and I have not had time to fix it until now.
  2. The Nextcloud notes app is worth using, because it stores notes in a logical and natural way, secures your notes and ensures you will never lose access to them.
  3. This can happen when the Redis environment is configured incorrectly, and/or when the redis-server.sock file has the wrong permissions.
  4. How to toggle maintenance mode on or off for your Nextcloud server
  5. Prevent your Nextcloud data directory from being accessible from the internet.

More in: Nextcloud