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

Spurious "File system ftp://... already exists" errors when staging #1725

Closed
jpfeuffer opened this issue Sep 8, 2020 · 9 comments
Closed
Milestone

Comments

@jpfeuffer
Copy link

Bug report

Expected behavior and actual behavior

Expected: no errors during the staging of files
Actual: in roughly 30% of the cases I get the error with the output below

Steps to reproduce the problem

nextflow run nf-core/proteomicslfq -r dev -profile docker --input https://raw.githubusercontent.com/bigbio/proteomics-metadata-standard/master/annotated-projects/PXD001819/sdrf.tsv --database https://raw.githubusercontent.com/nf-core/test-datasets/proteomicslfq/testdata-aws/uniprot_yeast_reviewed_isoforms_ups1_crap.fasta_td.fasta

Program output

Error executing process > 'raw_file_conversion (11)'

Caused by:
  File system `ftp://ftp.pride.ebi.ac.uk` already exists

Environment

  • Nextflow version: any (e.g. 20.07.01)
  • Java version: 8
  • Operating system: macOS, Linux
  • Bash version: zsh, bash

Additional context

I am reading ftp URIs from a csv file and passing them to a subsequent step via
input: path(...)

This is most likely a race condition when creating the file system. I can see the error here:

throw new IllegalStateException("File system `$base` already exists")

@pditommaso
Copy link
Member

Could you please provide the .nextflow.log file? tx!

@jpfeuffer
Copy link
Author

Here you go. nextflow.log

@pditommaso
Copy link
Member

Oh !

java.lang.IllegalStateException: File system `ftp://ftp.pride.ebi.ac.uk` already exists
	at nextflow.file.http.XFileSystemProvider.newFileSystem(XFileSystemProvider.groovy:78)
	at nextflow.file.http.XFileSystemProvider.getFileSystem(XFileSystemProvider.groovy:128)
	at nextflow.file.http.XFileSystemProvider.getPath(XFileSystemProvider.groovy:138)
	at java.nio.file.Paths.get(Paths.java:143)
	at nextflow.file.FileHelper.asPath(FileHelper.groovy:278)
	at nextflow.file.FileHelper.asPath(FileHelper.groovy:261)
	at nextflow.file.FileHelper$asPath$0.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at nextflow.processor.TaskProcessor.normalizeToPath(TaskProcessor.groovy:1655)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:168)
	at nextflow.processor.TaskProcessor.normalizeInputToFiles(TaskProcessor.groovy:1670)

@jpfeuffer
Copy link
Author

Right! After some retrying it usually assembles all the tasks correctly. Sometimes it does not, though.

@pditommaso
Copy link
Member

I guess it's race condition while loading that package.

@pditommaso

This comment has been minimized.

@pditommaso

This comment has been minimized.

@pditommaso
Copy link
Member

Fixed f65296b

@pditommaso pditommaso added this to the v20.10.0 milestone Sep 9, 2020
@jpfeuffer
Copy link
Author

That was quick. Thanks a lot! Looking forward to v20.10 then.

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

No branches or pull requests

2 participants