[186_1] [TaskRunner:getChromDepth_removeTmpDir] [W...
# sarek
m
[186_1] [TaskRunner:getChromDepth_removeTmpDir] [WARNING] Task: 'getChromDepth_removeTmpDir' failed but qualifies for retry. Total task failures (including this one): 1. Task command: 'rm -rf /fusion/s3/patientuser-nf-runs/work/results/batch-sarek-ec2293a1-1df9-461a-8320-5e7da500dbb2-1761854165/1761854165/dc/d1e62c66ee7cfa5f31f60d2ffdd97b/strelka/workspace/chromDepth.tsv.tmpdir' And soon after reproducible failures with some samples, but not all, that begin at cleanup with [186_1] [TaskManager] [ERROR] Failed to complete command task: 'getChromDepth_removeTmpDir' launched from master workflow, error code: 1, command: 'rm -rf /fusion/s3/patientuser-nf-runs/work/results/batch-sarek-ec2293a1-1df9-461a-8320-5e7da500dbb2-1761854165/1761854165/dc/d1e62c66ee7cfa5f31f60d2ffdd97b/strelka/workspace/chromDepth.tsv.tmpdir' [getChromDepth_removeTmpDir] Last 1 stderr lines from task (of 1 total lines): [186_1] [TaskManager] [ERROR] [2025-10-31T085033.643163Z] [ip-10-1-12-225.us-east-2.compute.internal] [186_1] [getChromDepth_removeTmpDir] rm: can't remove '/fusion/s3/patientuser-nf-runs/work/results/batch-sarek-ec2293a1-1df9-461a-8320-5e7da500dbb2-1761854165/1761854165/dc/d1e62c66ee7cfa5f31f60d2ffdd97b/strelka/workspace/chromDepth.tsv.tmpdir/chromDepth.tsv.000.txt.tmpdir': Directory not empty [186_1] [TaskManager] [ERROR] Shutting down task submission. Waiting for remaining tasks to complete. [186_1] [TaskManager] [ERROR] Failed to complete sub-workflow task: 'EstimateSeqErrorParams' launched from master workflow, failed sub-workflow classname: 'EstimateSequenceErrorWorkflow' [186_1] [WorkflowRunner] [ERROR] Workflow terminated due to the following task errors: [186_1] [WorkflowRunner] [ERROR] Failed to complete sub-workflow task: 'EstimateSeqErrorParams' launched from master workflow, failed sub-workflow classname: 'EstimateSequenceErrorWorkflow' https://github.com/Illumina/strelka/issues/69 suggests fusion sync issues may underlie. My files are in s3, but I find fusion seems to be the source of intermittent failures. I have a mount-s3 of the same bucket on the container host, and could mount it in. But it's unclear if this will let me remove fusion.
t
If something simple like
rm -rf
fails, I think we can safely assume that this problem is not specific to sarek, but probably, as you said, rooted in Fusion/S3. Maybe there is someone over at the Nextflow Slack (possibly in #fusion-fs or #infrastructure-aws) who has experience with that or has some ideas. If you have any hints that this problem may be load-related (your statement that it is "reproducible" would argue against that), what you could do from the pipeline side is try to throttle it, e.g. with
process.maxForks
or
executor.queueSize
...
m
reproducible = Other samples have worked, but twice this sample has failed at the same step NFCORE_SAREKsarekBAM_VARIANT_CALLING_GERMLINE_ALLBAM VARIANT CALLING SINGLE STRELKASTRELKA_SINGLE
t
Could be coincidence, or something "special" about that sample/step. If you run this sample by itself and it works, throttling could help, but if it fails by itself, then you have to find some other solution.
m
I do have this in my config
Copy code
profiles {
  awsbatch {
    executor {
       // still unclear on this setting
       queueSize = 1
    }
  }
}
but its voodoo, and I don't know if it's achieving anything.
t
Does this redefine the
awsbatch
nf-core profile (I would think it does), or does it just add to it? Because the former seems not like a good idea. I think this should be OK:
Copy code
executor {
   name      = 'awsbatch'
   queueSize = 1
}
A queue size of 1 ensures that only one process runs at the same time, which kind of defies the idea of a (virtual) cluster -- you might as well run on a single server/VM. On a physical HPC/cluster, where there is one storage system, throttling can definitely help. I have no idea what the effects would be in the cloud, where everything seems more distributed (and you have a lot of other users) ... For testing, you could use sarek's
--step
and a reduced samplesheet to only target potentially problematic steps and samples.