I've installed Shiny-server, but the examples are failing to start, I receive the:
An error has occurred
The application failed to start.
error message. Checking the log, I read the following:
cat /var/log/shiny-server/hello-shiny-20191022-103120-34975.log
Error in shinyAppDir(x) :
No Shiny application exists at the path "ny-server/sample-apps/hello"
Calls: runApp ... as.shiny.appobj -> as.shiny.appobj.character -> shinyAppDir
Execution halted
What's strange is the line relative to the path as it is truncated. Is it just an artefact? The shiny-server successfully serves the html found at /srv/shiny-server/welcome.html, but not the apps.
Any suggestions?
The config file:
cat /etc/shiny-server/shiny-server.conf
# Instruct Shiny Server to run applications as the user "shiny"
run_as 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;
}
}