Repository navigation
Closed
Description
Encountered this error when trying to test the latest release.
cwl:
cwlVersion: v1.0
class: CommandLineTool
doc: "Invoke 'samtools index' to create a 'BAI' index"
requirements:
- class: DockerRequirement
dockerPull: biocontainers/samtools:latest
- class: InitialWorkDirRequirement
listing: [ $(inputs.alignments) ]
inputs:
alignments:
type: File
inputBinding:
position: 1
valueFrom: $(self.basename)
label: Input bam file.
outputs:
alignments_with_index:
type: File
secondaryFiles: .bai
outputBinding:
glob: $(inputs.alignments.basename)
baseCommand: ["samtools", "index"]
inputs:
{
"alignments": {
"location": "s3://funnel-test/NA12878.bam",
"class": "File"
}
}
logs:
[2018-01-10 14:41:10.047] [ERROR] Failed to use Bindings
org.rabix.bindings.BindingException: org.rabix.bindings.cwl.processor.CWLPortProcessorException: org.rabix.bindings.cwl.processor.CWLPortProcessorException: Error: Provider "s3" not installed while processing value: {metadata=null, format=null, dirname=null, nameroot=null, path=null, basename=null, size=null, nameext=null, contents=null, checksum=null, location=s3://funnel-test/NA12878.bam, secondaryFiles=[], class=File}
at org.rabix.bindings.cwl.CWLProcessor.preprocess(CWLProcessor.java:108) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.CWLBindings.preprocess(CWLBindings.java:79) ~[rabix-cli.jar:na]
at org.rabix.backend.tes.service.impl.LocalTESWorkerServiceImpl$TaskRunCallable.call(LocalTESWorkerServiceImpl.java:236) [rabix-cli.jar:na]
at org.rabix.backend.tes.service.impl.LocalTESWorkerServiceImpl$TaskRunCallable.call(LocalTESWorkerServiceImpl.java:220) [rabix-cli.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_152]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_152]
Caused by: org.rabix.bindings.cwl.processor.CWLPortProcessorException: org.rabix.bindings.cwl.processor.CWLPortProcessorException: Error: Provider "s3" not installed while processing value: {metadata=null, format=null, dirname=null, nameroot=null, path=null, basename=null, size=null, nameext=null, contents=null, checksum=null, location=s3://funnel-test/NA12878.bam, secondaryFiles=[], class=File}
at org.rabix.bindings.cwl.processor.callback.CWLPortProcessorHelper.setFileProperties(CWLPortProcessorHelper.java:70) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.CWLProcessor.preprocess(CWLProcessor.java:98) ~[rabix-cli.jar:na]
... 7 common frames omitted
Caused by: org.rabix.bindings.cwl.processor.CWLPortProcessorException: Error: Provider "s3" not installed while processing value: {metadata=null, format=null, dirname=null, nameroot=null, path=null, basename=null, size=null, nameext=null, contents=null, checksum=null, location=s3://funnel-test/NA12878.bam, secondaryFiles=[], class=File}
at org.rabix.bindings.cwl.processor.CWLPortProcessor.processValues(CWLPortProcessor.java:56) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.CWLPortProcessor.processInputs(CWLPortProcessor.java:31) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.callback.CWLPortProcessorHelper.setFileProperties(CWLPortProcessorHelper.java:68) ~[rabix-cli.jar:na]
... 8 common frames omitted
Caused by: java.nio.file.FileSystemNotFoundException: Provider "s3" not installed
at java.nio.file.Paths.get(Paths.java:147) ~[na:1.8.0_152]
at org.rabix.bindings.cwl.helper.CWLFileValueHelper.buildMissingInfo(CWLFileValueHelper.java:380) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.callback.CWLFilePropertiesProcessorCallback.process(CWLFilePropertiesProcessorCallback.java:28) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.CWLPortProcessor.processValue(CWLPortProcessor.java:70) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.CWLPortProcessor.processValues(CWLPortProcessor.java:54) ~[rabix-cli.jar:na]
... 10 common frames omitted
[2018-01-10 14:41:10.235] [ERROR] Failed to retrieve TESTask
java.util.concurrent.ExecutionException: org.rabix.backend.tes.service.TESServiceException: Failed to use Bindings
at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.8.0_152]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) [na:1.8.0_152]
at org.rabix.backend.tes.service.impl.LocalTESWorkerServiceImpl$1.run(LocalTESWorkerServiceImpl.java:169) ~[rabix-cli.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_152]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_152]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_152]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_152]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_152]
Caused by: org.rabix.backend.tes.service.TESServiceException: Failed to use Bindings
at org.rabix.backend.tes.service.impl.LocalTESWorkerServiceImpl$TaskRunCallable.call(LocalTESWorkerServiceImpl.java:302) ~[rabix-cli.jar:na]
at org.rabix.backend.tes.service.impl.LocalTESWorkerServiceImpl$TaskRunCallable.call(LocalTESWorkerServiceImpl.java:220) ~[rabix-cli.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_152]
... 3 common frames omitted
Caused by: org.rabix.bindings.BindingException: org.rabix.bindings.cwl.processor.CWLPortProcessorException: org.rabix.bindings.cwl.processor.CWLPortProcessorException: Error: Provider "s3" not installed while processing value: {metadata=null, format=null, dirname=null, nameroot=null, path=null, basename=null, size=null, nameext=null, contents=null, checksum=null, location=s3://funnel-test/NA12878.bam, secondaryFiles=[], class=File}
at org.rabix.bindings.cwl.CWLProcessor.preprocess(CWLProcessor.java:108) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.CWLBindings.preprocess(CWLBindings.java:79) ~[rabix-cli.jar:na]
at org.rabix.backend.tes.service.impl.LocalTESWorkerServiceImpl$TaskRunCallable.call(LocalTESWorkerServiceImpl.java:236) ~[rabix-cli.jar:na]
... 5 common frames omitted
Caused by: org.rabix.bindings.cwl.processor.CWLPortProcessorException: org.rabix.bindings.cwl.processor.CWLPortProcessorException: Error: Provider "s3" not installed while processing value: {metadata=null, format=null, dirname=null, nameroot=null, path=null, basename=null, size=null, nameext=null, contents=null, checksum=null, location=s3://funnel-test/NA12878.bam, secondaryFiles=[], class=File}
at org.rabix.bindings.cwl.processor.callback.CWLPortProcessorHelper.setFileProperties(CWLPortProcessorHelper.java:70) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.CWLProcessor.preprocess(CWLProcessor.java:98) ~[rabix-cli.jar:na]
... 7 common frames omitted
Caused by: org.rabix.bindings.cwl.processor.CWLPortProcessorException: Error: Provider "s3" not installed while processing value: {metadata=null, format=null, dirname=null, nameroot=null, path=null, basename=null, size=null, nameext=null, contents=null, checksum=null, location=s3://funnel-test/NA12878.bam, secondaryFiles=[], class=File}
at org.rabix.bindings.cwl.processor.CWLPortProcessor.processValues(CWLPortProcessor.java:56) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.CWLPortProcessor.processInputs(CWLPortProcessor.java:31) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.callback.CWLPortProcessorHelper.setFileProperties(CWLPortProcessorHelper.java:68) ~[rabix-cli.jar:na]
... 8 common frames omitted
Caused by: java.nio.file.FileSystemNotFoundException: Provider "s3" not installed
at java.nio.file.Paths.get(Paths.java:147) ~[na:1.8.0_152]
at org.rabix.bindings.cwl.helper.CWLFileValueHelper.buildMissingInfo(CWLFileValueHelper.java:380) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.callback.CWLFilePropertiesProcessorCallback.process(CWLFilePropertiesProcessorCallback.java:28) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.CWLPortProcessor.processValue(CWLPortProcessor.java:70) ~[rabix-cli.jar:na]
at org.rabix.bindings.cwl.processor.CWLPortProcessor.processValues(CWLPortProcessor.java:54) ~[rabix-cli.jar:na]
... 10 common frames omitted
Metadata
Metadata
Assignees
Labels
No labels
Activity
adamstruck commentedon Jan 10, 2018
I encounter a similar problem if I compile the master branch and rerun:
milos-ljubinkovic commentedon Jan 11, 2018
Yeah, sorry about that, was way too focused on staging files that I completely forgot to test the case when they are already on s3.
Moved the remote filesystem init sooner in the program flow on this branch: https://github.com/rabix/bunny/tree/bugfix/s3-files
Also note that the s3 lib supports either
s3://[endpoint]/[bucket]/[path]or
s3:///[bucket]/[path]with assuming the endpoint is s3.amazonaws.comJust
s3://[bucket]/[path]isn't supported for now due to the way URIs in java work, but I guess I could add the endpoint as the default host to the URIs in the future or something.adamstruck commentedon Jan 11, 2018
I am still getting the same errors using https://github.com/rabix/bunny/tree/bugfix/s3-files
milos-ljubinkovic commentedon Jan 11, 2018
What is your rabix.tes.storage.base url?
adamstruck commentedon Jan 11, 2018
milos-ljubinkovic commentedon Jan 11, 2018
Try it with
s3://[endpoint]/[bucket]/[path]or
s3:///[bucket]/[path]Just
s3://[bucket]/[path]isn't supported for now due to the way URIs in java work, but I guess I could add the endpoint as the default host to the URIs in the future or something.adamstruck commentedon Jan 11, 2018
Neither of those alternatives did the trick. Still errors at this line with the same error: https://github.com/rabix/bunny/blob/bugfix/s3-files/rabix-cli/src/main/java/org/rabix/cli/BackendCommandLine.java#L388
milos-ljubinkovic commentedon Jan 11, 2018
It works on my side as long as the input urls have the same endpoint as the storage base, maybe that is the issue?
input:
config:
rabix.tes.storage.base=s3://s3.us-east-2.amazonaws.com/testbunny/output:
Tested with examples/dna2protein
It also works with
s3://s3.amazonaws.com/testbunny/ands3:///testbunny/on both config and inputs but exceptions happen when you mix and match. I'll see about making the s3 lib endpoint agnostic in the future.adamstruck commentedon Jan 13, 2018
I was unable to get your example above to work. I am not sure what the problem is. I traced the execution in IntelliJ and confirmed that your new code is being called, but I am still getting the
Error injecting constructor, java.nio.file.FileSystemNotFoundException: S3 filesystem not yet created. Use newFileSystem() insteaderror.milos-ljubinkovic commentedon Jan 14, 2018
Think I got it, my local maven repo had a different s3 lib version under the the same version number so it behaved differently. I've updated the s3-files branch with this version of the lib so it should work.
adamstruck commentedon Jan 16, 2018
That did the trick.