An Error When Extracting Drawn Samples

I am not sure if this is the right place to ask this, but I have fitted a big model that took a day to finish sampling and now I am not able to use it because of an error. I used cmdstanr, and this is the way I fit the model:

fit <- mod$sample(
  data = data,
  iter_warmup = 1000,
  iter_sampling = 200,
  adapt_delta = 0.95,
  parallel_chains = 4
)

params = fit$draws(c("beta1", "beta2"))

But I am getting this error and I have no idea what it means and how I can solve it. This is started to happen when I increased iter_warmup from 200 to 1000.

Error in read_cmdstan_csv(files = self$output_files(include_failed = FALSE),  : 
  Assertion on 'files' failed: File does not exist: '/tmp/RtmpG4knat/VMACH_With_Diff-202203171118-1-150a2b.csv'.

Does anyone know how to resolve this issue?

I’ve encountered this error but it was an m1 mac issue - are you running on an m1 mac by chance? If yes, then install the dev version of cmdstan

# install.packages("remotes")
remotes::install_github("stan-dev/cmdstanr")

I am not using M1 mac and the error only occurs when I increase the warmup & sampling sizes. I tried installing the dev version but that didn’t solve the error.