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

Mounted folders fail in Docker images after 2024-12-10 (failed to set working directory: chdir /path: no such file or directory) #267

Closed
wieluk opened this issue Feb 13, 2025 · 2 comments

Comments

@wieluk
Copy link

wieluk commented Feb 13, 2025

Hey, I’m not sure if this is a general bug or specific to our setup. What might have changed between 2024-12-10 and 2024-12-19? There are new Docker images but no release notes for those changes. It works fine until 2024-12-10, but all new images after that fail.

We have a /storage folder mounted in Docker. If we run:

ml freesurfer
cd /storage
freeview

or use the same with fmriprep, we get this error:

FATAL:   failed to set working directory: chdir /storage: no such file or directory

But the folder exists and is accessible by the user inside the container.

Any idea what changed or how to fix this?

@stebo85
Copy link
Contributor

stebo85 commented Feb 14, 2025

I can replicate the problem :)

Image

Investigating now

@stebo85
Copy link
Contributor

stebo85 commented Feb 14, 2025

The problem is that due to a bug in Docker on MacOS on apple silicon we have to start the singularity containers with the -w flag. This flag results in directories not being created inside the container when they do not yet exist.

The workaround would be to change the /storage location to one of our supported locations - e.g. /data/ or /neurodesktop-storage

I also now added /storage as a new supported mount location

@stebo85 stebo85 closed this as completed Feb 14, 2025
@github-project-automation github-project-automation bot moved this from New to Completed in NeuroDesk Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

No branches or pull requests

2 participants