"ERROR: An error has occurred." in Shiny App

I'm an IT admin attempting to help someone with their Shiny app. We've got RStudio and Shiny running on the same server and Shiny is configured by user so folks can deploy their apps into /home/user/ShinyApps. I have one user that has been doing this for awhile and some of his apps work, but several others display this error.

If I open the server.R or ui.R files from RStudio (pointing to the same R that Shiny uses BTW) and click Run App, the web page opens fine, but if I try to access the app through the Shiny web server, I get the error.

As far as I can tell, all of the necessary R packages are installed and permissions in his ShinyApps directory are fine. I'm unsure where else to look and nothing is showing up in /home/user/ShinyApps/log either.

BTW, I should mention that I've attempted to enable additional logging to assist with troubleshooting, but if I uncomment the following lines in the top section, the shiny-server service fails to start.

preserve_logs true;

log_file_mode 0644;

[root@elc7prstudio shiny-server]# cat shiny-server.conf
# Instruct Shiny Server to run applications as the user "shiny"
# run_as shiny;

# Instruct Shiny Server to run applications as the user who owns
# the home directory in which the application is stored
  run_as :HOME_USER: shiny;

# Define a server that listens on port 3838
server {
  listen 3838;

  # Define a location at the base URL
  location / {

    # Host the directory of Shiny Apps stored in this directory
    # site_dir /srv/shiny-server;

    # Host the directory of Shiny Apps stored in the ~/ShinyApps directory
      user_dirs;

    # Log all Shiny output to files in this directory
    # log_dir /var/log/shiny-server;
    # preserve_logs true;
    # log_file_mode 0644;

    # When a user visits the base URL rather than a particular application,
    # an index of the applications available in this directory will be shown.
    directory_index on;
  }
}

# Define a server that listens on port 4949
server {
  listen 4949;

  # Define a location for Production
  location /production {

  # Host the directory of Production apps in this directory
  site_dir /srv/shiny-server;

  # Log all Shiny output to files in this directory
  log_dir /var/log/shiny-server;

  # When a user visits the base URL rather than a particular application,
  # an index of the applications available in this directory will be shown.
  directory_index on;
  }
}
[root@elc7prstudio shiny-server]#

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.