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

docker folder permissions on Mac #324

Closed
claymcleod opened this issue Jan 19, 2020 · 4 comments
Closed

docker folder permissions on Mac #324

claymcleod opened this issue Jan 19, 2020 · 4 comments
Labels
devex Developers, developers, developers (developer experience)

Comments

@claymcleod
Copy link
Contributor

claymcleod commented Jan 19, 2020

Hey @mlin,

I got the following error when I did miniwdl run_self_test: wondering if you have ever seen it before? I haven't had a chance to dive in an look, probably can do so tonight but wanted to get your thoughts if you have run into it before.

2020-01-19 16:23:47,191 miniwdl-run ERROR task hello (/var/folders/z9/7n3_5hks21s7d1bz5ppx2zqxx4ymd8/T/miniwdl_run_self_test_fvg99d4e/test.wdl Ln 17 Col 13) failed
2020-01-19 16:23:47,191 miniwdl-run ERROR RuntimeError, docker task rejected: invalid mount config for type "bind": bind source path does not exist: /var/folders/z9/7n3_5hks21s7d1bz5ppx2zqxx4ymd8/T/miniwdl_run_self_test_fvg99d4e/20200119_162345_hello_caller/write_/tmpn181hh6p

For the record, docker is configured to work with my non-root user, though I don't think that's the issue:

 cmcleod@x86_64-apple-darwin13  ~/Desktop/ngsderive  docker ps                                                                              1 ↵  7692  16:23:47
CONTAINER ID        IMAGE                                 COMMAND                  CREATED             STATUS              PORTS                               NAMES
d725e8b8bd94        postgres                              "docker-entrypoint.s…"   2 months ago        Up 3 days           5432/tcp, 0.0.0.0:54320->5342/tcp   vis_postgres_1
@mlin
Copy link
Collaborator

mlin commented Jan 20, 2020 via email

@claymcleod
Copy link
Contributor Author

claymcleod commented Jan 20, 2020 via email

@mlin
Copy link
Collaborator

mlin commented Jan 21, 2020

I'm thinking that if miniwdl run_self_test fails, it should determine if (i) current platform is Mac and (ii) TMPDIR is under /var. If so, print a message something like "Hint: try export TMPDIR=/tmp prior to miniwdl; more info https://...". This should appear toward the end of the standard error log to ensure it's visible on the user's terminal.

I don't have access to a Mac right now, probably will soon but help in the meantime would definitely be appreciated!

@mlin mlin changed the title docker folder permissions docker folder permissions on Mac Jan 21, 2020
@mlin mlin added the devex Developers, developers, developers (developer experience) label Jan 30, 2020
mlin added a commit that referenced this issue Feb 2, 2020
*- default `--runtime-cpu-max` and `--runtime-memory-max` to the resources available in Docker for Mac's virtual machine, rather than the entire host
* `miniwdl run_self_test` failure displays hint on overriding `TMPDIR` (#324)
* logging & documentation refinements

Some problems remain, particularly with the full test suite; tracking in #145
@mlin
Copy link
Collaborator

mlin commented Feb 3, 2020

Added the warning and consolidated other macOS-related issues in #145

@mlin mlin closed this as completed Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devex Developers, developers, developers (developer experience)
Projects
None yet
Development

No branches or pull requests

2 participants