Status code 403 returned by RStudio Server

Hi folks,

I'm deploying RStudio Server inside a VM in the company I work for.
I'm facing a big problem here as I try to execute some commands in the IDE. Some commands execute fine when I hit ctrl+enter, but if the command gets too large it return an error.

For example, the following code executes fine:

plot_android <- ggplot(data=df[df$operacao_canal %in% c("MB Android App"),]) +
theme_bw() +
scale_x_log10(n.breaks = 10) +
scale_y_log10(n.breaks = 10)

But if I aggregate some lines of code, it returns the following error:

plot_android <- ggplot(data=df[df$operacao_canal %in% c("MB Android App"),]) +
theme_bw() +
stat_binhex(aes(x=frequencia_media_mes, y=volume_brl, alpha=..count..), fill="#002BFF") +
stat_binhex(aes(x=frequencia_media_mes, y=volume_brl, alpha=..count..), fill="#FFD500") +
scale_x_log10(n.breaks = 10) +
scale_y_log10(n.breaks = 10)

I tried to do some things here, but nothing helped me:

  • Set the entire VM folder with reading-writing permissions;
  • Creating another users;
  • Logging in/out with the same user account;
  • Restarting the RStudio Server/Nginx;

Any ideas on what to do here? I'm using a powerful VM, so memory is not a problem. My RStudio Server version is the last one (1.4.17.17).

Thanks in advance!