You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error in submission upload SyntaxError: "undefined" is not valid JSON #1776
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.
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:
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?
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.
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.
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)
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.
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?
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
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.
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.
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.
Activity
ihsaan-ullah commentedon Mar 11, 2025
Hi @gifale95,
Can you provide more information:
gifale95 commentedon Mar 11, 2025
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).
ihsaan-ullah commentedon Mar 11, 2025
I tried the following:
Iris submission-> No errorCan you try with renaming your file to check if you get any error?
+
The error is not informative and needs improvement
gifale95 commentedon Mar 11, 2025
I uploaded the file changing the name to
aaa.zip, and still got the error. Were you just renaming the zip file toaaa.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?stomfaig commentedon Mar 11, 2025
I have the same error with a ~20MB file. Tried changing file name (to
aaa.zip,iris_submission.zipamong 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.ihsaan-ullah commentedon Mar 11, 2025
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?
ObadaS commentedon Mar 11, 2025
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.
gifale95 commentedon Mar 11, 2025
@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 JSONDo you have a list of the conditions that lead to this error being raised?
ObadaS commentedon Mar 11, 2025
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.
gifale95 commentedon Mar 11, 2025
@ObadaS yes, I would appreciate it if you could sign up and test the file submission.
ObadaS commentedon Mar 11, 2025
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)
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.
gifale95 commentedon Mar 11, 2025
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?
ihsaan-ullah commentedon Mar 11, 2025
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
gifale95 commentedon Mar 11, 2025
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.
ObadaS commentedon Mar 12, 2025
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.
5 remaining items
gifale95 commentedon Mar 12, 2025
Thank you for the effort you are putting in this, I really appreciate it! Looking forward to new developments.
ihsaan-ullah commentedon Mar 13, 2025
I cannot create a dump from this competition: https://www.codabench.org/competitions/4313/
ObadaS commentedon Mar 13, 2025
This might be a different issue, here are the logs when I try to create a dump of the competition:
gifale95 commentedon Mar 13, 2025
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?
gifale95 commentedon Mar 14, 2025
Update. Some users are still experiencing the error:
Error in submission upload SyntaxError: "undefined" is not valid JSONDid you figure out what it originates from?
Didayolo commentedon Mar 20, 2025
@gifale95
It looks like network perturbation. We are also encountering similar problems on CodaLab. We are investigating the problem and will keep you updated.
Didayolo commentedon Mar 25, 2025
@gifale95
It should be fixed now. Please let us know if you are still facing the issue.
ObadaS commentedon Mar 25, 2025
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.
gifale95 commentedon Mar 25, 2025
Thank you very much for fixing this, and for the update! I will let you know if we experience the problem again.
ObadaS commentedon Apr 1, 2025
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.