Skip to content

Submissions stuck in "Running" or failing on compute worker ("non-zero return code") #2258

Closed

Description

@Didayolo

I group here all the current issues with submissions and compute workers, that we are trying to solve as soon as possible.

Problems

1. Submissions stuck in "Running" or "Scoring" and no logs (fixed by #2030, #2223)

The compute worker crashes and the submissions remain stuck in "Running" state, and do not return useful logs.

This behavior was reported here:

2. Submission failed: "scoring_hostname-worker9" (or similar errors)

3. "Child task failed or returned a non-zero return code"

Image

Solutions

Ready-to-deploy PRs

First PR that avoids some problems with crashes and logs:

More importantly, this second PR fixes the "Stuck in Running" problem:

It is still under tests, but it is already possible to use the last version of the compute workers by using the public queue "Codabench-Test" on the competition:

Image

Remaining TODO

However, while solving problem 1 (and probably 2), helping with crashing for real instead of being stuck, and having better logs, it also make clear that:

On-going investigation

I am going to paste failure logs from Codabench-Test queue below.

Also, it seems like large submissions and large docker images increases the bug rate.

Activity

  1. Didayolo commented on Mar 12, 2026

    @Didayolo
    MemberAuthor

    Ingestion logs from https://www.codabench.org/competitions/12908 (@sfahadahmed):

        raise RuntimeError('Event loop is closed')
    
    RuntimeError: Event loop is closed
    2026-03-12 15:28:16.929 | ERROR    | asyncio.base_events:default_exception_handler:1753 - Task was destroyed but it...
    [...]
        raise RuntimeError('Event loop is closed')
    
    [...]
    
    2026-03-12 15:32:11.636 | INFO     | compute_worker:_run_container_engine_cmd:755 - Scoring program.
    
    Competition task:  vqa
    ----------
    
    2026-03-12 15:32:11.636 | ERROR    | compute_worker:_run_container_engine_cmd:765 - Traceback (most recent call last):
      File "/app/program/scoring.py", line 632, in <module>
    
    2026-03-12 15:32:11.637 | ERROR    | compute_worker:_run_container_engine_cmd:765 -     main()
      File "/app/program/scoring.py", line 277, in main
    
    2026-03-12 15:32:11.637 | ERROR    | compute_worker:_run_container_engine_cmd:765 -     raise FileNotFoundError(f"File doesn't exist: {predictions_file_path}")
    
    2026-03-12 15:32:11.638 | ERROR    | compute_worker:_run_container_engine_cmd:765 - FileNotFoundError: File doesn't exist: /app/input/res/prediction_data.json
    
    2026-03-12 15:32:23.551 | INFO     | compute_worker:start:1306 - [exited with 1]
    2026-03-12 15:32:23.551 | INFO     | compute_worker:start:1315 - Program finished
    2026-03-12 15:32:23.551 | INFO     | compute_worker:_update_submission:536 - Updating submission @ https://www.codabench.org/api/submissions/617178/ with data = {'status': 'Failed', 'status_details': 'program_rc=1, async=[None, None, None]', 'secret': '77e7a3c2-d72b-4c8c-ac69-5d1177a3d7a9'}
    2026-03-12 15:32:24.660 | INFO     | compute_worker:_update_submission:540 - Submission updated successfully!
    2026-03-12 15:32:24.660 | INFO     | compute_worker:_update_submission:536 - Updating submission @ https://www.codabench.org/api/submissions/617178/ with data = {'status': 'Failed', 'status_details': 'Traceback (most recent call last):\n  File "/compute_worker.py", line 256, in run_wrapper\n    run.start()\n  File "/compute_worker.py", line 1332, in start\n    raise SubmissionException("Child task failed or non-zero return code")\ncompute_worker.SubmissionException: Child task failed or non-zero return code\n', 'secret': '77e7a3c2-d72b-4c8c-ac69-5d1177a3d7a9'}
    2026-03-12 15:32:26.555 | INFO     | compute_worker:_update_submission:540 - Submission updated successfully!
    2026-03-12 15:32:26.555 | INFO     | compute_worker:_put_file:1131 - Putting raw data b'' in https://miniodis-rproxy.lisn.upsaclay.fr/coda-v2-prod-private/submission_details/2026-03-12-1773329291/cfb98441d0cb/scoring_stdout.txt?AWSAccessKeyId=codabench-prod&Signature=Sr4nQo4yxE26dPrRj0k7gZAUoc0%3D&content-type=application%2Fzip&Expires=1773761291
    2026-03-12 15:32:26.617 | INFO     | compute_worker:_put_file:1143 - *** PUT RESPONSE: ***
    2026-03-12 15:32:26.617 | INFO     | compute_worker:_put_file:1144 - response: <Response [200]>
    2026-03-12 15:32:26.618 | INFO     | compute_worker:_put_file:1145 - content: b''
    2026-03-12 15:32:26.618 | INFO     | compute_worker:_put_file:1131 - Putting raw data b'' in https://miniodis-rproxy.lisn.upsaclay.fr/coda-v2-prod-private/submission_details/2026-03-12-1773329291/a5abd78dfbdf/scoring_stderr.txt?AWSAccessKeyId=codabench-prod&Signature=JTP6ocdj%2B7GsRLsn5Uc%2BAadWg1g%3D&content-type=application%2Fzip&Expires=1773761291
    2026-03-12 15:32:26.650 | INFO     | compute_worker:_put_file:1143 - *** PUT RESPONSE: ***
    2026-03-12 15:32:26.651 | INFO     | compute_worker:_put_file:1144 - response: <Response [200]>
    2026-03-12 15:32:26.651 | INFO     | compute_worker:_put_file:1145 - content: b''
    2026-03-12 15:32:26.651 | INFO     | compute_worker:clean_up:1414 - Destroying submission temp dir: /codabench/uPK-7_sID-617178__o4flgsh_
    2026-03-12 15:32:26.653 | ERROR    | celery.app.trace:_log_error:265 - Task compute_worker_run[38373362-8520-4de9-b664-b944ad6878a3] raised unexpected: SubmissionException('Child task failed or non-zero return code')
    Traceback (most recent call last):
    
    > File "/.venv/lib/python3.9/site-packages/celery/app/trace.py", line 451, in trace_task
        R = retval = fun(*args, **kwargs)
      File "/.venv/lib/python3.9/site-packages/celery/app/trace.py", line 734, in __protected_call__
        return self.run(*args, **kwargs)
    
      File "//compute_worker.py", line 256, in run_wrapper
        run.start()
    
      File "//compute_worker.py", line 1332, in start
        raise SubmissionException("Child task failed or non-zero return code")
    
    compute_worker.SubmissionException: Child task failed or non-zero return code

    And then still no scoring error logs:

    Image

    So in that case, just renaming the submitted file by prediction_data.json solved the problem.
    BUT this clearly should be visible in Scoring error logs.


    I was able to fix this behavior in edc768d :

    Image Image

    Now we do have clear logs on the platform for failing submissions.

  2. Didayolo commented on Mar 12, 2026

    @Didayolo
    MemberAuthor

    Commit 3615513 improve the "question mark" error message, so it is user-friendly.

    Before:

    Capture d’écran 2026-03-11 à 01 48 37

    After:

    Capture d’écran 2026-03-12 à 19 11 54
  3. Didayolo commented on Mar 12, 2026

    @Didayolo
    MemberAuthor

    Need to test more problematic competitions on the Codabench-Test queue to see how it is going.

  4. Didayolo commented on Mar 23, 2026

    @Didayolo
    MemberAuthor

    Looks good. We just need to deploy v1.25 on production.

  5. Didayolo commented on Mar 31, 2026

    @Didayolo
    MemberAuthor

    This is now deployed and running on production server.

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