I discovered today that the cleanupUploadStash.php job on terbium has been failing for a while and we've accumulated 5T of data in temp containers.
There was a "missing /a" issue that was breaking foreachwiki, which I worked around. However, when I run cleanupUploadStash.php now, I get the following exception for all wikis:
bswikibooks: Getting list of files to clean up...
bswikibooks: Removing 2 file(s)...
bswikibooks: UploadStash::getFile No user is logged in, files must belong to users
bswikibooks: Backtrace:
bswikibooks: #0 /usr/local/apache/common-local/php-1.23wmf1/includes/upload/UploadStash.php(361): UploadStash->getFile('11jhstz7psnc.tykg19.954.jpg')
bswikibooks: #1 /usr/local/apache/common-local/php-1.23wmf1/maintenance/cleanupUploadStash.php(83): UploadStash->removeFileNoAuth('11jhstz7psnc.tykg19.954.jpg')
bswikibooks: #2 /usr/local/apache/common-local/php-1.23wmf1/maintenance/doMaintenance.php(113): UploadStashCleanup->execute()
bswikibooks: #3 /usr/local/apache/common-local/php-1.23wmf1/maintenance/cleanupUploadStash.php(143): require_once('/usr/local/apache/common-local/php-1.23wmf1/maintenance/doMaintenance.php')
bswikibooks: #4 /usr/local/apache/common-local/multiversion/MWScript.php(97): require_once('/usr/local/apache/common-local/php-1.23wmf1/maintenance/cleanupUploadStash.php')
bswikibooks: #5 {main}
Version: unspecified
Severity: normal