-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: User Quota can not be changed - revert back to previous value #34961
Comments
Same issue here!
|
For me only 1 user is affected with the 0 Bytes issue. All other instances are affected with the problem that the quota can not be increased at the moment. I also recognized this immediatelly after the update from 24.0.6 to 24.0.7. |
Reproduced on my nextcloudpi installation (update via web frontend from 24.0.6 to 24.0.7). Three users with data > 500 MB are affected. It is not possible to increase the quota via CLI. |
As far as I know there is no possibility to do this via CLI. I can not find anything regarding this from the admin manual. |
There is one, but it doesn't work. If I try to set the quota to 10 GB: It shows me the correct value afterwards: But it's not being applied, as the WebUI still shows me 0 B.. EDIT: for the moment, I actually managed to give unlimited quota to my users.
Hopefully, it will stay like this. |
Thanks for the info, I was not aware about all the available option parameters and values especially the arguments how to use it. Thanks for the note with steps as workaround to apply "unlimited" quota. This worked also on my side. |
I updated to NC 24.0.7 (from .5, was working there, running on pi3 with Raspbian, Apache2, php 7.4, MariaDB) and users who had 5 GB quota were automatically changed to 1 GB. Increasing not possible, but setting to unlimited works directly. |
I was also affected with NC 24.0.7. Bug persists after upgrading to 25.0.1. Unabled to upload files. Makes collaborating impossible. |
NC is running on Debian GNU/Linux 11 (bullseye) with kernel 5.10.0-19-686-pae here (yes, that's still a 32 bit system). DB is MariaDB 10.5.15, PHP 7.4.30 (both from Debian). Webserver is lighttpd/1.4.59. |
Same here |
I always do the same mistake and don't take a snapshot/backup of my Nextcloud VM - this will be the last time, as this issue here is quite serious and unacceptable (can be compared with the update which broke creation/modification date of synched files). I hope everyone does the same and encourage to take the time to do so.. |
well I didn't have a real backup (just doing this weekly and I tried not to loose all changes since Sunday) edit: on reverting back to 24.0.6 the quota error persists and changing quotas in web interface is still buggy, but changing per CLI worked after some attempts (I've tried to edit the quota directly in the database, but didn't find the right entries, maybe someone knows where they are hiding?) |
This is another thing I just found out - NC drops 32bit support, which means I need to migrate my whole installation at any point next year - at least they came back to their senses and re-added support for 25.0.2 (1st december), even if it's just for another year..
It's here:
|
thats very interesting. EDIT: ok, it seems it needs a cron.php run to shrink the size another bug (since NC24.0.?) is, that my used space is shrinking and after occ filescan it showes up correctly and then after a few days it's shrinking again (from about 350GB to 30GB) (maybe it's a known bug, but I did not search for it) |
Interesting.. so it is the cron job who seems to mess with the quotas
Don't worry.. have the same problem. I've got 65GB of files for a user and after a specific event (dunno which, probably after updates) all of a sudden, it's 30GB. |
I just tried to reproduce and I am not able to. Increasing the quota works for me. 2022-11-08-183331.mp4 |
And decreasing? |
Decreasing works as well.
This is not a new instance. It was updated from 24.0.5 to 24.0.6 and now 24.0.7 However the user I am testing with is indeed newly created. |
Okay I see. I can reproduce now with a user that is already present and not new. |
I think a fresh Installation with 64bit OS and PHP and NC26 (after all bugs 🤣) would be neccesary for me. I've updated my Version since the fork of owncloud |
Steps to reproduce:
=> works for me Do I need a 32 bit system to reproduce this ? The original report states that it's 64 bit (checkbox). Why would this apply only to new users and not old ones ? For those affected, please run these for both affected and unaffected user:
For me those queries return the following info:
For those where occ is not working for setting the quota, can you try updating it manually in the oc_preferences table ? |
Well, I tried the adaptations in the fix and of course, it didn't solve the issue with false quota since I'm still on 32bit installation. |
for 32-bits, you could try reverting #34032 |
I have compared the files of the current Nextcloud instance where I´m having the issue on a 32 bit machine.
File comparison "OC_Helper.php" delivers the following differences: The changes from line 98 (comment), 107, 134 are already persists on my NC instance as you can see from the comparison: I´m still having problems setting the quota on the 32 bit machine as expected.
|
@PVince81: With reverting the changes of the file OC_Helper.php at the lines 107 and 134 it is again possible on a 32 bit machine to change the quota as expected. There is only the time delay to take effect of the new value directly after the upcomming cron has been executed. OC_Helper.php
On my system I can confirm to solve the quota issue on a 32 bit einvironmnent of reverting changes from #34032. Since the v24 is not deprecated on 32 bit einvironmnents, is it planned to fix this issue officially in an upcoming patch release like v24.0.8? |
NC 25 revert for 32-bits: #35335 |
I'm sorry.. but as for me, it didn't help at all: When I choose a quota of 1GB, it sets 1GB in database. Maybe I forgot to change something, but did as you did in your description... @luddinho: could you please show me your OC_Helper.php if possible? |
@Dee-san there is no guarantee that values higher than 4 GB will work correctly on 32-bit systems. It is already known that various code paths are causing trouble with 32-bit systems (ex: negative file sizes in the database). The revert was only intended to make Nextcloud behave like it has in the previous version (ex: 24.0.6) before the regression. It is likely that this issue already existed before and would require further research. |
I can confirm that this issue exists right after I updated from 24.0.6 to 24.0.7 - I logged into my account only to find out that I'm refused to upload new files because of quota exhaustion. (I had quota turned on for all my accounts). That's also when I found out about corrupt quota values in GUI ("0 B") and database ("?", " B", etc.) |
If it helps, yes sure! All my changes based on c39caba |
Still broken in 25.0.2. The user disk quota interface is broken. |
@bcostacurta please raise a separate issue the issue that we fixed in this ticket was related to quota caching and only affected the web UI back when fixing quota we didn't observe such issue like yours, so we'll need more details about your setup => in a new ticket thanks |
Thanks. Is there an "how to create an issue ticket" ? Meaning which useful infos, setup ..etc.. to put in an issue ticket. Thanks. |
Hi PVince81, I'm sorry, but OP (and also I) were unable to set the quota of existing users at all - it was not not only a GUI problem, but it simply wouldn't apply the value correctly (see https://github.com/nextcloud/server/issues/34961#issuecomment-1329809760) |
Should this issue #34961 be re-opened ? In fact .. it seems even getting worst from previous v25.0.1 as now the current are no more display at all. Bye |
I've similar problems, 25.0.2 seems fully broken on my raspberry 32bit. 24.0.8 works fine (24.0.7 was broken too) |
regarding 32-bits, see #35734 which might help |
the same Problem on my nextcoud 25.0.2 on a raspiberry 4B too:
|
didn't solve the problem; even with 25.0.3, issue not solved |
Confirmed.
Same here.
User disk quota is still broken under 25.0.3.
In fact it works only temporarly just after the upgrade to 25.0.3
Once you click on the user quota setup the value is broken, then the user is again out of space, and cannot work anymore.
Bruno
…------- Original Message -------
Le jeudi 19 janvier 2023 à 19:59, Dee-san ***@***.***> a écrit :
> regarding 32-bits, see [#35734](#35734) which might help
didn't solve the issue; even with 25.0.3, issue not solved
—
Reply to this email directly, [view it on GitHub](#34961 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/A34XIBCZGFJJUEZD4D3YK63WTGFILANCNFSM6AAAAAARWQD33Y).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
It seems that the admin web interface for the user disk quota unfortunately breaks it.
I used the following workaround via the command line to repair it :
sudo -u www-data php /var/www/nextcloud/occ user:setting bruno files quota 10gb
which reset correctly the disk quota for user 'bruno'
Bruno
…------- Original Message -------
Le jeudi 19 janvier 2023 à 20:45, Bruno Costacurta ***@***.***> a écrit :
Confirmed.
Same here.
User disk quota is still broken under 25.0.3.
In fact it works only temporarly just after the upgrade to 25.0.3
Once you click on the user quota setup the value is broken, then the user is again out of space, and cannot work anymore.
Bruno
------- Original Message -------
Le jeudi 19 janvier 2023 à 19:59, Dee-san ***@***.***> a écrit :
>> regarding 32-bits, see [#35734](#35734) which might help
>
> didn't solve the issue; even with 25.0.3, issue not solved
>
> —
> Reply to this email directly, [view it on GitHub](#34961 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/A34XIBCZGFJJUEZD4D3YK63WTGFILANCNFSM6AAAAAARWQD33Y).
> You are receiving this because you were mentioned.Message ID: ***@***.***>
|
regardless of 32 bits, please all check that you also don't have leftover unencrypted_size as there's a known issue with this where quota is reported wrongly: #25283 (comment) |
Wow, you are right! So yeah; the interface seems to break the quota |
Unfortunately, I still have the problem. I was able to validate this behavior by always changing the default value. If the user only has a local login, a newly set value is not overwritten. I could also report this to Enterprise support, but I think it fits in here quite well |
I found the reason for the issue. It's because there is a user quota in the LDAP configuration, and strangely, its priority is the highest. The solution to this problem is simple - just keep it empty. |
This configuration option is to have a default value for quota from LDAP. Once you set it, all LDAP users appear to have a quota set in LDAP, and quotas from LDAP have the priority over quotas from Nextcloud. |
Hi, same on a 27.5.1 where I have no access to occ nor the database (IONOS managed Nextcloud). I can see this issue is closed, so my question is: what can be done to get user quota as wished? |
Bug description
When trying to change the quota of an existing user the value revert back to the previous one after confirming the changes and refresh the user settings page.
Steps to reproduce
If the value will be modified by decrasing it, the new value will be stored.
But after that it is not possible to increase the value again.
It is only possible to decrease the value until it becomes zero "0" Bytes.
Create a new user:
With a new created user there seems to be no problem either by increasing or decreasing the quota value.
Expected behavior
Changing the user quota shall be possible in both direction, independent of decreasing or increasing.
Installation method
Official All-in-One appliance
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
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. 22.2.3 to 22.2.4)
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
The text was updated successfully, but these errors were encountered: