Skip to content
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

Quota: total is wrong calculated, thus relative is also not correct #10693

Closed
tobiasKaminsky opened this issue Aug 15, 2018 · 18 comments
Closed
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@tobiasKaminsky
Copy link
Member

I have 56G out of 221Gb used and quota shows me:
156G free
5G used
158G total
3.3% relative

When I fill up my device with 150G (using fallocate), I have 206 out of 221G used:
3,5G free
5G used
8 total
59.6% relative

Somehow total is not calculated correctly and thus "relative" is also wrong.
Disk usage was done via (df -h).

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #2017 (quota), #4572 (Wrong total quota limit with shared hosting), #10127 (Total space in quota-field shows wrong value), #4320 (Quota in UI is not correct), and #8050 (Quota issues ).

@JDemmerle
Copy link

@tobiasKaminsky
Does the bug still exist?
I got the same issue on NC 14/15.

@tobiasKaminsky
Copy link
Member Author

I think so:
with curl, I do get: (/ocs/v1.php/cloud/user)

"quota": {
        "free": 85381120000,
        "used": 6047777362,
        "total": 91428897362,
        "relative": 6.61,
        "quota": -3
      },

on df -h:

Total: 190G
Used: 100G
Free: 80G
used%: 56%

Now I allocate 60G:

"quota": {
        "free": 20956602368,
        "used": 6047777362,
        "total": 27004379730,
        "relative": 22.4,
        "quota": -3
      },

on df -h:

Total: 190G
Used: 160G
Free: 20G
used%: 90%

@JDemmerle
Copy link

Can you have a look at a specific user file(and really only the "file") dir and compare that with the value on the NC webinterface?

@tobiasKaminsky
Copy link
Member Author

My data is located at /srv/http/nc/data/tobi and this is 6G, which maps the "used" of quota.

"free": 85.381.120.000,
"used": 6.047.777.362,
"total": 91.428.897.362,

free seems also to match, but total should be 190G and not 90G, or?

@JDemmerle
Copy link

Whats the size of /srv/http/nc/data/tobi/files?
Files is the dir, which maps used of quota at the NC webinterface.

Yeah total should be 190G in my opinion..

@tobiasKaminsky
Copy link
Member Author

Whats the size of /srv/http/nc/data/tobi/files?

6G

@JDemmerle
Copy link

Is there a public share where everybody can upload stuff?
Maybe there are broken files.

@tobiasKaminsky
Copy link
Member Author

Not that I know…There was once a external mount, but this is not there anylonger.

@stale
Copy link

stale bot commented Jun 5, 2019

This issue has been automatically marked as stale because it has not had recent activity and it seems to be missing some essential informations. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Ticket or PR with no recent activity label Jun 5, 2019
@tobiasKaminsky
Copy link
Member Author

Go away…stale bot… ;-)

@stale stale bot removed the stale Ticket or PR with no recent activity label Jun 5, 2019
@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@tobiasKaminsky tobiasKaminsky added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Nov 9, 2020
@szaimen
Copy link
Contributor

szaimen commented Jan 9, 2023

Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!

@szaimen szaimen added needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 1. to develop Accepted and waiting to be taken care of labels Jan 9, 2023
@devz3r0
Copy link

devz3r0 commented Jan 9, 2023

I am using Nextcloud 24.0.8 the User is only occupying 114MB after deletion, emptying the trash, however the quota is still displaying 5,1 GB in use.

@ThisIsMe-TIM
Copy link

My nextcloud is 25.0.2 and calculation is ok now for me

@szaimen
Copy link
Contributor

szaimen commented Jan 12, 2023

Thanks for verifying!

@szaimen szaimen closed this as completed Jan 12, 2023
@tflidd
Copy link
Contributor

tflidd commented Jan 22, 2023

There are still 2 users on the forum with this issue:
https://help.nextcloud.com/t/wrong-quota-calculation/152702

@szaimen
Copy link
Contributor

szaimen commented Jan 22, 2023

Hi, please open a new issue about this with up-to-date information. Thanks a lot!

@devz3r0
Copy link

devz3r0 commented Jan 27, 2023

Done here: #36403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

8 participants