I am trying to host a shiny app in a directory. I can already see the sample hello app fine and even created a new faux up using using the template within rstudio when clicking to create a new shiny app (Old Faithful Geyser Data). When I add this app to /srv/shiny-server/my_test_app
and then navigate to <our ip>:3838/my_test_app
I do indeed the app.
However, when I move my actual app I get this message in my browser:
ERROR: An error has occurred. Check your logs or contact the app author for clarification.
There seems to be several posts on here already about this message. The problem is I cannot see any error messages in the logs.
ls -l /var/log/
total 712
-rw-r--r-- 1 root root 30407 Apr 8 16:56 alternatives.log
drwxr-xr-x 1 root root 4096 Apr 8 16:56 apt
-rw-rw---- 1 root utmp 0 Mar 27 00:00 btmp
-rw-r--r-- 1 root root 340456 Apr 8 16:56 dpkg.log
-rw-r--r-- 1 root root 32032 Apr 2 23:31 faillog
-rw-r--r-- 1 root root 2235 Apr 2 12:11 fontconfig.log
-rw-rw-r-- 1 root utmp 292292 Apr 2 23:31 lastlog
drwxr-xr-x 2 root root 4096 Apr 2 12:27 rstudio-server
drwxr-xr-x 2 shiny shiny 4096 Apr 8 17:40 shiny-server
-rw-r--r-- 1 root root 721 Apr 2 23:56 shiny-server.log
-rw-rw-r-- 1 root utmp 0 Mar 27 00:00 wtmp
First I looked at shiny-server-log:
cat /var/log/shiny-server.log
[2020-04-02T23:32:04.187] [INFO] shiny-server - Shiny Server v1.5.7.890 (Node.js v8.10.0)
[2020-04-02T23:32:04.190] [INFO] shiny-server - Using config file "/etc/shiny-server/shiny-server.conf"
[2020-04-02T23:32:04.270] [WARN] shiny-server - Running as root unnecessarily is a security risk! You could be running more securely as non-root.
[2020-04-02T23:32:04.273] [INFO] shiny-server - Starting listener on 0.0.0.0:3838
[2020-04-02T23:56:27.900] [INFO] shiny-server - Created bookmark state directory: /var/lib/shiny-server/bookmarks
[2020-04-02T23:56:27.900] [INFO] shiny-server - Created user bookmark state directory: /var/lib/shiny-server/bookmarks/shiny
I'm not sure where else to look.
My config:
cat /etc/shiny-server/shiny-server.conf
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
preserve_logs true; # I only added this after finding a suggestion online to do so (I'm in a docker container)
# 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;
}
}
How can I see the error messages and where Shiny is failing?