Troubleshooting¶
Common problems, by where they show up. Every cara command reports an error as one line that says what is wrong
and, where it can, how to fix it. If yours isn't covered here, please
open an issue with the command and its output.
Starting CARA¶
set CARA_SECRET_KEY in .env.envis missing or has no secret key.bash quickstart.shwrites one; by hand, copy.env.exampleto.envand setCARA_SECRET_KEYto the output ofopenssl rand -hex 32.port is already allocated- Another program uses port 8501, 8000 or 5432, often a second copy of CARA. Stop it, or change the left-hand
port under
ports:incompose.yaml. - Everyone is logged out
- Logins last
CARA_TOKEN_MINUTES(12 hours by default), and changingCARA_SECRET_KEYends them all. Logging in again is enough.
Encoding¶
cara encode: needs the encode extra (torch is missing)- The default Docker image leaves PyTorch out. Build the backend with it, with or without a GPU (Where to encode).
torch.cuda.is_available()printsFalsein Docker- The container doesn't see the GPU. Check that
nvidia-smiworks on the host, that the NVIDIA Container Toolkit is installed, and thatcompose.gpu.yamlwas passed todocker compose up. 401or403while downloading a model- The model is gated, as DINOv3 is. Accept its licence on its Hugging Face page, put
HF_TOKENin.env, and restart the backend withdocker compose up -d. unable to allocate shared memory- The processes that load images exchange them through shared memory. Inside Docker,
compose.yamlgives the backend enough; elsewhere, run with--num-workers 0. - Out of GPU memory
- Lower
--batch-size, for example to 16.
Creating a study¶
- An encoder or a sampling method is missing on the New study page
- An encoder is offered for nearest neighbours only once it has embedded the set's queries. Show embeddings under
Candidate sampling lists what each encoder covers and the
cara encodecommand for what is missing. - Nearest neighbours isn't offered for composed queries
cara encodecan't embed a query made of an image and a text. Give the queries candidates in their query file, or an embedding from your composed retrieval method (What gets encoded).
During a study¶
- A setting can't be changed: it is locked
- The first judgment of an annotation query fixes the pools, the grouping and the review rules, so that every judgment is comparable (What the first judgment locks). To try other settings, create a new study on the same dataset.
- An annotator sees no queries
- Once pilot queries are chosen, annotators see only the queries assigned to them. Assign them pilot queries in the Pilot tab, or start annotation in the Annotation tab.
- The pages are slow with many annotators
- The web app runs every browser session in one process. See Capacity.