Jiasheng
10/13/2025, 3:03 AM-resume, I began hitting a persistent “Failed to publish file” error:
ERROR ~ Failed to publish file:
/home/jiashengw/my_project/NF_DROP/work/fb/70e66acca5fd6a1252359cb08b1d37/savedObjects/Other;
to: /home/jiashengw/my_project/NF_DROP/output/processed_data/aberrant_splicing/datasets/savedObjects/Other [copy]
-- See log file for details
After this, the pipeline terminates with the standard
Please refer to troubleshooting docs message.
I tried deleting everything under .../savedObjects/ and resuming the pipeline,
but the same error appears again after some time.
It seems that multiple FRASER post-processing steps (e.g. CALCULATESTATS, EXTRACTRESULTS, SUMMARY) may be trying to publish to the same savedObjects/<group> directory concurrently, leading to a DirectoryNotEmptyException.
Has anyone encountered a similar issue or found a workaround?
Should these FRASER publishing steps be serialized, or is there a recommended configuration to prevent concurrent writes to the same directory?
Any insights would be greatly appreciated.
Below is the relevant _config_:
process {
// ---------- FRASER ----------
withName: /DROP:ABERRANTSPLICING:FRASER_.*/ {
cpus = 8
time = '48h'
memory = { [64.GB, 96.GB, 128.GB][ Math.min(task.attempt-1, 2) ] }
maxForks = 6
}
withName: /DROP:ABERRANTSPLICING:FRASER_(EXTRACTRESULTS|CALCULATESTATS|ANNOTATEGENES|SUMMARY).*/ {
cpus = 2
time = '24h'
memory = { [24.GB, 32.GB, 48.GB][ Math.min(task.attempt-1, 2) ] }
maxForks = 1
}
}
Below is the main code:
nextflow run nf-core/drop -r dev \
-profile singularity \
-c /home/jiashengw/my_project/NF_DROP/data_config/drop_slurm.config \
--input /home/jiashengw/my_project/NF_DROP/data_config/samplesheet.filtered.tsv \
--outdir /home/jiashengw/my_project/NF_DROP/output \
--genome hg38 \
--ucsc_fasta /home/jiashengw/my_project/NF_DROP/data_config/hg38.fa \
--gene_annotation /home/jiashengw/my_project/NF_DROP/data_config/gene_annotation.yaml \
-resume
I also attached a screen shot if that helps. Please let me know if you need more details. Many thanks in advance!Nicolas Vannieuwkerke
10/13/2025, 8:03 AMJiasheng
10/13/2025, 3:22 PMcpus and maxForks values (to speed things up a bit). After that change, I started getting the “Failed to publish file” error.
I tried to delete the entire output/ folder and resumed the pipeline again according to your suggestion. So far, the error hasn’t appeared (it usually popped up within the first couple of minutes). The pipeline now seems to be running normally, though I’ll keep an eye on it to confirm that it’s truly progressing and not getting stuck again like yesterday.
I’ll keep you updated — thank you for the suggestion! At least for now, the error is gone and everything looks stable.
By the way, do you have any estimate for when the reworked FRASER integration might be released?
Thanks again for your help and for maintaining this pipeline!Nicolas Vannieuwkerke
10/14/2025, 7:27 AMNicolas Vannieuwkerke
10/14/2025, 7:27 AMJiasheng
10/15/2025, 8:49 PMoutput/ folder was indeed the solution to that issue. Hopefully, this workaround can also help others who might run into the same problem.
Thanks again for your help and support!Nicolas Vannieuwkerke
10/16/2025, 7:23 AM