Open OgnjenMilicevic opened 3 years ago
I find that the wrapper bash script (.../execution/script
) that Cromwell generates tries to capture stdout and stderr in a convoluted way:
tee
to make a copy to .../execution/stdout (and stderr, respectively)tee
. So, tee
writes another copy to it's own stdout.tee
's stdout (inherited from the parent script) and writes it to .../execution/stdout
. Similary for stderr.So, both copies generated by "tee" end up in .../exection/stdout
! The output is duplicated! This causes problems with subsequent steps in the WDL script.
To work around this, I've changed the -o
and -e
options to:
-o ${out}.slurm -e ${err}.slurm
noting that ${out}
has the same value as ${cwd}/execution/stdout
in my environment.
Unless I configured something improperly, all output from stdout() is doubled when running with SLURM. Example pipeline:
The error raised with cromwell-53 is: Failed to read_float("/data/og/ted/cromwell-executions/WholeGenomeGermlineSingleSample/00090ef9-5211-4f18-9de9-daf3de791408/call-SumFloats/execution/stdout") (reason 1 of 1): For input string: "15.0 15.0" The stdout file truly contains this. Running with local backend returns no error. Contents of conf file:
Any thoughts?