5

Every time I try to run a shiny app from RStudio Server 1.2 it gets immediately grayed out. This does not happen when deployed on the Shiny Server-apps work fine there. Both are behind https:// links. I tried running the same app from an http:// link and the app ran normally. What is causing this?

Steps to reproduce:

  1. start a new Shiny app project File > New Project > Shiny Web App
  2. click "Run App" with the old faithful app

grayed out shiny

Here is what the javascript console shows:

grayed out shiny js console

A coworker is also using the same instance of RStudio to run their shiny apps and their apps are not being grayed out by default. It appears localized to my account. We are sharing the same set of installed R packages and neither of us have anything in our .Rprofile and .Renviron. Why could this be?

R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

We are both running with shiny_1.2.0.

wdkrnls
  • 4,548
  • 7
  • 36
  • 64
  • Grayed out usually means an error has occured. What does it show in the RStudio Window? Try using `rm(list=ls())` to remove any cache. – Kevin Aug 06 '19 at 14:09
  • Thanks for the suggestion, but I started from a fresh R session. I think the problem is related to `https://` authentication on my RStudio Server. When I tried from `http://` the app ran with no issues. – wdkrnls Aug 06 '19 at 14:30
  • It could be this https://docs.rstudio.com/shiny-server/#specifying-protocols – Eli Berkow Aug 07 '19 at 09:55
  • The weird thing is that apps deployed with Shiny Server work great over `https://`. It's only the `Run App` based Shiny instances that don't work. – wdkrnls Aug 07 '19 at 13:34
  • Do you use HTTPS via RStudio Server Pro or via a reverse proxy? If the latter: Which proxy do you use? How is it configured? – Ralf Stubner Aug 12 '19 at 11:11
  • 2
    @RalfStubner: Yes. That was the problem. Modifying the Apache configuration resolved the issue. https://support.rstudio.com/hc/en-us/articles/200552326-Running-RStudio-Server-with-a-Proxy – wdkrnls Aug 12 '19 at 13:08

0 Answers0