You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wrong user quota in the user administration #38874
Previously, it was consistent to have a warning because I gave the account only 900GB.
I tried to put 1000GB, but nextcloud understood 1GB => I did put it back to unlimited.
Overall is also OK :
Note: It's an installation upgraded from release to release since multiple years.
Recently I upgraded from bullsseye to bookworm then the nextcloud.
Same thing for me, all quotas set to 10GB are 10.7GB after the update. Also i noticed that more space is used. Did something within the calculation change?
It looks like the value entered will be treated as binary based values (2^x) but the display will be the decimal based value (10^x). Also when editing the quota value, the input field becomes empty (at least in my installation with NC 27) even when the quota is saved.
For example:
10 GB can be interpreted as decimal based value which is 10*1000*1000*1000 Bytes = 10,000,000,000 Bytes.
However it can also be: 10*1024*1024*1024 Bytes = 10,737,418,240 Bytes.
When the resulting value is then displayed as "decimal based" GB it will be become "10,7 GB" even the user has entered "10 GB" as value.
I would suggest to interpret units like "GB" or "MB" always as binary based since many operating systems and applications see "1 GB" as 1*1024*1024*1024 and not as 1*1000*1000*1000 - even if this is not completely correct since the unit for binary based values is "GiB" and not "GB". If no unit is entered but only a plain number, then treat the number as it is but still display it as "KB", "MB", "GB" depending on how large the value is.
So when I input "10 GB" this should mean 10*1024*1024*1024 and when I input "1000000" this will mean 1000000 bytes or 976.56 KB (maybe we also do a internal rounding for a maximum of two digits for fractional parts).
About displaying the quota values:
When the quota is less then 1*1024 bytes: display as it is, e.g. "500".
When the quota is between 1*1024 and 1024*1024-1 bytes: display value/1024 as "KB", e.g. 2048 -> "2 KB" (2048/1024)
When quota is between 1024*1024 and 1024*1024*1024-1 bytes: display value/1024/1024 as "MB", e.g. 52428800 -> "50 MB" (52428800/1024/1024)
When quota is 1024*1024*1204 or more: display value/1024/1024/1024 as "GB", e.g. 10737418240 -> "10 GB" (10737418240/1024/1024/1024)
Reacted by kruegsche, HenrysCat, Pascal and Yoann PAGEAUD
Selecting 10 GB from drop down results in 10,7 GB.
Nextcloud will store the limit corectly, just the initial view update is wrong. So if you enter "50 GB", press enter and then save the user, it will display "unlimited" first - but when you refresh the user list, you will see "53,68 GB" as value (because 50 GB input will be interpreted as 50*1024*1024*1024 bytes but the display will then show the value devided as 50/1000/1000/1000.
Nextcloud will store the limit corectly, just the initial view update is wrong. So if you enter "50 GB", press enter and then save the user, it will display "unlimited" first - but when you refresh the user list, you will see "53,68 GB" as value (because 50 GB input will be interpreted as 50*1024*1024*1024 bytes but the display will then show the value devided as 50/1000/1000/1000.
You're right but it is not very intuitive ;-)
So this issue is not fixed yet, shouldn't it be marked open again? I have the same on 27.1.2. The quota in the user admin page is correct, but the quota on the files app is incorrect as per above descriptions.
Newest is 27.1.3, and it's fixed over here
Reacted by Dino, ThowZzy, Pascal, Arno Welzel and Rikki
Sorry, what's the current status of this issue? for me, if I enter 100 GB manually, it returns 93.1 GB. the only way to have it at 100 Gb is to enter 1073741824, i.e. 1024 * 1024 * 1024.
Sorry, what's the current status of this issue? for me, if I enter 100 GB manually, it returns 93.1 GB. the only way to have it at 100 Gb is to enter 1073741824, i.e. 1024 * 1024 * 1024.
This originally affected me too but was fixed for a long time, the version after the commit linked by Susnux when they closed this in December 15 2023 (just above your comment). I just tested and it's still fixed for me now too.
@RikkiBC I'm on the latest version, I've just installed it three days ago or so. From system info text file:
Nextcloud version: 30.0.0 - 30.0.0.14
And the Files app is at 2.0.0.
Ah! Might be worth opening another issue then. I'm on latest stable AIO version (Nextcloud 29.0.7) so if you're getting it now it's worth discussing in a new bug report separately as a regression I believe.
@susnux I can't see the video since I'm blind, but I believe you of course. How can we debug? It's a fresh installation, Apache, MariaDB, Ubuntu, performed with install script.
Activity
jalil-salame commentedon Jun 20, 2023
I can replicate this using the NixOS configuration for nextcloud27
LuXc-NL commentedon Jun 30, 2023
Encountered the same issue..
dgedgedge commentedon Jul 3, 2023
More or less same issue :
I have a user with 850GB of files.
If I try to put 1000GB then it goes to unlimited and / or 1GB...
I saw both.
Server configuration detail
Operating system: Linux 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64
Webserver: Apache (fpm-fcgi)
Database: mysql 10.11.3
PHP version: 8.2.7
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, exif, msgpack, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, memcached, Zend OPcache
Nextcloud version: 26.0.3 - 26.0.3.2
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Signing status
[]
List of activated apps
Enabled:
Disabled:
Configuration (config/config.php)
{
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
}
Cron Configuration: Array
(
[backgroundjobs_mode] => cron
[lastcron] => 1688364922
)
External storages: yes
External storage configuration
No mounts configured
Encryption: no
User-backends:
OC\User\Database
Talk configuration:
STUN servers
TURN servers
turn:*******- udp,tcp
Signaling servers (mode: default):
no custom server configured
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:109.0) Gecko/20100101 Firefox/114.0
Zeroth42 commentedon Jul 4, 2023
Is there a fix for that? I have the same problem.
albig commentedon Jul 4, 2023
1. Entering manually "50 GB" ...
2. ... results in "unlimited"
3. ... which is shown as "0" after saving.
Selecting 10 GB from drop down results in 10,7 GB.
Zeroth42 commentedon Jul 4, 2023
If you calculate, it is always 7.4% higher than that what you type in
dgedgedge commentedon Jul 5, 2023
I have it illimited :

Previously, it was consistent to have a warning because I gave the account only 900GB.
I tried to put 1000GB, but nextcloud understood 1GB => I did put it back to unlimited.
Overall is also OK :
Note: It's an installation upgraded from release to release since multiple years.
Recently I upgraded from bullsseye to bookworm then the nextcloud.
kurjajuur666 commentedon Jul 6, 2023
Got the same issue on a couple of Nextcloud 27 instances and an instance running 27.0.0 RC1.
e: same in 27.0.1rc1
florianwgnr commentedon Jul 10, 2023
Same thing for me, all quotas set to 10GB are 10.7GB after the update. Also i noticed that more space is used. Did something within the calculation change?
arnowelzel commentedon Jul 19, 2023
It looks like the value entered will be treated as binary based values (2^x) but the display will be the decimal based value (10^x). Also when editing the quota value, the input field becomes empty (at least in my installation with NC 27) even when the quota is saved.
For example:
10 GB can be interpreted as decimal based value which is
10*1000*1000*1000Bytes = 10,000,000,000 Bytes.However it can also be:
10*1024*1024*1024Bytes = 10,737,418,240 Bytes.When the resulting value is then displayed as "decimal based" GB it will be become "10,7 GB" even the user has entered "10 GB" as value.
I would suggest to interpret units like "GB" or "MB" always as binary based since many operating systems and applications see "1 GB" as
1*1024*1024*1024and not as1*1000*1000*1000- even if this is not completely correct since the unit for binary based values is "GiB" and not "GB". If no unit is entered but only a plain number, then treat the number as it is but still display it as "KB", "MB", "GB" depending on how large the value is.So when I input "10 GB" this should mean
10*1024*1024*1024and when I input "1000000" this will mean 1000000 bytes or 976.56 KB (maybe we also do a internal rounding for a maximum of two digits for fractional parts).About displaying the quota values:
1*1024bytes: display as it is, e.g. "500".1*1024and1024*1024-1bytes: displayvalue/1024as "KB", e.g. 2048 -> "2 KB" (2048/1024)1024*1024and1024*1024*1024-1bytes: displayvalue/1024/1024as "MB", e.g. 52428800 -> "50 MB" (52428800/1024/1024)1024*1024*1204or more: displayvalue/1024/1024/1024as "GB", e.g. 10737418240 -> "10 GB" (10737418240/1024/1024/1024)arnowelzel commentedon Jul 19, 2023
Nextcloud will store the limit corectly, just the initial view update is wrong. So if you enter "50 GB", press enter and then save the user, it will display "unlimited" first - but when you refresh the user list, you will see "53,68 GB" as value (because
50 GBinput will be interpreted as50*1024*1024*1024bytes but the display will then show the value devided as50/1000/1000/1000.microniko commentedon Jul 19, 2023
35 remaining items
ryester19 commentedon Oct 27, 2023
Newest is 27.1.3, and it's fixed over here
ryester19 commentedon Dec 12, 2023
The issue has come back for the user's sidebar when I upgraded to 28.0.0. The admin's user page is still displaying the quota correctly
AndyXheli commentedon Dec 12, 2023
Same mine is showing 180.4 GB used from 1.1TB
Admin portal shows 168 used from 1TB the admin portal is the correct one
susnux commentedon Dec 13, 2023
yes for the files app this is a regression of 32c1aeb
Menelion commentedon Oct 9, 2024
Sorry, what's the current status of this issue? for me, if I enter
100 GBmanually, it returns93.1 GB. the only way to have it at 100 Gb is to enter1073741824, i.e. 1024 * 1024 * 1024.RikkiBC commentedon Oct 9, 2024
This originally affected me too but was fixed for a long time, the version after the commit linked by Susnux when they closed this in December 15 2023 (just above your comment). I just tested and it's still fixed for me now too.
@Menelion - what version of Nextcloud are you on?
Menelion commentedon Oct 9, 2024
@RikkiBC I'm on the latest version, I've just installed it three days ago or so. From system info text file:
Nextcloud version: 30.0.0 - 30.0.0.14
And the Files app is at 2.0.0.
RikkiBC commentedon Oct 10, 2024
Ah! Might be worth opening another issue then. I'm on latest stable AIO version (Nextcloud 29.0.7) so if you're getting it now it's worth discussing in a new bug report separately as a regression I believe.
susnux commentedon Oct 10, 2024
I can not reproduce this issue is still fixed also for 30.
This then sounds more like your update process is broken, files is shipped with Nextcloud and in Nextcloud 30 the files version is 2.2.0.
Menelion commentedon Oct 10, 2024
Oh sorry, my bad, it's 2.2.0 actually:
susnux commentedon Oct 10, 2024
Latest 30.0.1 RC2:
Bildschirmaufnahme_20241010_155340.webm
I can not reproduce, maybe try to clear the cache. But this should already be fixed long ago.
Menelion commentedon Oct 10, 2024
@susnux I can't see the video since I'm blind, but I believe you of course. How can we debug? It's a fresh installation, Apache, MariaDB, Ubuntu, performed with install script.
susnux commentedon Oct 11, 2024
Basically what I am doing in the video is: