Skip to content

πŸ› utils data_config build command PermissionErrorΒ #28

@shnizzedy

Description

@shnizzedy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions