Downloads fail after 60 seconds

I posted this as an issue on GitHub (https://github.com/rstudio/shiny-server/issues/407) but am cross-posting here because there has been no activity there.

I have a shiny app that creates reports, some of which may take a few minutes to complete. I am currently running into problems with the downloads failing after 60 seconds on a CentOS 7 machine running shiny server v1.5.12. I have updated shiny-server.conf to have longer timeouts, and the only parameter I have been able to find with a default timeout of 60 seconds is app_init_timeout , which is not the problem here.

This is what I currently have for /etc/shiny-server/shiny-server.conf :

# Instruct Shiny Server to run applications as the user "shiny"
run_as :HOME_USER: shiny;

# Set keepalive connection time to 60 minutes
http_keepalive_timeout 3600;

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

  location /users {
    user_dirs;

    # Set application idle time limit to one hour
    app_idle_timeout 3600;
  }

  # Define a location at the base URL
  location /apps {

    # Host the directory of Shiny Apps stored 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;

    # Set application idle time limit to one hour
    app_idle_timeout 3600;
  }
}

It's as if the http_keepalive_timeout is being completed ignored.

We seemed to have solved this issue. We had set up SSL/https for our shiny server a while ago, and it was the ProxyTimeout variable that had a default value of 60 seconds. Once we added that variable with a larger value to the /etc/httpd/conf.d/ssl.conf (we went with 3600 to match what I have in shiny-server.conf), everything looked to be working correctly.

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