Skip to content

Competition Fails Due to Missing file in /app/input/ref/ #1951

Closed

Description

@johanneskruse

Competition Fails Due to Missing candidate_list.json in /app/input/ref/

I’m running my competition EKSTRA BLADET NEWS RECOMMENDATION COMPETITION, and I’m encountering the following error on my remote worker:

Traceback (most recent call last):
  File "/app/program/score.py", line 196, in <module>
    results_ranking, (user_lvl_report, model_lvl_report, baseline_report) = scoring(
  File "/app/program/score.py", line 46, in scoring
    candidate_list = read_json(beyond_dir.joinpath(CANDIDATE_LIST))
  File "/app/program/utils.py", line 195, in read_json
    raise FileExistsError(f"Missing file: {path}")
FileExistsError: Missing file: /app/input/ref/evaluation_artifacts/candidate_list.json

Observations

  • When inspecting the bundles the worker downloads (reference_data.zip and scoring_program.zip), I noticed a potential path mismatch:
    • reference_data.zip uses ../reference_data/..
    • But the code expects ../ref/..
  • This competition used to run smoothly but hasn’t been active for several months.
Image

Question

Have there been any updates to Codabench in the last 8 months that could explain this issue?

Activity

  1. johanneskruse commented on Jul 26, 2025

    @johanneskruse
    Author

    This error also occurs when using "Rerun Submission" on previously successful submissions.

  2. ihsaan-ullah commented on Jul 28, 2025

    @ihsaan-ullah
    Collaborator

    Hi @johanneskruse

    This was a temporary problem which is fixed now. You have to update your worker to use cpu1.1 tag instead of latest.

    Let us know if this works for you.

  3. Didayolo commented on Jul 29, 2025

    @Didayolo
    Member

    Indeed, please restart your worker on codalab/competitions-v2-compute-worker:cpu1.1 (or gpu1.1) to fix this problem.

    Soon we'll fix the latest tag with #1946.

  4. johanneskruse commented on Jul 30, 2025

    @johanneskruse
    Author

    Hi. Thanks for the prompt response.

    I've tried changing it to cpu1.1; however, a new issue seems to have occurred:

    [2025-07-30 12:45:53,297: ERROR/ForkPoolWorker-1] Task compute_worker_run[4dcab18f-6560-4cbb-8328-1caa40d524a4] raised unexpected: BadZipFile('File is not a zip file')
    Traceback (most recent call last):
      File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 385, in trace_task
        R = retval = fun(*args, **kwargs)
      File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 650, in __protected_call__
        return self.run(*args, **kwargs)
      File "/compute_worker.py", line 112, in run_wrapper
        run.prepare()
      File "/compute_worker.py", line 787, in prepare
        zip_file = self._get_bundle(url, path, cache=cache_this_bundle)
      File "/compute_worker.py", line 456, in _get_bundle
        with ZipFile(bundle_file, 'r') as z:
      File "/usr/local/lib/python3.9/zipfile.py", line 1268, in __init__
        self._RealGetContents()
      File "/usr/local/lib/python3.9/zipfile.py", line 1335, in _RealGetContents
        raise BadZipFile("File is not a zip file")
    zipfile.BadZipFile: File is not a zip file
  5. ihsaan-ullah commented on Jul 31, 2025

    @ihsaan-ullah
    Collaborator

    Can you try with a new submission and verify first that the zip is ok.

  6. johanneskruse commented on Jul 31, 2025

    @johanneskruse
    Author

    I'm now using the same compute worker that was used during the competition (AWS: t3.xlarge) and submitting our dummy submission, which was provided as an example. Getting the following error logs:

    [2025-07-31 12:31:18,961: INFO/ForkPoolWorker-1] Destroying submission temp dir: /codabench/tmphvsooa43
    [2025-07-31 12:31:19,081: ERROR/ForkPoolWorker-1] Task compute_worker_run[b18ed328-9a7e-41c8-a069-d872fbfff749] raised unexpected: ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='www.codabench.org', port=443): Read timed out. (read timeout=150)"))
    Traceback (most recent call last):
      File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 384, in _make_request
        six.raise_from(e, None)
      File "<string>", line 2, in raise_from
      File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 380, in _make_request
        httplib_response = conn.getresponse()
      File "/usr/local/lib/python3.9/http/client.py", line 1377, in getresponse
        response.begin()
      File "/usr/local/lib/python3.9/http/client.py", line 320, in begin
        version, status, reason = self._read_status()
      File "/usr/local/lib/python3.9/http/client.py", line 281, in _read_status
        line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
      File "/usr/local/lib/python3.9/socket.py", line 704, in readinto
        return self._sock.recv_into(b)
      File "/usr/local/lib/python3.9/ssl.py", line 1275, in recv_into
        return self.read(nbytes, buffer)
      File "/usr/local/lib/python3.9/ssl.py", line 1133, in read
        return self._sslobj.read(len, buffer)
    socket.timeout: The read operation timed out
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
        resp = conn.urlopen(
      File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 637, in urlopen
        retries = retries.increment(method, url, error=e, _pool=self,
      File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 368, in increment
        raise six.reraise(type(error), error, _stacktrace)
      File "/usr/local/lib/python3.9/site-packages/urllib3/packages/six.py", line 686, in reraise
        raise value
      File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 597, in urlopen
        httplib_response = self._make_request(conn, method, url,
      File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
        self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
      File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 306, in _raise_timeout
        raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
    urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='www.codabench.org', port=443): Read timed out. (read timeout=150)

    The During handling of the above exception, another exception occurred: occurs a couple of times, before:

    [2025-07-31 12:46:26,676: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection...
    Traceback (most recent call last):
      File "/usr/local/lib/python3.9/site-packages/celery/worker/consumer/consumer.py", line 318, in start
        blueprint.start(self)
      File "/usr/local/lib/python3.9/site-packages/celery/bootsteps.py", line 119, in start
        step.start(parent)
      File "/usr/local/lib/python3.9/site-packages/celery/worker/consumer/consumer.py", line 596, in start
        c.loop(*c.loop_args())
      File "/usr/local/lib/python3.9/site-packages/celery/worker/loops.py", line 83, in asynloop
        next(loop)
      File "/usr/local/lib/python3.9/site-packages/kombu/asynchronous/hub.py", line 364, in create_loop
        cb(*cbargs)
      File "/usr/local/lib/python3.9/site-packages/kombu/transport/base.py", line 238, in on_readable
        reader(loop)
      File "/usr/local/lib/python3.9/site-packages/kombu/transport/base.py", line 220, in _read
        drain_events(timeout=0)
      File "/usr/local/lib/python3.9/site-packages/amqp/connection.py", line 508, in drain_events
        while not self.blocking_read(timeout):
      File "/usr/local/lib/python3.9/site-packages/amqp/connection.py", line 514, in blocking_read
        return self.on_inbound_frame(frame)
      File "/usr/local/lib/python3.9/site-packages/amqp/method_framing.py", line 55, in on_frame
        callback(channel, method_sig, buf, None)
      File "/usr/local/lib/python3.9/site-packages/amqp/connection.py", line 520, in on_inbound_method
        return self.channels[channel_id].dispatch_method(
      File "/usr/local/lib/python3.9/site-packages/amqp/abstract_channel.py", line 145, in dispatch_method
        listener(*args)
      File "/usr/local/lib/python3.9/site-packages/amqp/connection.py", line 650, in _on_close
        raise error_for_code(reply_code, reply_text,
    amqp.exceptions.ConnectionForced: (0, 0): (320) CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'
    [2025-07-31 12:48:17,421: INFO/MainProcess] Connected to amqp://63a35e45-cb28-4eed-9c2c-af8072bf9d9c:**@www.codabench.org:5672/988f0756-7c60-40e6-9e6b-40d830125d83
    [2025-07-31 12:48:17,638: INFO/MainProcess] mingle: searching for neighbors
    [2025-07-31 12:48:18,990: INFO/MainProcess] mingle: all alone
  7. johanneskruse commented on Jul 31, 2025

    @johanneskruse
    Author

    For context. I'm running:

    docker stop compute_worker
    docker rm compute_worker
    docker pull codalab/competitions-v2-compute-worker:cpu1.1
    docker run \
        -v /codabench:/codabench \
        -v /var/run/docker.sock:/var/run/docker.sock \
        -d \
        --env-file .env \
        --name compute_worker \
        --restart unless-stopped \
        --log-opt max-size=50m \
        --log-opt max-file=3 \
        codalab/competitions-v2-compute-worker:cpu1.1
  8. Didayolo commented on Aug 1, 2025

    @Didayolo
    Member

    @johanneskruse This issue was closed because of the merging of #1946.

    But this probably won't fix your problem. It looks like a configuration related problem, for instance a network or SSL certificate problem.

    Did something in particular change from when the competition was working fine?

  9. johanneskruse commented on Aug 3, 2025

    @johanneskruse
    Author

    It seems to be working now!

  10. Didayolo commented on Aug 5, 2025

    @Didayolo
    Member

    Glad to hear that.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions