Shiny-Server won't launch apps in right column default home page

659 views
Skip to first unread message

Jerry Hall

unread,
Sep 20, 2017, 10:11:07 PM9/20/17
to Shiny - Web Framework for R
I have a new install on Centos 6 AWS AMI and everything has been amazingly smooth. 

I installed R, Studio and then Shiny Server and when launching the home page get this error message:

su: ignore --preserve-environment, it's mutually exclusive to --login.
Error in loadNamespace(name) : there is no package called ‘digest’ Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> 
Execution halted..

I have uninstalled and reinstalled 'digest' (including stopping and restarting R, and shiny-server) but, no change.  

$version.string
[1] "R version 3.4.1 (2017-06-30)"

> packageVersion("shiny")
[1] ‘1.0.5’
My shiny-server.conf is here: 

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

# Will run shiny as logged in user eg ec2
#run_as session_name

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

  sanitize_errors off
;

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



Any help you might offer would be appreciated!

Alan Dipert

unread,
Sep 21, 2017, 11:41:29 AM9/21/17
to Shiny - Web Framework for R
Hi Jerry,
Are you confident that digest was installed properly?

I ask because I know at least Centos 6.3 doesn't ship (by default) with a gcc new enough to compile parts of Shiny's dependencies. I remember seeing a similar error on Centos and it ended up being related to problems compiling C++. Without seeing all of the commands you ran and their output I can't be confident this is exactly your problem, though. I just know that for the Shiny Server build we go through special hoops to use "scl" to make a newer gcc available [1][2].

I'm pretty sure Centos 7 has a suitable gcc by default, so if you can I recommend using that instead. Install procedure is identical.

Alan

Jerry Hall

unread,
Sep 23, 2017, 7:47:05 PM9/23/17
to Shiny - Web Framework for R
Thanks for this answer. I've had this server for some time and have made different software installs (typically Postgres / GIS related).

Is there a way I can test if GCC / scl / devtoolset is installed properly, or - at least identify what I need to do to identify the source of the problem?

Thanks again!




On Wednesday, September 20, 2017 at 7:11:07 PM UTC-7, Jerry Hall wrote:

Jerry Hall

unread,
Sep 23, 2017, 7:49:14 PM9/23/17
to Shiny - Web Framework for R
Apologies. I do have GCC 4.8.3 installed
Reply all
Reply to author
Forward
0 new messages