Skip to content
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

File literal not written to safe path #2

Open
mr-c opened this issue May 7, 2018 · 1 comment
Open

File literal not written to safe path #2

mr-c opened this issue May 7, 2018 · 1 comment
Labels

Comments

@mr-c
Copy link

mr-c commented May 7, 2018

Test [89/128] Test file literal as input

Test failed: /home/jenkins/cwlexec-0.1/cwlexec --outdir=/tmp/tmpgf1k1pyg --quiet v1.0/cat3-tool.cwl v1.0/file-literal.yml
Test file literal as input
Returned non-zero
Failed to write file "/common-workflow-language-master/v1.0/v1.0/file1-78a66506": /common-workflow-language-master/v1.0/v1.0/file1-78a66506 (Permission denied)

Here the user doesn't have permissions to write to /common-workflow-language-master/v1.0/v1.0/

@liuboxa
Copy link
Collaborator

liuboxa commented Jun 11, 2018

cwlexec needs a working directory to run workflow, the working directory should be shared with a cluster, by default, the working directory is $HOME/cwl-workdir

For this case, cwlexec will create a temporary file in the working directory (/home/jenkins/cwl-workdir) to save the contents of the literal file, so we should make sure the cwlexec runner has the permission (read and write) to access the directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants