Open FarahZKhan opened 6 years ago
I get an error running this without --provenance
[job compare_to_rm_3] Using cached output in /home/mcrusoe/cwltool/bcbio_cache/0cc080e1df32f35ed64162e045488fc4
Workflow error, try again with --debug for more information:
Output file path /var/lib/cwl/stg8dc33acf-dc9f-4d14-925c-38c981e754e5/b1-analysis_blocks.bed must be within designated output directory (/var/spool/cwl) or an input file pass through.
Perhaps a bug with --cache
Raw output from /home/mcrusoe/cwltool/bcbio_cache/fe7d3920d9ec92d976f759ec567a0f63/cwl.output.json: {
"vc_rec": [
{
"analysis": "variant",
"batch_samples": [
"Test2",
"Test1"
],
"config__algorithm__callable_regions": {
"class": "File",
"path": "/var/lib/cwl/stgaa41a863-3253-4f23-92a6-2db7d5e3fec0/b1-analysis_blocks.bed"
},
It runs fine without the --provenance
flag now.
So I am back to the initial issue i.e.
Traceback (most recent call last):
File "/home/ubuntu/cwlprov_testing/bin/cwltool", line 11, in <module>
sys.exit(main())
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/main.py", line 575, in main
secret_store=runtimeContext.secret_store)
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/main.py", line 222, in init_job_order
basedir=file_uri(str(input_basedir) + "/"))
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/main.py", line 289, in printdeps
{"$include", "$schemas", "location"}, loadref)
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/process.py", line 921, in scandeps
r.extend(scandeps(base, v, reffields, urlfields, loadref, urljoin=urljoin))
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/process.py", line 924, in scandeps
r.extend(scandeps(base, d, reffields, urlfields, loadref, urljoin=urljoin))
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/process.py", line 927, in scandeps
normalizeFilesDirs(r)
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/pathmapper.py", line 82, in normalizeFilesDirs
visit_class(job, ("File", "Directory"), addLocation)
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/utils.py", line 233, in visit_class
visit_class(d, cls, op)
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/utils.py", line 230, in visit_class
visit_class(rec[d], cls, op)
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/utils.py", line 233, in visit_class
visit_class(d, cls, op)
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/utils.py", line 228, in visit_class
op(rec)
File "/home/ubuntu/cwlprov_testing/lib/python3.6/site-packages/cwltool/pathmapper.py", line 58, in addLocation
raise validate.ValidationException("Anonymous file object must have 'contents' and 'basename' fields.")
EDIT: The input json file has "path" for each file object whereas somewhere in scapdeps or printdeps the code is looking for "location". I am not entirely sure about the base of the issue but if I replace all path:
with location:
, this particular error is resolved when running with --provenance
:
Anonymous file object must have 'contents' and 'basename' fields.
Expected Behavior
The workflow should execute successfully creating RO.
Actual Behavior
Workflow fails with the following error:
Anonymous file object must have 'contents' and 'basename' fields.
Workflow Code
https://github.com/bcbio/test_bcbio_cwl/blob/master/somatic/somatic-workflow/main-somatic.cwl
Full Traceback
Your Environment