Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The pipeline randomly crashes with java.nio.file.NoSuchFileException: XXX_empty.pdf #49

Closed
mfoll opened this issue Oct 9, 2015 · 1 comment

Comments

@mfoll
Copy link
Member

mfoll commented Oct 9, 2015

The issue seems to be related to an NFS copy error on our IARC cluster. Sometimes an empty pdf file is not correctly copied at the end of R_regression process, but as nextflow is tracking it, it crashes later on when it tries to delete it.

It's not a bug in our pipeline neither in nextflow.

Nextflow is not checking at the end of a process if files are correctly copied. The last line of the R_regression file .command.run.1 is:

cp -fR *.pdf /path/to/my/folder/BAM/VCF || true

I do see the XXX_empty.pdf in the corresponding nextflow workfolder but it has not been copied into the /path/to/my/folder/BAM/VCF folder, even though the process ended with no error.

@mfoll mfoll self-assigned this Oct 9, 2015
@mfoll mfoll added this to the v0.2 milestone Oct 9, 2015
@mfoll
Copy link
Member Author

mfoll commented Oct 9, 2015

A work around is to replace:

PDF.flatten().filter { it.size() == 0 }.subscribe { it.delete() }

with this bit in the collect_vcf_resultprocess:

empty_files = file(params.out_folder+'/VCF/*_empty.pdf')
    for( def file : empty_files ) {
            file.delete()
    }

Doing so we just delete the files effectively copied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant