Skip to content

Error in submission upload SyntaxError: "undefined" is not valid JSON #1776

Closed

Description

@gifale95

Hello,

I am one of the organizers of competition 4313. Since March 9, we get the following error when uploading a submission:

Error in submission upload SyntaxError: "undefined" is not valid JSON

Nothing changed in the scoring step, or in the setting of the competition, and the error also occurs for the same submission files that have been previously working.

Could you help us in this?

Thank you,
Ale

Activity

  1. ihsaan-ullah commented on Mar 11, 2025

    @ihsaan-ullah
    Collaborator

    Hi @gifale95,

    Can you provide more information:

    • Are you the only one getting this error?
    • Can you attach a file the leads to this error
  2. gifale95 commented on Mar 11, 2025

    @gifale95
    Author

    Hi @ihsaan-ullah

    The error was reported by some participants of competition 4313, and I could also reproduce it myself. The submission file is quite large (~320 MB), and you can download it from Google Drive at:

    https://drive.google.com/file/d/1kmrv1kYzFjaCnsJeiSLzrx0wH-4bHOnT/view?usp=sharing

    (btw, submissions with this very same file have been working until we noticed the error a few days ago).

  3. ihsaan-ullah commented on Mar 11, 2025

    @ihsaan-ullah
    Collaborator

    I tried the following:

    • Your file without any change -> Got the same error
    • Another file Iris submission -> No error
    • Uploaded your file but changed the file name -> No error
    Image

    Can you try with renaming your file to check if you get any error?

    +

    The error is not informative and needs improvement

  4. gifale95 commented on Mar 11, 2025

    @gifale95
    Author

    I uploaded the file changing the name to aaa.zip, and still got the error. Were you just renaming the zip file to aaa.zip, or did you unzip it first, renamed the unzipped file, and then zipped it again? And if the latter, which procedure did you use for zipping the file?

  5. stomfaig commented on Mar 11, 2025

    @stomfaig

    I have the same error with a ~20MB file. Tried changing file name (to aaa.zip, iris_submission.zip among others), still not working. It seems though, that the upload is interrupted at different points, i.e. sometimes right away, sometimes halfway through uploading the submission.

  6. ihsaan-ullah commented on Mar 11, 2025

    @ihsaan-ullah
    Collaborator

    I think this is some kind of network interruption. Showing the real error will give us more clues.

    @ObadaS can we check the logs to see if we can catch any error?

  7. ObadaS commented on Mar 11, 2025

    @ObadaS
    Collaborator

    I would need to be able to reproduce the problem to get logs. I tried to reproduce it but uploading the file worked correctly on my end.

    We also have not changed anything on March 9, so I'm not sure why the problem would start appearing then.

  8. gifale95 commented on Mar 11, 2025

    @gifale95
    Author

    @ObadaS did you upload the file I linked above (https://drive.google.com/file/d/1kmrv1kYzFjaCnsJeiSLzrx0wH-4bHOnT/view?usp=sharing) without any name edits?

    When uploading this file, I still get the same error:

    Error in submission upload SyntaxError: "undefined" is not valid JSON

    Do you have a list of the conditions that lead to this error being raised?

  9. ObadaS commented on Mar 11, 2025

    @ObadaS
    Collaborator

    Yes, although I did not try in your competition specifically, but a test one I made locally. If it's Ok with you, I can sign up to your competition and submit this file to see if it also works correctly on my end or not.

  10. gifale95 commented on Mar 11, 2025

    @gifale95
    Author

    @ObadaS yes, I would appreciate it if you could sign up and test the file submission.

  11. ObadaS commented on Mar 11, 2025

    @ObadaS
    Collaborator

    So, after joining the competition and trying to upload the file you provided, I get this error (which seems to be different from the one you are getting)

    Image

    Renaming the file also does not seem to work.
    Unfortunately, this particular problem seems to produce no logs, which does not help us understand the problem better.

  12. gifale95 commented on Mar 11, 2025

    @gifale95
    Author

    Do you know what JSON files the error is referring to? The zipped submission doesn't include JSON files, so I guess it must be some file internal to Codabench that is used by default during each submission?

  13. ihsaan-ullah commented on Mar 11, 2025

    @ihsaan-ullah
    Collaborator

    Don't get confused by the error, the error is not showing the problem with the submission. It shows a problem in parsing the error that is coming from the backend. From the browser network tab I can just see that there is a 500 error occuring

  14. gifale95 commented on Mar 11, 2025

    @gifale95
    Author

    I see. What steps can then be taken to understand why the error arises, and how to fix it? Obviously this is rather urgent, as as we are in the middle of an ongoing competition.

  15. ObadaS commented on Mar 12, 2025

    @ObadaS
    Collaborator

    I did some more tests. I keep trying to submit the file, and it does fail at different % uploaded.
    I also tried to reduce the file size to 50 MB, it seems to succeed more often (but still fails a lot) when trying to upload it.

  16. 5 remaining items

  17. gifale95 commented on Mar 12, 2025

    @gifale95
    Author

    Thank you for the effort you are putting in this, I really appreciate it! Looking forward to new developments.

  18. ihsaan-ullah commented on Mar 13, 2025

    @ihsaan-ullah
    Collaborator
  19. ObadaS commented on Mar 13, 2025

    @ObadaS
    Collaborator

    I cannot create a dump from this competition: https://www.codabench.org/competitions/4313/

    This might be a different issue, here are the logs when I try to create a dump of the competition:

    [2025-03-13 07:57:10,990: INFO/MainProcess] Received task: competitions.tasks.create_competition_dump[...]  
    [2025-03-13 07:57:11,128: INFO/ForkPoolWorker-7] Finding competition 4313
    [2025-03-13 07:57:11,931: INFO/ForkPoolWorker-7] Checking logo
    [2025-03-13 07:57:13,035: INFO/ForkPoolWorker-7] Logo found for competition 4313
    [2025-03-13 07:57:16,599: ERROR/MainProcess] Process 'ForkPoolWorker-7' pid:16694 exited with 'signal 9 (SIGKILL)'
    [2025-03-13 07:57:17,119: ERROR/MainProcess] Task handler raised error: WorkerLostError('Worker exited prematurely: signal 9 (SIGKILL) Job: 1921.')
    Traceback (most recent call last):
      File "/usr/local/lib/python3.9/site-packages/billiard/pool.py", line 1265, in mark_as_worker_lost
        raise WorkerLostError(
    billiard.exceptions.WorkerLostError: Worker exited prematurely: signal 9 (SIGKILL) Job: 1921.
  20. gifale95 commented on Mar 13, 2025

    @gifale95
    Author

    It seems like submission upload is now working again. We did not make any change to the competition. Were there any changes occurring from your side?

  21. gifale95 commented on Mar 14, 2025

    @gifale95
    Author

    Update. Some users are still experiencing the error:

    Error in submission upload SyntaxError: "undefined" is not valid JSON

    Did you figure out what it originates from?

  22. added
    Competition-specific
    on Mar 20, 2025
  23. Didayolo commented on Mar 20, 2025

    @Didayolo
    Member

    @gifale95

    It looks like network perturbation. We are also encountering similar problems on CodaLab. We are investigating the problem and will keep you updated.

  24. Didayolo commented on Mar 25, 2025

    @Didayolo
    Member

    @gifale95

    It should be fixed now. Please let us know if you are still facing the issue.

  25. ObadaS commented on Mar 25, 2025

    @ObadaS
    Collaborator

    As @Didayolo said, the issue should be fixed now. We had a problem on our end with the reverse proxy having a full disk. We are not sure why this was happening yet. I think that if a lot of people are uploading big submissions, which get buffered on the VM, it will limit the disk space remaining for others to also upload their submissions at the same time.

    For now, the disk space has been doubled.

  26. gifale95 commented on Mar 25, 2025

    @gifale95
    Author

    Thank you very much for fixing this, and for the update! I will let you know if we experience the problem again.

  27. ObadaS commented on Apr 1, 2025

    @ObadaS
    Collaborator

    I am closing this issue since it seems like the underlying problem has been fixed. Feel free to create a new issue if the problem comes back.

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

    BugCompetition-specificP1Production

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions