Skip to content

Index

Upgrade Codabench

Run these commands for every upgrade. They put the site in maintenance mode, pull the new version, rebuild and restart the containers, apply the Django migrations and collect the static files:

Bash
cd codabench
touch maintenance_mode/maintenance.on
git pull
docker compose build && docker compose up -d
docker compose exec django ./manage.py migrate
docker compose exec django ./manage.py collectstatic --noinput
rm maintenance_mode/maintenance.on

Then check the manual interventions below for every version between yours and the new one, and apply them in order.

Upgrade compute workers

Some versions also change the compute worker. In that case, upgrade every compute worker connected to your instance, for the default queue and for custom queues.

Before upgrading a worker, check that no submission is running on it:

Bash
docker ps

Docker (worker started with docker compose, as described in Compute Worker Management & Setup). In the folder containing the worker's docker-compose.yml:

Bash
docker compose down
docker compose pull
docker compose up -d

If your docker-compose.yml pins an image tag instead of latest, change it to the new version first.

Podman (worker started with run_podman.sh, as described in Compute Worker Management with Podman):

Bash
podman stop compute_worker && podman rm compute_worker
podman pull codalab/codabench-compute-worker:latest
./run_podman.sh

Note

Old workers started with docker run, or using the old codalab/competitions-v2-compute-worker image, should be replaced by a worker set up as described in Compute Worker Management & Setup.

Manual interventions

Manual interventions needed depending on which version you are upgrading from: