This is on the same system as recently discussed. Other WDL workflows have worked successfully. The glob functionality does not successfully gather files and fails the Cromwell workflow.
workflow test {
call output_printer {
input:
DOCKER="ubuntu:16.04"
}
call gather_outputs_array {
input:
DOCKER="ubuntu:16.04",
OUTPUTS_ARRAY=output_printer.OUTPUTS_ARRAY
}
}
task output_printer {
String DOCKER
command {
for i in $(seq 1 10); do echo "$i" > "output_$i.txt"; done
}
output {
Array[File] OUTPUTS_ARRAY = glob("output_*.txt")
}
runtime {
docker: "${DOCKER}"
}
}
task gather_outputs_array {
Array[File] OUTPUTS_ARRAY
String DOCKER
command {
cat ${sep = " " OUTPUTS_ARRAY} > output.txt
}
output {
File OUTPUT_FILE = "output.txt"
}
runtime {
docker: "${DOCKER}"
}
}
root@___________:/# cat cromwell-workflow-logs/workflow.829441c6-06df-43a1-9657-e4f23fb941e9.log
2020-06-01 16:19:27,509 INFO - MaterializeWorkflowDescriptorActor [UUID(829441c6)]: Parsing workflow as WDL draft-2
2020-06-01 16:19:27,515 INFO - MaterializeWorkflowDescriptorActor [UUID(829441c6)]: Call-to-Backend assignments: test.gather_outputs_array -> TES, test.output_printer -> TES
2020-06-01 16:19:30,573 INFO - WorkflowExecutionActor-829441c6-06df-43a1-9657-e4f23fb941e9 [UUID(829441c6)]: Starting test.output_printer
2020-06-01 16:19:33,324 INFO - TesAsyncBackendJobExecutionActor [UUID(829441c6)test.output_printer:NA:1]: `for i in $(seq 1 10); do echo "$i" > "output_$i.txt"; done`
2020-06-01 16:19:33,326 INFO - TesAsyncBackendJobExecutionActor [UUID(829441c6)test.output_printer:NA:1]: Calculated TES outputs (found 6):
Output(Some(rc),Some(test.output_printer.rc),Some(/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/rc),/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/rc,Some(FILE))
Output(Some(stdout),Some(test.output_printer.stdout),Some(/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stdout),/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stdout,Some(FILE))
Output(Some(stderr),Some(test.output_printer.stderr),Some(/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stderr),/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stderr,Some(FILE))
Output(Some(commandScript),Some(test.output_printer.commandScript),Some(/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/script),/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/script,Some(FILE))
Output(Some(globDir.0),Some(test.output_printer.globDir.0),Some(/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161),/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161,Some(DIRECTORY))
Output(Some(globList.0),Some(test.output_printer.globList.0),Some(/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161.list),/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161.list,Some(FILE))
2020-06-01 16:19:33,326 INFO - TesAsyncBackendJobExecutionActor [UUID(829441c6)test.output_printer:NA:1]: Calculated TES inputs (found 1):
Input(Some(commandScript),Some(test.output_printer.commandScript),Some(/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/script),/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/script,Some(FILE),None)
2020-06-01 16:19:33,326 INFO - TesAsyncBackendJobExecutionActor [UUID(829441c6)test.output_printer:NA:1]: `for i in $(seq 1 10); do echo "$i" > "output_$i.txt"; done`
2020-06-01 16:19:34,279 INFO - TesAsyncBackendJobExecutionActor [UUID(829441c6)test.output_printer:NA:1]: job id: 829441c6_639c5c978fe34c999e5c3bcc09f1fd50
2020-06-01 16:19:34,285 INFO - TesAsyncBackendJobExecutionActor [UUID(829441c6)test.output_printer:NA:1]: Status change from - to Running
2020-06-01 16:24:54,104 INFO - TesAsyncBackendJobExecutionActor [UUID(829441c6)test.output_printer:NA:1]: Job 829441c6_639c5c978fe34c999e5c3bcc09f1fd50 is complete
2020-06-01 16:24:54,105 INFO - TesAsyncBackendJobExecutionActor [UUID(829441c6)test.output_printer:NA:1]: Status change from Running to Complete
root@___________:/# curl -X GET "http://cromwell:8000/api/workflows/v1/829441c6-06df-43a1-9657-e4f23fb941e9/metadata?expandSubWorkflows=true" -H "accept: application/json" | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7699 100 7699 0 0 626k 0 --:--:-- --:--:-- --:--:-- 626k
{
"workflowName": "test",
"workflowProcessingEvents": [
{
"cromwellId": "cromid-a7f8cb4",
"description": "PickedUp",
"timestamp": "2020-06-01T16:19:27.347Z",
"cromwellVersion": "50-5df1e07"
},
{
"cromwellId": "cromid-a7f8cb4",
"description": "Finished",
"timestamp": "2020-06-01T16:24:55.557Z",
"cromwellVersion": "50-5df1e07"
}
],
"metadataSource": "Unarchived",
"actualWorkflowLanguageVersion": "draft-2",
"submittedFiles": {
"workflow": "\r\n\r\nworkflow test {\r\n\r\ncall output_printer {\r\ninput:\r\nDOCKER=\"ubuntu:16.04\"\r\n\r\n}\r\n\r\ncall gather_outputs_array {\r\ninput:\r\nDOCKER=\"ubuntu:16.04\",\r\nOUTPUTS_ARRAY=output_printer.OUTPUTS_ARRAY\r\n}\r\n\r\n}\r\n\r\ntask output_printer {\r\n\r\nString DOCKER\r\n\r\ncommand {\r\nfor i in $(seq 1 10); do echo \"$i\" > \"output_$i.txt\"; done\r\n}\r\n\r\noutput {\r\nArray[File] OUTPUTS_ARRAY = glob(\"output_*.txt\")\r\n}\r\n\r\nruntime {\r\ndocker: \"${DOCKER}\"\r\n}\r\n}\r\n\r\ntask gather_outputs_array {\r\n\r\nArray[File] OUTPUTS_ARRAY\r\nString DOCKER\r\n\r\ncommand {\r\n\r\ncat ${sep = \" \" OUTPUTS_ARRAY} > output.txt\r\n\r\n}\r\n\r\noutput {\r\nFile OUTPUT_FILE = \"output.txt\"\r\n}\r\n\r\nruntime {\r\ndocker: \"${DOCKER}\"\r\n}\r\n\r\n\r\n}",
"root": "",
"options": "{\n\n}",
"inputs": "{}",
"workflowUrl": "",
"labels": "{}"
},
"calls": {
"test.output_printer": [
{
"retryableFailure": false,
"executionStatus": "Failed",
"stdout": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stdout",
"backendStatus": "Complete",
"compressedDockerSize": 44248681,
"commandLine": "for i in $(seq 1 10); do echo \"$i\" > \"output_$i.txt\"; done",
"shardIndex": -1,
"runtimeAttributes": {
"preemptible": "true",
"failOnStderr": "false",
"continueOnReturnCode": "0",
"docker": "ubuntu:16.04",
"maxRetries": "0"
},
"callCaching": {
"allowResultReuse": false,
"effectiveCallCachingMode": "CallCachingOff"
},
"inputs": {
"DOCKER": "ubuntu:16.04"
},
"failures": [
{
"causedBy": [
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_1.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_10.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_2.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_3.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_4.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_5.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_6.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_7.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_8.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_9.txt"
}
],
"message": ""
}
],
"jobId": "829441c6_639c5c978fe34c999e5c3bcc09f1fd50",
"backend": "TES",
"end": "2020-06-01T16:24:55.305Z",
"stderr": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stderr",
"callRoot": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer",
"attempt": 1,
"executionEvents": [
{
"startTime": "2020-06-01T16:19:31.444Z",
"description": "PreparingJob",
"endTime": "2020-06-01T16:19:31.771Z"
},
{
"startTime": "2020-06-01T16:19:30.575Z",
"description": "Pending",
"endTime": "2020-06-01T16:19:30.575Z"
},
{
"startTime": "2020-06-01T16:24:55.105Z",
"description": "UpdatingJobStore",
"endTime": "2020-06-01T16:24:55.305Z"
},
{
"startTime": "2020-06-01T16:19:30.575Z",
"description": "RequestingExecutionToken",
"endTime": "2020-06-01T16:19:31.444Z"
},
{
"startTime": "2020-06-01T16:19:31.444Z",
"description": "WaitingForValueStore",
"endTime": "2020-06-01T16:19:31.444Z"
},
{
"startTime": "2020-06-01T16:19:31.771Z",
"description": "RunningJob",
"endTime": "2020-06-01T16:24:55.105Z"
}
],
"start": "2020-06-01T16:19:30.575Z"
}
]
},
"outputs": {},
"workflowRoot": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9",
"actualWorkflowLanguage": "WDL",
"id": "829441c6-06df-43a1-9657-e4f23fb941e9",
"inputs": {},
"labels": {
"cromwell-workflow-id": "cromwell-829441c6-06df-43a1-9657-e4f23fb941e9"
},
"submission": "2020-06-01T16:19:17.719Z",
"status": "Failed",
"failures": [
{
"causedBy": [
{
"causedBy": [
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_1.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_10.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_2.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_3.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_4.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_5.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_6.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_7.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_8.txt"
},
{
"causedBy": [],
"message": "Could not process output, file not found: /cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161/output_9.txt"
}
],
"message": ""
}
],
"message": "Workflow failed"
}
],
"end": "2020-06-01T16:24:55.557Z",
"start": "2020-06-01T16:19:27.347Z"
}
{
"id": "829441c6_639c5c978fe34c999e5c3bcc09f1fd50",
"state": "COMPLETE",
"name": "test.output_printer",
"description": "829441c6-06df-43a1-9657-e4f23fb941e9:BackendJobDescriptorKey_CommandCallNode_test.output_printer:-1:1",
"inputs": [
{
"name": "commandScript",
"description": "test.output_printer.commandScript",
"url": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/script",
"path": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/script",
"type": "FILE",
"content": null
}
],
"outputs": [
{
"name": "rc",
"description": "test.output_printer.rc",
"url": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/rc",
"path": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/rc",
"type": "FILE"
},
{
"name": "stdout",
"description": "test.output_printer.stdout",
"url": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stdout",
"path": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stdout",
"type": "FILE"
},
{
"name": "stderr",
"description": "test.output_printer.stderr",
"url": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stderr",
"path": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stderr",
"type": "FILE"
},
{
"name": "commandScript",
"description": "test.output_printer.commandScript",
"url": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/script",
"path": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/script",
"type": "FILE"
},
{
"name": "globDir.0",
"description": "test.output_printer.globDir.0",
"url": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161",
"path": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161",
"type": "DIRECTORY"
},
{
"name": "globList.0",
"description": "test.output_printer.globList.0",
"url": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161.list",
"path": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161.list",
"type": "FILE"
}
],
"resources": {
"cpu_cores": null,
"preemptible": true,
"ram_gb": null,
"disk_gb": null,
"zones": null
},
"executors": [
{
"image": "ubuntu@sha256:a4fc0c40360ff2224db3a483e5d80e9164fe3fdce2a8439d2686270643974632",
"command": [
"/bin/bash",
"/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/script"
],
"workdir": null,
"stdin": null,
"stdout": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stdout",
"stderr": "/cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/stderr",
"env": null
}
],
"volumes": null,
"tags": null,
"logs": [
{
"logs": null,
"metadata": null,
"start_time": null,
"end_time": null,
"outputs": null,
"system_logs": [
"{\"MoreThanOneActiveJobFound\":false,\"ActiveJobWithMissingAutoPool\":false,\"AttemptNumber\":1,\"NodeAllocationFailed\":false,\"NodeDiskFull\":false,\"JobState\":0,\"JobStartTime\":\"2020-06-01T16:19:37.1255378Z\",\"JobEndTime\":null,\"JobSchedulingError\":null,\"JobPreparationTaskState\":1,\"JobPreparationTaskExitCode\":0,\"JobPreparationTaskExecutionResult\":0,\"JobPreparationTaskStartTime\":\"2020-06-01T16:23:58.447322Z\",\"JobPreparationTaskEndTime\":\"2020-06-01T16:24:13.022002Z\",\"JobPreparationTaskFailureInformation\":null,\"JobPreparationTaskContainerState\":\"created\",\"JobPreparationTaskContainerError\":null,\"TaskState\":3,\"TaskExitCode\":0,\"TaskExecutionResult\":0,\"TaskStartTime\":\"2020-06-01T16:24:13.963847Z\",\"TaskEndTime\":\"2020-06-01T16:24:19.497711Z\",\"TaskFailureInformation\":null,\"TaskContainerState\":\"created\",\"TaskContainerError\":null}"
]
}
],
"creation_time": "06/01/2020 16:19:33"
}
root@___________:/# ls -l cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/
ls: cannot access 'cromwell-executions/test/829441c6-06df-43a1-9657-e4f23fb941e9/call-output_printer/execution/glob-f085e32532fc20b7c6300ae574bdb161': No such file or directory
total 0
-rwxrwxrwx 1 root root 476 Jun 1 16:19 download_files_script
d????????? ? ? ? ? ? glob-f085e32532fc20b7c6300ae574bdb161
-rwxrwxrwx 1 root root 131 Jun 1 16:24 glob-f085e32532fc20b7c6300ae574bdb161.list
-rwxrwxrwx 1 root root 2 Jun 1 16:24 rc
-rwxrwxrwx 1 root root 3567 Jun 1 16:24 script
-rwxrwxrwx 1 root root 0 Jun 1 16:24 stderr
-rwxrwxrwx 1 root root 0 Jun 1 16:24 stdout