Disk space of a user not being calculated [SOLVED]
Disk space of a user not being calculated
Hello,
one of the users on the server is a site we run internally. Now, I know that the site has a lot of content, at least a gigabye of content. However, it is not showing up (the used space). As you can see in the attachemnt, the webspace says 0, but as you can see, the websitehas generated almost 70 GB of traffic.
And this is not limited to this site/users, no. Webspace is not being calculated on ANY user account. Webmail and database space is, not not webspace....help?
one of the users on the server is a site we run internally. Now, I know that the site has a lot of content, at least a gigabye of content. However, it is not showing up (the used space). As you can see in the attachemnt, the webspace says 0, but as you can see, the websitehas generated almost 70 GB of traffic.
And this is not limited to this site/users, no. Webspace is not being calculated on ANY user account. Webmail and database space is, not not webspace....help?
Re: Disk space of a user not being calculated
Hello,
Did any errors occur during installation? Especially quota related errors?
What does the console command "repquota /" say?
Did any errors occur during installation? Especially quota related errors?
What does the console command "repquota /" say?
Mit freundlichen Grüßen / Best regards
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: Disk space of a user not being calculated
There were no errors, at least, nothing that I know of, since I did not install the OS and KeyHelp. (running on a Hetzer cloud server, with Ubuntu 18.04)
I calculcated all of the user space of all users, and it totals to aprox 7.5 GB. But in the dashboard, it says almost 30 GB used, while on the right of that, it says 7.57 of consumed disk space...
And repquota says..
root@wm:~# repquota /
*** Report for user quotas on device /dev/sda1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 2148764 0 0 51009 0 0
daemon -- 64 0 0 4 0 0
man -- 1428 0 0 146 0 0
www-data -- 20 0 0 5 0 0
syslog -- 5472 0 0 6 0 0
_apt -- 44 0 0 4 0 0
lxd -- 4 0 0 1 0 0
landscape -- 8 0 0 3 0 0
pollinate -- 4 0 0 2 0 0
keyhelp -- 32024 0 0 10345 0 0
bind -- 12 0 0 3 0 0
mysql -- 184444 0 0 236 0 0
ftp -- 4 0 0 1 0 0
postfix -- 96 0 0 54 0 0
vmail -- 180 0 0 38 0 0
opendkim -- 16 0 0 6 0 0
clamav -- 234184 0 0 9 0 0
postgrey -- 10332 0 0 8 0 0
debian-spamd -- 24 0 0 6 0 0
amavis -- 64 0 0 22 0 0
#62583 -- 4 0 0 2 0 0
Re: Disk space of a user not being calculated
There is no quota set up for your KeyHelp users.
Try to set the quota manually via console and have a look, if there are any errors. This is the command to set the quota to 5 GB. Replace the <USERNAME> with the name of your faulty user.
If there aren't any errors, run the following command, to trigger disk space calculation.
Try to set the quota manually via console and have a look, if there are any errors. This is the command to set the quota to 5 GB. Replace the <USERNAME> with the name of your faulty user.
Code: Select all
setquota -u '<USERNAME>' '5242880' '5242880' '873813' '873813' /
Code: Select all
php /home/keyhelp/www/keyhelp/cronjob/mastercronjob.php --force-diskspace
Mit freundlichen Grüßen / Best regards
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: Disk space of a user not being calculated
Did that. Nothing changed. In the console, it says (for every user)Alexander wrote: ↑Fri 17. May 2019, 09:23 There is no quota set up for your KeyHelp users.
Try to set the quota manually via console and have a look, if there are any errors. This is the command to set the quota to 5 GB. Replace the <USERNAME> with the name of your faulty user.
If there aren't any errors, run the following command, to trigger disk space calculation.Code: Select all
setquota -u '<USERNAME>' '5242880' '5242880' '873813' '873813' /
Code: Select all
php /home/keyhelp/www/keyhelp/cronjob/mastercronjob.php --force-diskspace
quotatool: Error while detecting kernel quota version: No such process
And it says it failed to collect webspace data
Re: Disk space of a user not being calculated
Nobody? ;_;
Re: Disk space of a user not being calculated
Quota is running?
Can you please post something about your system specs. OS, virtualization (if any) and so on.
Code: Select all
service quota status
Mit freundlichen Grüßen / Best regards
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: Disk space of a user not being calculated
After running that command, I get that, posted in the attachment.Alexander wrote: ↑Wed 22. May 2019, 15:54 Quota is running?
Can you please post something about your system specs. OS, virtualization (if any) and so on.Code: Select all
service quota status
The server is running Ubuntu 18.04.2 LTS. The server has 32GB of RAM, 240 GB storage (no virtualization, just one partition/drive), 32 GB of RAM, and 8 vCPUs.
To be more precise, it is a cloud server, from Hetzner. That is all I know.
Re: Disk space of a user not being calculated
So then, can you start quota with the following?
Code: Select all
service quota start
Mit freundlichen Grüßen / Best regards
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: Disk space of a user not being calculated
Hello...Alexander wrote: ↑Thu 23. May 2019, 14:19 So then, can you start quota with the following?
Code: Select all
service quota start
First, sorry for the long absence.
I did try that, however, still no success. I am still getting the same error, ERROR --> webspace: failed to collect data, for every user. I have ran the command you suggested, and then checked the status again. Here is what it shows (attachment).
I also manually started the webspace checking service on keyhelp, but with no luck.
Re: Disk space of a user not being calculated
I also did this...Alexander wrote: ↑Thu 23. May 2019, 14:19 So then, can you start quota with the following?
Code: Select all
service quota start
Re: Disk space of a user not being calculated
Hey,
First thing:
Then follow the article:
https://blog.wydler.eu/2018/12/02/keyhe ... ert-nicht/
This based also on an cloud server from hetzner.
@Alex
könnte das Installationskript dem entsprechend erweitert werden, dass die Ausgabe bzw. Fehler von quotaon -avug abgefangen wird?!
/Dani
An important information.To be more precise, it is a cloud server, from Hetzner. That is all I know.
First thing:
Code: Select all
service quota stop
https://blog.wydler.eu/2018/12/02/keyhe ... ert-nicht/
This based also on an cloud server from hetzner.
@Alex
könnte das Installationskript dem entsprechend erweitert werden, dass die Ausgabe bzw. Fehler von quotaon -avug abgefangen wird?!
/Dani
Re: Disk space of a user not being calculated [SOLVED]
Welp, this ended up working for me. Thanks y'all <3Blackmoon wrote: ↑Sun 2. Jun 2019, 23:17 Hey,An important information.To be more precise, it is a cloud server, from Hetzner. That is all I know.
First thing:Then follow the article:Code: Select all
service quota stop
https://blog.wydler.eu/2018/12/02/keyhe ... ert-nicht/
This based also on an cloud server from hetzner.
@Alex
könnte das Installationskript dem entsprechend erweitert werden, dass die Ausgabe bzw. Fehler von quotaon -avug abgefangen wird?!
/Dani
Re: Disk space of a user not being calculated
For those wondering, this also works at Digital Ocean
Stop the service
Install linux-image-generic (keep existing files)
Activate Quota
Reboot the server
Check if the statistics have been updated
If it has not been updated, run the following code:
Stop the service
Code: Select all
service quota stop
Code: Select all
apt-get -y install linux-image-generic
Code: Select all
quotaon -avug
Check if the statistics have been updated
Code: Select all
repquota /
Code: Select all
php /home/keyhelp/www/keyhelp/cronjob/mastercronjob.php --force-diskspace