System error 13, Permission denied while running brms model

Hello,

This issue is resolved. Reinstalling rstan and brms packages fixed the problem.