shiny-server throws an error.

shiny-server throws an error.

I installed shiny-server on Linux and connected to port 3838.
As a result, the html code is displayed normally in the browser, but shiny-server displays an error.

The shiny-server.conf file is shown below.

# Instruct Shiny Server to run applications as the user "shiny"
#run_as shiny;
run_as root 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;

    # 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;
  }
}

I wonder what the cause is and how to fix it.
Thank you for your cooperation.

I solved this problem.
In the .bash_profile of the shiny account, I wrote the path to the executable file of the R version I am currently using.
As a result, the following normal state was confirmed.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.