Einen Überblick über das Administrationstool KeyHelp der Keyweb AG und dessen Download gibt es auf https://www.keyhelp.de

Dieses Forum soll es interessierten Benutzern ermöglichen, sich über KeyHelp auszutauschen und Hilfe bei Problemen zu finden.

Disk space of a user not being calculated  [SOLVED]

You found a bug? Please tell us about.
Antworten
webmedia
Beiträge: 21
Registriert: Di 7. Mai 2019, 11:37

Disk space of a user not being calculated

Beitrag von webmedia » Do 16. Mai 2019, 15:11

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?
Dateianhänge
Annotation 2019-05-16 150900.jpg
Benutzeravatar
Alexander
Keyweb AG
Beiträge: 1270
Registriert: Mi 20. Jan 2016, 02:23

Re: Disk space of a user not being calculated

Beitrag von Alexander » Do 16. Mai 2019, 16:41

Hello,

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
**************************************************************
webmedia
Beiträge: 21
Registriert: Di 7. Mai 2019, 11:37

Re: Disk space of a user not being calculated

Beitrag von webmedia » Do 16. Mai 2019, 17:10

Alexander hat geschrieben:
Do 16. Mai 2019, 16:41
Hello,

Did any errors occur during installation? Especially quota related errors?

What does the console command "repquota /" say?
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
Dateianhänge
Annotation 2019-05-16 170832.jpg
Benutzeravatar
Alexander
Keyweb AG
Beiträge: 1270
Registriert: Mi 20. Jan 2016, 02:23

Re: Disk space of a user not being calculated

Beitrag von Alexander » Fr 17. Mai 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.

Code: Alles auswählen

setquota -u '<USERNAME>' '5242880' '5242880' '873813' '873813' /
If there aren't any errors, run the following command, to trigger disk space calculation.

Code: Alles auswählen

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
**************************************************************
webmedia
Beiträge: 21
Registriert: Di 7. Mai 2019, 11:37

Re: Disk space of a user not being calculated

Beitrag von webmedia » Fr 17. Mai 2019, 14:23

Alexander hat geschrieben:
Fr 17. Mai 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.

Code: Alles auswählen

setquota -u '<USERNAME>' '5242880' '5242880' '873813' '873813' /
If there aren't any errors, run the following command, to trigger disk space calculation.

Code: Alles auswählen

php /home/keyhelp/www/keyhelp/cronjob/mastercronjob.php --force-diskspace
Did that. Nothing changed. In the console, it says (for every user)
quotatool: Error while detecting kernel quota version: No such process
And it says it failed to collect webspace data
Dateianhänge
webspace.jpg
webmedia
Beiträge: 21
Registriert: Di 7. Mai 2019, 11:37

Re: Disk space of a user not being calculated

Beitrag von webmedia » Mi 22. Mai 2019, 11:29

Nobody? ;_; :(
Benutzeravatar
Alexander
Keyweb AG
Beiträge: 1270
Registriert: Mi 20. Jan 2016, 02:23

Re: Disk space of a user not being calculated

Beitrag von Alexander » Mi 22. Mai 2019, 15:54

Quota is running?

Code: Alles auswählen

service quota status
Can you please post something about your system specs. OS, virtualization (if any) and so on.
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
**************************************************************
webmedia
Beiträge: 21
Registriert: Di 7. Mai 2019, 11:37

Re: Disk space of a user not being calculated

Beitrag von webmedia » Do 23. Mai 2019, 14:07

Alexander hat geschrieben:
Mi 22. Mai 2019, 15:54
Quota is running?

Code: Alles auswählen

service quota status
Can you please post something about your system specs. OS, virtualization (if any) and so on.
After running that command, I get that, posted in the attachment.
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.
Dateianhänge
screen.jpg
Benutzeravatar
Alexander
Keyweb AG
Beiträge: 1270
Registriert: Mi 20. Jan 2016, 02:23

Re: Disk space of a user not being calculated

Beitrag von Alexander » Do 23. Mai 2019, 14:19

So then, can you start quota with the following?

Code: Alles auswählen

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
**************************************************************
webmedia
Beiträge: 21
Registriert: Di 7. Mai 2019, 11:37

Re: Disk space of a user not being calculated

Beitrag von webmedia » Di 28. Mai 2019, 02:34

Alexander hat geschrieben:
Do 23. Mai 2019, 14:19
So then, can you start quota with the following?

Code: Alles auswählen

service quota start
Hello...
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.
Dateianhänge
plz help.jpg
webmedia
Beiträge: 21
Registriert: Di 7. Mai 2019, 11:37

Re: Disk space of a user not being calculated

Beitrag von webmedia » Di 28. Mai 2019, 02:37

Alexander hat geschrieben:
Do 23. Mai 2019, 14:19
So then, can you start quota with the following?

Code: Alles auswählen

service quota start
I also did this...
Dateianhänge
screen.jpg
Blackmoon
Beiträge: 212
Registriert: Sa 1. Dez 2018, 16:42

Re: Disk space of a user not being calculated

Beitrag von Blackmoon » So 2. Jun 2019, 23:17

Hey,
To be more precise, it is a cloud server, from Hetzner. That is all I know.
An important information.

First thing:

Code: Alles auswählen

service quota stop
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
webmedia
Beiträge: 21
Registriert: Di 7. Mai 2019, 11:37

Re: Disk space of a user not being calculated  [SOLVED]

Beitrag von webmedia » Sa 15. Jun 2019, 14:45

Blackmoon hat geschrieben:
So 2. Jun 2019, 23:17
Hey,
To be more precise, it is a cloud server, from Hetzner. That is all I know.
An important information.

First thing:

Code: Alles auswählen

service quota stop
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
Welp, this ended up working for me. Thanks y'all <3
pb81
Beiträge: 7
Registriert: Sa 4. Jan 2020, 14:18

Re: Disk space of a user not being calculated

Beitrag von pb81 » Di 28. Jan 2020, 19:59

For those wondering, this also works at Digital Ocean

Stop the service

Code: Alles auswählen

service quota stop
Install linux-image-generic (keep existing files)

Code: Alles auswählen

apt-get -y install linux-image-generic
Activate Quota

Code: Alles auswählen

quotaon -avug
Reboot the server

Check if the statistics have been updated

Code: Alles auswählen

repquota /
If it has not been updated, run the following code:

Code: Alles auswählen

php /home/keyhelp/www/keyhelp/cronjob/mastercronjob.php --force-diskspace
Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast