[bug] Logs do not get deleted on user removal

Richard G

Verified User
Joined
Jul 6, 2008
Messages
14,181
Location
Maastricht
After some time this can take up some room.

It seems several logfiles are not deleted upon deletion of the user.
These are the files never removed:
/var/log/httpd/domains/domainname.nl.bytes.1
/var/log/httpd/domains/domainname.nl.bytes.2
/var/log/httpd/domains/domainname.nl.bytes.3
/var/log/httpd/domains/domainname.nl.bytes.4
Since all other user, domain and logfiles do get deleted, it looks like this is a bug in the user removal procedure.

Can this be fixed?

Next to that... ofcourse at this moment there are a lot of these logs which are present, but do not belong to a domain anymore. Is there an easy way to compare the /var/log/http/domains/*.bytes to for example the /var/named content and if a domainname is not present, the .bytes logs get deleted?
Because it's almost undoable do check and compare every domain manually.
 
After a quick look I notice pretty much all of the 'forgotten' .bytes-logs have a size of '0' kb on my vps.

I think maybe removing files before a certain date would clean up /var/log/httpd as well, but of course a compare to DA's domain list would be better.
 
If they have 0 kb (did not check that yet), they would not take space, but they should not be there.
Indeed we can clean up based on date, but as you also say, they should be removed when removing the user, compared to DA's domain list.
 
Back
Top