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

πŸ› utils data_config build command PermissionError #28

Open
1 task
shnizzedy opened this issue Mar 8, 2022 · 0 comments
Open
1 task

πŸ› utils data_config build command PermissionError #28

shnizzedy opened this issue Mar 8, 2022 · 0 comments
Labels
bug Something isn't working user-reported

Comments

@shnizzedy
Copy link
Member

Describe the bug

  1. In this figure, is the /media/12T/practice is read-write and the /media, /media/12T directories are read-only? So the permission was denied?
    screenshot of excerpts from DATA_SETTINGS_FILE and cpac utils data_config build output
    ― 이지원 Google Groups/cpax_forum: Re: RuntimeError

That's a bug! It looks like the utils data_config build command writes to outputSubjectListLocation from DATA_SETTINGS_FILE (

Usage: cpac utils data_config build [OPTIONS] DATA_SETTINGS_FILE

), but cpac isn't automatically binding that directory. In this example, /media/12T in your container doesn't point to anywhere, so you can't write to that path (/media/12T/practice in your container points to /media/12T/practice locally, but the parent directories aren't accessible from the container). As a stopgap until the issue is resolved, you could pass the outputSubjectListLocation file or directory as a custom binding or as the working directory, or run from the outputSubjectListLocation directory.
― @shnizzedy Google Groups/cpax_forum: Re: RuntimeError

To reproduce

No response

Expected behavior

cpac binds the output directory automatically

Acceptance criteria

  • cpac binds the output directory automatically

Screenshots

No response

C-PAC version

C-PAC v1.8.3, cpac v0.4.0

Container platform

No response

Docker and/or Singularity version(s)

No response

Additional context

No response

@shnizzedy shnizzedy added bug Something isn't working user-reported labels Mar 8, 2022
@shnizzedy shnizzedy changed the title πŸ› [User-reported Bug] πŸ› utils data_config build command PermissionError Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user-reported
Projects
Status: No status
Development

No branches or pull requests

1 participant