I can run my model fine with one chain. However, when I run more than one chain it gives me the errors and only one chain out of all number of chains I have used gave me the output.
For one chain, I used
stan(mode_code=stan.code, data=stn.data, iter=1000, warmup=500, chains=1, control=list(max_treedepth=10))
Please guide me here with your valuable suggestions.