gift-surg / NiftyMIC

NiftyMIC is a research-focused toolkit for motion correction and volumetric image reconstruction of 2D ultra-fast MRI.
BSD 3-Clause "New" or "Revised" License
139 stars 35 forks source link

Container permission denied #20

Open ajdneuro12 opened 2 years ago

ajdneuro12 commented 2 years ago

Hello,

Thanks for this great tool. I am running into a permissions issue using as a Singularity container using the latest pull:

PermissionError: [Errno 13] Permission denied: '/app/NiftyMIC/MONAIfbs/monaifbs/models/checkpoint_dynUnet_DiceXent.pt'

Thanks for any ideas!

renbem commented 2 years ago

Hi, How do you access the docker image?

EricDeveaud commented 2 years ago

in my case previous singularity build, permission of the file is incorrect

total 357755
-rw------- 1 root root 366340534 Apr 12 14:28 checkpoint_dynUnet_DiceXent.pt

should be 644 at least not 600

regards

Eric

Arfentul commented 10 months ago

Hi Michael,

Apologies, I'm having trouble re-building the docker image. I believe adding a chmod to the Dockerfile will fix this issue. RUN chmod -R 777 /app

It would be fantastic to have that update available on DockerHub.

Much appreciated, Clemente

Arfentul commented 7 months ago

I figured out my issue with re-building the docker! I pushed a copy of the container to DockerHub with the permissions adjusted and it's working as a Singularity container: https://hub.docker.com/r/arfentul/niftymic.sing