Page MenuHomePhabricator

extdist is not rotating logs
Closed, ResolvedPublic

Description

bawolff@extdist-04:~$ ls -lah /var/log/extdist 
-rw-r--r-- 1 extdist extdist 5.8G May 25 19:22 /var/log/extdist

Details

Related Changes in Gerrit:

Event Timeline

In the past I wrote https://gerrit.wikimedia.org/r/c/labs/tools/extdist/+/181433 but never followed up on it since we stopped running out of disk space. Probably if we just used normal log rotate via puppet that would be better.

Change #1249417 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] extdist: Set up a logrotate rule

https://gerrit.wikimedia.org/r/1249417

Change #1249417 merged by Majavah:

[operations/puppet@production] extdist: Set up a logrotate rule

https://gerrit.wikimedia.org/r/1249417

root@extdist-06:~# tail /var/log/extdist.1 
2026-03-14 23:15:45,620 DEBUG:No updates to branch, tarball already exists.
2026-03-14 23:15:45,620 INFO:Creating REL1_45 for wikihiero
2026-03-14 23:15:45,856 DEBUG:No updates to branch, tarball already exists.
2026-03-14 23:15:45,857 INFO:Creating REL1_44 for wikihiero
2026-03-14 23:15:46,102 DEBUG:No updates to branch, tarball already exists.
2026-03-14 23:15:46,103 INFO:Creating REL1_43 for wikihiero
2026-03-14 23:15:46,348 DEBUG:No updates to branch, tarball already exists.
2026-03-14 23:15:46,349 DEBUG:Moving new tarballs into dist/
2026-03-14 23:15:46,352 INFO:Finished update for wikihiero
2026-03-14 23:15:46,352 INFO:Finished update of all extensions!
root@extdist-06:~# head /var/log/extdist
2026-03-15 00:00:04,429 INFO:Creating pid file
2026-03-15 00:00:04,429 DEBUG:Fetching list of all extensions...
2026-03-15 00:00:04,433 DEBUG:Starting new HTTPS connection (1): www.mediawiki.org:443
2026-03-15 00:00:04,499 DEBUG:https://www.mediawiki.org:443 "GET /w/api.php?action=query&list=extdistrepos&format=json HTTP/1.1" 200 None
2026-03-15 00:00:04,502 INFO:Processing 942 extensions
2026-03-15 00:00:04,502 INFO:Starting update of all extensions...
2026-03-15 00:00:04,502 INFO:Starting update for 3D
2026-03-15 00:00:04,502 DEBUG:Fetching ExtensionDistributor config from API...
2026-03-15 00:00:04,539 DEBUG:https://www.mediawiki.org:443 "GET /w/api.php?action=query&meta=siteinfo&format=json HTTP/1.1" 200 None
2026-03-15 00:00:04,541 INFO:Creating master for 3D

Seems to work as expected.