Hi,
I have set up a simple workflow that runs a shell script to create a json file from a bash array.
The workflow has been generated by running:
renku run --input ${input_script.sh} -- ${input_script.sh} ${out_json}
This command runs fine and creates the desired json file.
When I want to update the json file, by changing the bash array in ${input_script} and running
renku update -a
or by simply rerunning the workflow using:
renku rerun ${out-json}
I get this CWL error:
...
PermissionError: [Errno 13] Permission denied: ''
ERROR:cwltool:Exception while running job
Traceback (most recent call last):
File "/home/jovyan/.local/pipx/venvs/renku/lib/python3.8/site-packages/cwltool/job.py", line 373, in _execute
rcode = _job_popen(
File "/home/jovyan/.local/pipx/venvs/renku/lib/python3.8/site-packages/cwltool/job.py", line 939, in _job_popen
sproc = subprocess.Popen(
File "/opt/conda/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/conda/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: ''
[job 2042118b-30bb-4955-b619-6c615072f355] completed permanentFail
WARNING:cwltool:[job 2042118b-30bb-4955-b619-6c615072f355] completed permanentFail
Error: Unable to finish re-executing workflow; check the workflow execution outline above and the generated /tmp/tmp5u19stjy/01cee7a2-c4e1-496a-8933-e1994c5d8a4c.cwl file for potential issues, then remove the /tmp/tmp5u19stjy/01cee7a2-c4e1-496a-8933-e1994c5d8a4c.cwl file and try again
I have given all permissions to ${input_script.sh}
using chmod 777
, but the error persists and I’m wondering if there is something else I miss?
I have set up a minimal example of this here. Also this project contains a similar (althought more complex) setup with an R script to create a data file as input to a renku workflow, but here updating/rerunning works fine.
Best,
Almut