monthly logs

I have 1 server that was still running 1.22.1 and it also quit rotating logs on a monthly basis as of around May. I can't find a server out of about 30 that is rotating logs monthly in June/July or now August.
 
Its very odd that support havent published any patch or updates on this prob..
 
I've been reminded (spanked) on several occasions from another forum user that Support does not monitor these forums for complaints, bugs, etc. If there's a tech issue we need to email them now, supposedly.

Has anyone emailed john yet? If not, I'll fire off another email to him concerning this.
 
All of mine are Redhat 9, I think hostpc uses Fedora on some of his, or most? all? Anyway, I did email John and first he had me do:

echo "action=reset&value=all" >> /usr/local/directadmin/data/task.queue

which is what I've done again to test after month started just now and still no rotating of logs.

When that didn't work he recommended setting rotate size lower:

The log rotate size is currently set to 100 meg (Admin Panel -> Admin Settings). If you lower the value, the files will rotate more often.
 
Fedora is on a few servers, the rest are RH9 (honestly like RH9 better).

I haven't emailed DA directly yet, but it looks like I'd probably get the same reply as Gary anyway. We need a clear cut fix for this - it's gonna start getting out of hand, soon!
 
We run servers on both RHL7.3 and on WBEL/RHEL 3. We also operate servers for clients on RHL9.

Please indicate exactly which log we should look at and where, and I'll check one each and see if they rolled over the beginning of September.

Thanks.

Jeff
 
try this:
ll /home/*/domains/*/logs/

look for files older than May or June I see VERY few, those are all for sites who rotate at 100 megs and get a lot of traffic.
 
Hmmmm.....

RHL 7.3:
Jul-2004.tar.gz
Jun-2004.tar.gz
May-2004.tar.gz
Nov-2003.tar.gz
Nov-2003.test.tar.gz

RHEL 3.0 and RHL9 show similar results.

This is indeed a real problem. And has nothing to do with setting a lower rotate size.

I'll bring the thread to John's attention and see if we can have him look into it.

Jeff
 
Hello,

Thanks for bringing this to my attention. I have a hunch what it might be. To confirm this, all I really need is for someone to delete 1 (or more) log files from the domains logs directory (so that there are 4 or less tar.gz files). If the next log is rotated and saved, then that will confirm the problem.

I'll add it to the versions system and it should be all fixed up for the next release.

I pretty sure that the cause is the new log is being deleted instead of the old one because of the way the index for the array of files is stored. It's any easy fix, but I just need a confirmation.

Thanks!

John
 
Okay, John...

What do I have to do?

Are you saying delete one and wait a month, or is there something else I can do?

Do I have to delete it from every domain or just from one?

Jeff
 
John,

If it were simply a case of 4 files in /home/user/domains/domain.com/logs why would sites with only 1 or 2 files in there not rotate? I have a server that is only a couple weeks old with no files in there for some sites, on one server in particular, it was built in July, every domains/domain.com/logs/ folder is empty except 1 on this server. So I can safely say there were less than 4 .tar.gz files in all 103 sites on this particular server when August rolled into September earlier this week and logs did not rotate.
 
any news on this? we hce less thant 4.. thhe problem is that the log not rotate, so morer than 2 months laters we are starting to have problems with the space in a few domains ...
 
Hmm. If you'd like me to take a closer look, send your IP and root password. The code appears to be fine (as far as I can tell), but it does make assumptions about the datestamp on the file. I'll need to take a closer look at the affected systems to better understand why it's not working on some systems.

John
 
Still no monthly log rotate here. I did notice while it's listed in 1.22.5 as a bugfix, closer inspection yields it wasn't finished?

Version Number 1.225
Finished No
Type bugfix
Overview log rotation files are not being kept in the logs directory

And, actually, the problem is not that the backed up log isn't being kept. The problem seems to be that the log doesn't rotate at all based on date. It just keeps growing. The only way I can get the log to rotate and back-up is to drop the size limit.

If I drop the size limit, and issue the reset command everything works fine including the bacl-up being properly stored.
 
Last edited:
LyricTung said:
Still no monthly log rotate here. I did notice while it's listed in 1.22.5 as a bugfix, closer inspection yields it wasn't finished?

Version Number 1.225
Finished No
Type bugfix
Overview log rotation files are not being kept in the logs directory

And, actually, the problem is not that the backed up log isn't being kept. The problem seems to be that the log doesn't rotate at all based on date. It just keeps growing. The only way I can get the log to rotate and back-up is to drop the size limit.

If I drop the size limit, and issue the reset command everything works fine including the bacl-up being properly stored.


Ok, What same I need do for fix issue?
Handle run webalizer and flush log to zero?
 
I looked on my production server and the logs dir is empty.

/home/user/domains/domain.com/logs

is where I looked and not a single file there for all my users.
 
I can't find a server with properly rotating logs, granted I ain't looked at all 40 something DA servers but the ones I looked at didn't have rotating logs EXCEPT for those sites busting the 100 meg limit that rotates at least.
 
Back
Top