Quota does not work

ja3

Verified User
Joined
Mar 28, 2004
Messages
49
#1 Please see this image:

quota.jpg


What's wrong with the quota? (The 71 mb is right) And I have waited some days but it does not change.

Another Question:
Why does the mysql user: username not work and the username_name works fine? It's wrong with al users although they are in the mysql user database.
 
Hello,

the disk space for the domains are just calculated by recursively adding the domain's directory. If it isn't beinng changed, then the nightly tally might not be running.

Make sure you have DA 1.21.3 as there was a tally bug which preventing it from finishing.

The "username" mysql user is added to databases only when the databases are created. Also, the password for "username" is set when the database is created as well. If you can't login as "username", try changing your DA password, and then change it back to reset the mysql password for "username"

John
 
I have got already the newest DA version, I tryed to do the quota commands from the /etc/cron.d/directadmin_cron file and the tally commands. But it is still wrong, maybe its because the files are uploaded with a php script so that the user does not fit.
 
That isn't a good system, the user can upload so much as he want with php because his quota wont be counted with the apache user.
 
I know what the problem is: File uploaded with php and so the user is apache and not "username". But I can't chown this files from every user because it's too much work. Has somebody got an solution for this problem because the "username" can now have lot's of space and it's not counted.
 
Hello,

I'll add "apache owned files to be counted during the nightly tally" to the versions system.

John
 
I am having a same problem with DA version 1.23.3

a user that is using gallery foto album. All the picture uploaded through the php script of the gallery are owned by apache.

So they are not counted within the user quota.

How to make this work that all files within de userhome dir are counted for the user quota??
 
DirectAdmin Support said:
Hello,

I'll add "apache owned files to be counted during the nightly tally" to the versions system.

John

Today i had this issue with a domain. 15GB!! (it was a photo album).

I know it supposly was added in 1.22 (http://www.directadmin.com/features.php?id=369) but it dont work, at least with v.1.23.4.

Also DA count only 2.1GB space for that domain..It has a limit of 2 GB in the panel.. (consumes more than 15 GB.)
 
Last edited:
Hello,

I've looked in to the issue. The only thing that I can come up with is if the apache owned directory is chmod is such a manner that "username" does not have +rx permission on the directory. When the tally counts the apache owned files, it's doing it as the user, so if the user can't see it, it's not counted. I've just changed that snippet of code to be run as root so it will get counted no matter what. I can't say with 100% that that's the issue you guys are seeing, but try checking the directories the apache files are in and try to chmod to 755 (or higher) to confirm/disprove my theory.

John
 
Hi,

Why don't you create it so that when something is uploaded through php/cgi scripts it adds the user account's id instead of apache.
That will fix all the problems.
 
all files have permission 777 but the user and group apache:apache

drwxrwxrwx 10 apache apache 4096 Jan 13 14:18 958
 
I've got this identical issue, but only on one of 22 active hosting servers.

drwx--x--x 8 ewiza ewiza 4096 Feb 28 07:09 ewiza


Directory looks to be correct chmod

As I said, it's only this server, and all user directories are identical to other working servers.

Got any other ideas John??

One client is already over their monthly bandwidth by like 20 GB as last month's didn't reset properly.

Thanks
 
Back
Top