GitLab sends an link for downloading project export but file is unavailable

Summary

Attempting to export a project, it gets 503 Service Unavailable. On several attempt, the user receives an email that the export is now available, providing a link. But following that link, they get an error that the file containing the export is not available.

Retrying exporting the project via console either fails or ends in the same way.

Tickets:

What is the current bug behavior?

Trying to export from the UI, it appears to be successful

Exporting the project from console, we get a successful export with a `Sending event to Sentry error.

In both cases, the download export button is available on UI, and the email sent to the user includes a link to download the export, but the export file is not in place or unreachable.

What should the behavior be?

If the export was successful, the export file should be downloadable.

If the export fails, it shouldn't send a link to download the export file, and the download export shouldn't be active. Moreover, a meaningful error message can be useful to fix what causes the export to fail at the firts place.

Relevant logs and/or screenshots

Screen_Shot_2021-12-30_at_3.36.34_PM

Sentry log for 503 error:

Sentry log for the file not available error:

Output of checks

This bug happens on GitLab.com

Possible fixes

Edited by Olivier Némoz Saint-Dizier