Troubleshooting¶
Each entry gives the symptom, the cause and the action. For errors in pipeline runs on user data, read Usage: Troubleshooting.
Pixi: "received more arguments than expected"¶
Symptom. A pixi task stops before Snakemake starts:
× task 'test' received more arguments than expected
help: use `--` to separate task arguments from extra passthrough arguments
Cause. The tasks lint, dry-run, test and test-report accept only two positional arguments, config and profile.
Pixi does not give other arguments to Snakemake.
Action. Write -- before the Snakemake arguments:
Pixi: "could not find the task 'setup'"¶
Symptom. pixi run test stops with could not find the task 'setup'.
Cause. test depends on setup. setup exists only in the dev and docs environments.
Action. Run the task in dev: pixi run -e dev test <config> <profile>.
Apptainer: "Could not write info to setgroups"¶
Symptom. Each container job fails. The log contains:
Cause. Ubuntu 24.04 and later use AppArmor to block unprivileged user namespaces. Rootless Apptainer needs them.
Action. Allow unprivileged user namespaces:
The setting stays until the next reboot. The e2e job in test.yml does this step on the CI runner.
Apptainer: job hangs in a container¶
Symptom. A container job starts but does not end, and its log stops changing. Trimmomatic is an example.
In CI, the e2e job stops at its 90-minute limit. The job times show the rule as "unfinished".
Cause. The Apptainer package from conda-forge uses squashfuse_ll.
That squashfuse_ll can hang when it reads files in a SIF image.
See conda-forge/squashfuse-feedstock#21 and issue #39.
Older 3t-seq versions installed this Apptainer through pixi on linux-64.
Action.
- Run
which apptainer. If the path is in.pixi/or in a conda env, do not use that Apptainer. - Run
pixi installto update the pixi environments. The currentpixi.tomldoes not install Apptainer. - Install Apptainer 1.2.5 or later from your system packages or your cluster modules. See Getting Started.
- Run
which apptaineragain. Make sure that it shows the system Apptainer.
Rule: "TMPDIR: unbound variable"¶
Symptom. A FastQC job fails in the container. The log contains TMPDIR: unbound variable.
Cause. Snakemake runs shell commands with set -u. The container did not get $TMPDIR, so the variable is not set.
Action. Use {resources.tmpdir} in rule shell commands, not $TMPDIR. Snakemake writes the value into the command.
The FastQC rules use {resources.tmpdir} since PR #27. Snakemake always gives tmpdir a value.
The laptop test profile sets it to /tmp in default-resources.
Container check waits or fails on missing images¶
Symptom. The check job prints Waiting for: ghcr.io/boulardlab/... for a long time.
Or it fails with missing images in ghcr.io.
Cause. One of these:
- A build workflow still runs for the PR head commit. The job waits for it, up to 210 minutes.
- A build workflow failed. The job prints
a build workflow failed for <sha>. - No workflow builds the image. The job prints
No build running for <sha>. Examples:- The PR comes from a fork.
- The pin changed, but the
Dockerfiledid not change, sobuild-3t-seq.ymldid not start. - The
salmontepin has a version that is not built.
Action.
- Open the
build-3t-seq.ymlorbuild-salmonte.ymlrun for the commit. Read its log. - If the build failed, correct the cause and push again.
- If no build ran, start one with
gh workflow run build-3t-seq.yml --ref <branch>. - When the image exists, run the failed
checkjob again.
For fork PRs, read Fork PRs.
dockerfile-sync shows a diff¶
Symptom. The job dockerfile-sync fails with:
Cause. A conda env in workflow/env/ changed. The committed Dockerfile or the pin in workflow/Snakefile is old.
Another cause is a manual edit of one of these files.
Action.
- Run
pixi run containerize. - Commit
Dockerfileandworkflow/Snakefiletogether. - Push. Wait for
build-3t-seq.ymlto build the newenv-<hash>.
Snakemake: "Unable to find environment in container image"¶
Symptom. A job stops with Unable to find environment in container image.
Cause. The pinned image does not contain the conda env of the rule. The pin and the conda envs do not agree.
Action. Do the procedure in Change a conda env.
release-please: "Bad credentials"¶
Symptom. The release-please job on main fails with Bad credentials.
Cause. RELEASE_PLEASE_TOKEN expired, or its owner deleted it.
Action. Replace the token. See Replace the token.
Release PR runs no checks¶
Symptom. The release PR or the git tag vX.Y.Z starts no workflows.
The required checks stay at "Expected — Waiting for status to be reported".
Cause. Release-please used GITHUB_TOKEN. GitHub does not start workflows for events from GITHUB_TOKEN.
release-please.yml uses GITHUB_TOKEN when the secret RELEASE_PLEASE_TOKEN is empty or missing.
Action.
- Make sure that the secret exists:
gh secret list --repo boulardlab/3t-seq. - If it does not exist, set it. See Replace the token.
- Push a commit to the release PR branch, for example an edit of
CHANGELOG.md. A push by a person starts the checks. -
If the git tag exists but the image workflows did not run, start them on the tag: