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

How to properly run cmdstan in apptainer container, as it needs write access #1

Open
e-kotov opened this issue Jun 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@e-kotov
Copy link
Owner

e-kotov commented Jun 25, 2024

In an Apptainer container in HPC cluster, when trying to build a model with cmdstanr/cmdstan there is an error due to read-only file system inside the container. This is only an issue for Apptainer containers. If running under Docker, all is fine (different file system permissions?).

file <- file.path(cmdstan_path(), "examples", "bernoulli", "bernoulli.stan")
mod <- cmdstan_model(file)
>> Compiling Stan program...
>> <built-in>: fatal error: opening dependency file src/cmdstan/main.d: Read-only file system
>> compilation terminated.

Note to self: similar issue discussed here stan-dev/cmdstan#1175, with some suggested solutions too.

Also a discussion here: https://discourse.mc-stan.org/t/problem-running-cmdstan-on-computing-cluster/34747/4

@e-kotov e-kotov self-assigned this Jun 25, 2024
@e-kotov e-kotov added the bug Something isn't working label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant