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
cwl failed to locate the output file if it has '+' in its name #1098
Comments
It is because If URL encoding does not work with Here is a details. The spec of File object says that the
And the RFC3987 that defines the syntax of IRI says (See section 2.1):
... and RFC3986 says:
And
|
Hmm, if The I think this line of code handles some (if not all) of the char restrictions, and If I encode the /usr/local/bin/cwltool 1.0.20181217162649
Resolved 'cp.cwl' to 'file:///home/yaobo/Downloads/cp.cwl'
[job cp.cwl] initializing from file:///home/yaobo/Downloads/cp.cwl
[job cp.cwl] {
"srcfile": {
"class": "File",
"location": "file:///home/yaobo/Downloads/colo-829-bl+12_i.fq.gz",
"size": 0,
"basename": "colo-829-bl+12_i.fq.gz",
"nameroot": "colo-829-bl+12_i.fq",
"nameext": ".gz"
},
"newname": "colo-829-bl_i%2B.fastq.gz"
}
[job cp.cwl] path mappings is {
"file:///home/yaobo/Downloads/colo-829-bl+12_i.fq.gz": [
"/home/yaobo/Downloads/colo-829-bl+12_i.fq.gz",
"/tmp/4yjehwa4/colo-829-bl+12_i.fq.gz",
"File",
false
]
}
[job cp.cwl] command line bindings is [
{
"position": [
-1000000,
0
],
"datum": "cp"
},
{
"position": [
1,
"srcfile"
],
"shellQuote": true,
"datum": {
"class": "File",
"location": "file:///home/yaobo/Downloads/colo-829-bl+12_i.fq.gz",
"size": 0,
"basename": "colo-829-bl+12_i.fq.gz",
"nameroot": "colo-829-bl+12_i.fq",
"nameext": ".gz",
"path": "/tmp/4yjehwa4/colo-829-bl+12_i.fq.gz",
"dirname": "/tmp/4yjehwa4"
}
},
{
"position": [
2,
"newname"
],
"shellQuote": true,
"datum": "colo-829-bl_i%2B.fastq.gz"
}
]
[job cp.cwl] initial work dir {
"file:///home/yaobo/Downloads/colo-829-bl+12_i.fq.gz": [
"/home/yaobo/Downloads/colo-829-bl+12_i.fq.gz",
"/tmp/4yjehwa4/colo-829-bl+12_i.fq.gz",
"File",
true
]
}
[job cp.cwl] /tmp/4yjehwa4$ cp \
/tmp/4yjehwa4/colo-829-bl+12_i.fq.gz \
colo-829-bl_i%2B.fastq.gz
Could not collect memory usage, job ended before monitoring began.
[job cp.cwl] Job error:
Error collecting output for parameter 'outfile':
cp.cwl:24:3: Traceback (most recent call last):
cp.cwl:24:3:
cp.cwl:24:3: File "/usr/local/lib/python3.6/dist-packages/cwltool/command_line_tool.py", line 612, in collect_output_ports
cp.cwl:24:3: compute_checksum=compute_checksum)
cp.cwl:24:3:
cp.cwl:24:3: File "/usr/local/lib/python3.6/dist-packages/cwltool/command_line_tool.py", line 702, in collect_output
cp.cwl:24:3: with fs_access.open(rfile["location"], "rb") as f:
cp.cwl:24:3:
cp.cwl:24:3: File "/usr/local/lib/python3.6/dist-packages/cwltool/stdfsaccess.py", line 41, in open
cp.cwl:24:3: return open(self._abs(fn), mode)
cp.cwl:24:3:
cp.cwl:24:3: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/4yjehwa4/colo-829-bl_i%252B.fastq.gz'
[job cp.cwl] completed permanentFail
[job cp.cwl] {}
[job cp.cwl] Removing input staging directory /tmp/tmp_h7xfo4k
[job cp.cwl] Removing temporary directory /tmp/tmpm0tlppsi
{}
Final process status is permanentFail |
Fixed in #1446 |
Expected Behavior
copy and rename an input file
Actual Behavior
cwltool failed to locate the output
Workflow Code
Full Traceback
Your Environment
1.0.20181217162649
The text was updated successfully, but these errors were encountered: