Skip to content

"Download selected submissions" not working #1551

Closed

Description

@Didayolo

This issue concerns the feature implemented in this PR (@nicomy):

Problem 1: Files are corrupted

Reported by @seroy123 (see screenshot below):

I am getting a bug which results in 26 copied zipped submissions when i use the UI for downloading in bulk but select 1 submission. for 4 files i got 96 copies. The main problem is that the files are all corrupted.

Reported by @Punchwes in #1725:

I am trying to download selected submissions. After selecting several submissions and clicked download selected submissions, a zip file named as bulk_submissions.zip is downloaded. However, after unzipping the bulk_submission file, within the folder, each submission file ID_XXX_name.zip has a constant size of 8KB, for example:
(see screenshot in #1725)
Similar error pops up when unzipping directly from terminal with unzip stating End-of-central-directory signature not found
It is the same error when I select one or more submissions. However, I can successfully download each submission via clicking on them and choosing Submission File.

Problem 2: No way to distinguish submissions with the same filenames

The bulk download works well. However, it zips together all selected submissions, even if they have the same filenames. This has two consequences:

  • The unzipping is clumsy (most unzip softwares will ask for deleting or renaming the files)
  • We have no way to distinguish the submissions

Possible solution:

  • Rename automatically the files in the case of non-unique filenames, adding the submission ID.

Problem 3: No output

We download just the submission file, not the outputs.

Maybe we should have these options (@ihsaan-ullah suggestion):

  • download submissions only
  • download submissions predicted output
  • download submissions scoring output
  • download submissions + predicted output + scoring output

Activity

  1. added
    Enhancement
    on Jul 24, 2024
  2. Didayolo commented on Sep 24, 2024

    @Didayolo
    MemberAuthor

    Another issue here: we download just the submission file, not the outputs

  3. ihsaan-ullah commented on Sep 24, 2024

    @ihsaan-ullah
    Collaborator

    Maybe we should have these options:

    • download submissions only
    • download submissions predicted output
    • download submissions scoring output
    • download submissions + predicted output + scoring output
  4. seroy123 commented on Sep 25, 2024

    @seroy123

    Hi, another issue i am encountering regarding "Download selected submissions":
    I am getting a bug which results in 26 copied zipped submissions when i use the UI for downloading in bulk but select 1 submission. for 4 files i got 96 copies. The main problem is that the files are all corrupted.
    codabench bug

  5. Didayolo commented on Oct 1, 2024

    @Didayolo
    MemberAuthor

    @seroy123 Hi, thank you for reporting this problem.

    Can you please share more details please?

    • URL of the competition
    • Your username
    • Which submission did you select?
    • Any relevant information to reproduce the bug
  6. added and removed
    Enhancement
    on Jan 20, 2025
  7. changed the title [-]"Download selected submissions" - No way to distinguish submissions with the same filenames[/-] [+]"Download selected submissions" not working[/+] on Jan 20, 2025
  8. soni-sarvesh commented on May 1, 2025

    @soni-sarvesh

    Hello Codabench Team,

    I am also facing an issue related to corrupted files. Specifically, when I use the "Download selected submissions" option, some of the resulting ZIP files are corrupted and cannot be opened. However, downloading the same submissions individually (by clicking into each one and selecting "Submission File") produces valid, uncorrupted files.

    Here are some of the details:

    Since we’re under tight deadlines, is there a recommended workaround or alternative method to reliably obtain valid submission files in bulk while this issue is being looked into?

    Any guidance would be appreciated. Thank you in advance!

  9. Didayolo commented on May 2, 2025

    @Didayolo
    MemberAuthor

    Hello,

    If you are under tight deadline, indeed you can't wait for the fix.

    I don't really see work-around beside downloading the relevant submissions manually. Maybe you can automate the process through the API, however right now I don't have any clue about how to do that.

    Sorry for the inconvenience.

  10. soni-sarvesh commented on May 2, 2025

    @soni-sarvesh

    Hi @Didayolo,

    Thanks for getting back to us! We totally understand that this might take some time.

    In the meantime, is there any way for the Codabench team to share the submissions (compressed or otherwise) with us directly, e.g., via email or a shared drive? If that’s not possible, no worries—we just thought it might be worth asking.

  11. Didayolo commented on May 15, 2025

    @Didayolo
    MemberAuthor

    @soni-sarvesh

    Sorry I just see your comment now. Is your request still relevant?

  12. luisgasco commented on May 19, 2025

    @luisgasco

    I am experiencing the same problem.

    After some testing, it seems that the problem occurs when downloading multiple submissions—every submission is splitted into several zip parts with the same name (which is why the same name appears repeatedly in the archive). However, since all parts have the same filename, they get overwritten by default when unzipping. A Bash script could be used to extract them without overwriting, combine them properly and then unzip

    If I manage to solve it, I'll share the script here.

  13. logological commented on Jun 12, 2025

    @logological

    I've created a Bash script that extracts the submissions from Codabench's corrupted ZIP files. It's available in my codabench_extract repository on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions