Sometimes, Commons chokes on a file during upload from IA-Upload:
[2021-07-08T21:44:24.126200+00:00] LOG.INFO: Uploading to /var/www/tool/jobqueue/lajangadagoog/lajangadagoog.djvu to Commons La Jangada (1882).djvu [] [] [2021-07-08T21:44:24.132088+00:00] LOG.DEBUG: Getting fresh token {"type":"csrf"} [] [2021-07-08T21:47:21.400361+00:00] LOG.CRITICAL: Server error: `POST https://commons.wikimedia.org/w/api.php` resulted in a `504 Gateway Timeout` response: upstream request timeout [] []
However, these uploads can still succeed sometimes, so it might be worth to retry the upload before declaring the job failed. Or provide a "retry upload" button on the log entry so the user can try it later on.