Skills › Knowledge Work Plugins › nextflow-development › troubleshooting.md
troubleshooting.md
137 lines · bio-research/skills/nextflow-development/references/troubleshooting.md at 2574e29
5## Contents
6- [Exit Codes](#exit-codes)
7- [HPC/Singularity Issues](#hpcsingularity-issues)
8- [Pipeline Failures](#pipeline-failures)
9- [RNA-seq Specific](#rna-seq-specific)
10- [Sarek Specific](#sarek-specific)
11- [ATAC-seq Specific](#atac-seq-specific)
12- [Resource Management](#resource-management)
13- [Getting Help](#getting-help)
Contents
- Exit Codes
- HPC/Singularity Issues
- Pipeline Failures
- RNA-seq Specific
- Sarek Specific
- ATAC-seq Specific
- Resource Management
- Getting Help
15## Exit Codes
17Common exit codes indicating resource issues (per [nf-core docs](https://nf-co.re/docs/usage/troubleshooting/crash_halfway)):
19| Code | Cause | Fix |
20|------|-------|-----|
21| 137 | Out of memory | `--max_memory '32.GB'` or `'64.GB'` for WGS |
22| 143 | Out of memory | `--max_memory '32.GB'` or `'64.GB'` for WGS |
23| 104, 134, 139, 247 | Out of memory | Increase `--max_memory` |
24| 1 | General error | Check `.nextflow.log` for details |
26Most pipelines auto-retry with 2x then 3x resources before failing.
Exit Codes
Common exit codes indicating resource issues (per nf-core docs):
| Code | Cause | Fix |
|---|---|---|
| 137 | Out of memory | --max_memory '32.GB' or '64.GB' for WGS |
| 143 | Out of memory | --max_memory '32.GB' or '64.GB' for WGS |
| 104, 134, 139, 247 | Out of memory | Increase --max_memory |
| 1 | General error | Check .nextflow.log for details |
Most pipelines auto-retry with 2x then 3x resources before failing.
Raw lines 15 to 27HPC/Singularity Issues
Raw lines 28 to 2930### Singularity cache issues
31```bash
32export NXF_SINGULARITY_CACHEDIR="$HOME/.singularity/cache"
33mkdir -p $NXF_SINGULARITY_CACHEDIR
34```
Singularity cache issues
export NXF_SINGULARITY_CACHEDIR="$HOME/.singularity/cache"
mkdir -p $NXF_SINGULARITY_CACHEDIRRaw lines 30 to 3536### Using Singularity instead of Docker
37On HPC systems without Docker, use Singularity:
38```bash
39nextflow run nf-core/<pipeline> -profile singularity ...
40```
42> **Note**: For basic environment setup (Docker, Nextflow, Java installation), see the inline instructions in Step 1 of SKILL.md.
Using Singularity instead of Docker
On HPC systems without Docker, use Singularity:
nextflow run nf-core/<pipeline> -profile singularity ...Note: For basic environment setup (Docker, Nextflow, Java installation), see the inline instructions in Step 1 of SKILL.md.Raw lines 36 to 43
Pipeline Failures
Raw lines 44 to 4546### Container pull failed
47- Check network connectivity
48- Try: `-profile singularity` instead of docker
49- For offline: `nf-core download <pipeline> -r <version>`
Container pull failed
- Check network connectivity
- Try:
-profile singularityinstead of docker - For offline:
nf-core download <pipeline> -r <version>
51### "No such file" errors
52- Use **absolute paths** in samplesheet
53- Verify files exist: `ls /path/to/file`
"No such file" errors
- Use absolute paths in samplesheet
- Verify files exist:
ls /path/to/file
55### Resume not working
56```bash
57# Check work directory exists
58ls -la work/
60# Force clean restart (loses cache)
61rm -rf work/ .nextflow*
62nextflow run nf-core/<pipeline> ...
63```
Resume not working
# Check work directory exists
ls -la work/
# Force clean restart (loses cache)
rm -rf work/ .nextflow*
nextflow run nf-core/<pipeline> ...Raw lines 55 to 64RNA-seq Specific
Raw lines 65 to 6667### STAR index fails
68- Increase memory: `--max_memory '64.GB'`
69- Or provide pre-built: `--star_index /path/to/star/`
STAR index fails
- Increase memory:
--max_memory '64.GB' - Or provide pre-built:
--star_index /path/to/star/
71### Low alignment rate
72- Verify genome matches species
73- Check FastQC for adapter contamination
74- Try different aligner: `--aligner hisat2`
Low alignment rate
- Verify genome matches species
- Check FastQC for adapter contamination
- Try different aligner:
--aligner hisat2
76### Strandedness detection fails
77- Specify explicitly: `--strandedness reverse`
78- Common values: `forward`, `reverse`, `unstranded`
Strandedness detection fails
- Specify explicitly:
--strandedness reverse - Common values:
forward,reverse,unstranded
Sarek Specific
Raw lines 80 to 81BQSR fails
- Check known sites for genome
- Skip for non-standard references:
--skip_bqsr
86### Mutect2 no variants
87- Verify tumor/normal pairing
88- Check samplesheet `status` column: 0=normal, 1=tumor
Mutect2 no variants
- Verify tumor/normal pairing
- Check samplesheet
statuscolumn: 0=normal, 1=tumor
DeepVariant GPU issues
- Ensure NVIDIA Docker runtime configured
- Or use CPU mode (slower)
ATAC-seq Specific
Raw lines 99 to 100101### Low FRiP score
102- Check library complexity in `plotFingerprint/`
103- May indicate over-transposition
Low FRiP score
- Check library complexity in
plotFingerprint/ - May indicate over-transposition
105### Few peaks called
106- Lower threshold: `--macs_qvalue 0.1`
107- Use broad peaks: `--narrow_peak false`
Few peaks called
- Lower threshold:
--macs_qvalue 0.1 - Use broad peaks:
--narrow_peak false
109### High duplicates
110- Normal for low-input samples
111- Pipeline removes by default
112- Consider deeper sequencing
High duplicates
- Normal for low-input samples
- Pipeline removes by default
- Consider deeper sequencing
Resource Management
Raw lines 114 to 115133## Getting Help
1351. Check `.nextflow.log` for error details
1362. Search nf-core Slack: https://nf-co.re/join
1373. Open issue on GitHub: https://github.com/nf-core/<pipeline>/issues
Getting Help
- Check
.nextflow.logfor error details - Search nf-core Slack: https://nf-co.re/join
- Open issue on GitHub: https://github.com/nf-core/<pipeline>/issues