attempts to write to /var/lib/cwl with docker hint but no docker installed
See original GitHub issueOn the 2 systems I have available to me (one of them Ubuntu 16), /var/lib is not user writable, so running the conformance test fails:
cwltest --tool cwltool --test=conformance_test_v1.0.yaml --junit-xml result.xml --basedir v1.0
Test [1/82] Got workflow error
Traceback (most recent call last):
File "/software/[...]/python-2.7.12/lib/python2.7/site-packages/cwltool/main.py", line 223, in single_job_executor
r.run(**kwargs)
File "/software/[...]/python-2.7.12/lib/python2.7/site-packages/cwltool/job.py", line 149, in run
stageFiles(self.pathmapper, os.symlink)
File "/software/[...]/python-2.7.12/lib/python2.7/site-packages/cwltool/process.py", line 176, in stageFiles
os.makedirs(os.path.dirname(p.target), 0755)
File "/software/[...]/python-2.7.12/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/software/[...]/python-2.7.12/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/lib/cwl'
Is this expected, and will I hit the same problem trying to run “real” cwl scripts? That is, is sudo required to use cwltool fully?
Issue Analytics
- State:
- Created 7 years ago
- Comments:21 (13 by maintainers)
Top Results From Across the Web
Environment variables in Compose | Docker Documentation
When you run docker-compose up with this configuration, Compose looks for the POSTGRES_VERSION environment variable in the shell and substitutes its value in....
Read more >Docker ARG, ENV and .env - a Complete Guide - vsupalov.com
Stop struggling to build Docker images and configuring your dockerized apps ... When you try to set a variable which is not ARG...
Read more >Why is Docker installed but not Docker Compose?
Trying the url in a browser https://github.com/docker/compose/releases/download/2.2.2/docker-compose-linux-x86_64 shows that page was not found.
Read more >docker-compose does not set environment variables #7423
And I found that environment variables are working only from .env file placed in the folder where the docker-compose command is executed ( ......
Read more >How to Resolve the “cannot connect to the Docker daemon ...
Not having the proper user privileges also triggers the error. You need to be able to access the Docker engine without using the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, we’ve narrowed down the trigger and I can reproduce your error.
FYI:
cwltool
works great for folks without docker and without root; until this gets fixed you can work around the bug with--no-container
or have docker installed and available to regular users.Hi @mr-c I tested with no-container. here is the output
It worked fine on my system. I think it is correct behaviour because incase of
no-container
we never reachvar/lib/cwl
as we check foruse container
variable here https://github.com/common-workflow-language/cwltool/blob/master/cwltool/process.py#L573.