Last modified: 2012-07-23 21:06:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39012, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37012 - malfunction of udp2log log rotation on deployment-dbdump
malfunction of udp2log log rotation on deployment-dbdump
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Normal minor
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-22 08:50 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-07-23 21:06 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2012-05-22 08:50:12 UTC
When udp2log logs in /home/wikipedia/logs are rotated, they seems to just be moved to the archives dir and are not compressed.  End result is that logs are still appended to the same inode, aka directly in archive directory.

Need to find out why file is not compressed
Comment 1 Antoine "hashar" Musso (WMF) 2012-05-23 16:00:55 UTC
There was an issue with /home/wikipedia/logs belonging to the wrong users, that might have confused log rotate too. 

I have not seen that behavior today, so closing as worksforme.
Comment 2 Antoine "hashar" Musso (WMF) 2012-05-24 13:16:54 UTC
Reopening. The issue appeared again!

Files in /home/wikipedia/logs were having a 0 size and time at 06:48.
Log files suffixed with '20120524' and moved in the archive directory did receive the logs though.

Thus, there is a big issue with our log rotate script that need to be solved.

Server is deployment-feed
Comment 3 Antoine "hashar" Musso (WMF) 2012-05-25 08:39:00 UTC
on dbdump, deleted /etc/logrotate.d/mw-udp2log . Most probably in conflict with the one from deployment-feed which host the udp2log process. That is most probably a race condition between the two hosts.  We will see how it works out tomorrow :-]
Comment 4 Peter Bena 2012-07-23 21:03:38 UTC
udp2log needs to be moved to own instance soon
Comment 5 Antoine "hashar" Musso (WMF) 2012-07-23 21:06:42 UTC
I have factored out some puppet class to create the new role::logging::mediawiki and applied it to the  deployment-dbdump instance. So it is out of feed now :-]

dbdump write directly to /home/wikipedia/logs/ files

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links