shinyapps.io- Failed to load resource: the server responded with a status of 500 (Internal Server Error)

48 views
Skip to first unread message

Laura Hughes

unread,
Sep 29, 2014, 8:53:39 PM9/29/14
to shinyap...@googlegroups.com

I have an app that I've uploaded to shinyapps.io, and I've been noticing some instability that I can't trace. The app has a bunch of different reactive inputs which call code to filter, calculate, and plot some data. Occasionally, a certain sequence of selecting these inputs causes the site to freeze and trigger a 500 Internal Server Error.

Strangely enough, when I execute the same commands on a locally-hosted (thru R) version of the app, I don't get an error.

It's a really booger to trace: any suggestions on what may be causing the problem and/or how to debug it better? I'm a javascript novice, so any help would be appreciated.

Full representative error log:

/opt/shiny-server/scripts/shiny-run: line 3:    32 Killed    
/bin/bash --login -c   "$SHINY_EXEC_COMMAND $SHINY_R_PATH $*"

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/bootstrap/css/bootstrap-responsive.min.css

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/bootstrap/css/bootstrap.min.css

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/font-awesome/css/font-awesome.min.css

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/datatables/css/DT_bootstrap.css

Tareef Kawaf

unread,
Sep 29, 2014, 10:02:30 PM9/29/14
to Laura Hughes, shinyap...@googlegroups.com
Sorry to hear that Laura.  Could you send a link to your application please?
--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/b01be2c7-3d4e-4762-b96a-f0abee36b800%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amanda Traud

unread,
Oct 1, 2014, 10:53:49 AM10/1/14
to shinyap...@googlegroups.com, laura.d...@gmail.com
I am getting the same error, no errors when my shiny runs locally but errors on the server, my app: https://netmandi.shinyapps.io/GDELTNetwork

Any suggestions would be appreciated!


On Monday, September 29, 2014 10:02:30 PM UTC-4, Tareef Kawaf wrote:
Sorry to hear that Laura.  Could you send a link to your application please?

On Monday, September 29, 2014, Laura Hughes <laura.d...@gmail.com> wrote:

I have an app that I've uploaded to shinyapps.io, and I've been noticing some instability that I can't trace. The app has a bunch of different reactive inputs which call code to filter, calculate, and plot some data. Occasionally, a certain sequence of selecting these inputs causes the site to freeze and trigger a 500 Internal Server Error.

Strangely enough, when I execute the same commands on a locally-hosted (thru R) version of the app, I don't get an error.

It's a really booger to trace: any suggestions on what may be causing the problem and/or how to debug it better? I'm a javascript novice, so any help would be appreciated.

Full representative error log:

/opt/shiny-server/scripts/shiny-run: line 3:    32 Killed    
/bin/bash --login -c   "$SHINY_EXEC_COMMAND $SHINY_R_PATH $*"

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/bootstrap/css/bootstrap-responsive.min.css

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/bootstrap/css/bootstrap.min.css

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/font-awesome/css/font-awesome.min.css

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/datatables/css/DT_bootstrap.css

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-users+unsubscribe@googlegroups.com.
To post to this group, send email to shinyapps-users@googlegroups.com.

Amanda Traud

unread,
Oct 1, 2014, 11:26:53 AM10/1/14
to shinyap...@googlegroups.com, laura.d...@gmail.com
I know what happened, the names of a few of the javascript files changed with an update to the Shiny library.  Therefore the app was trying to load a javascript file that was no longer there.

Grrrrr.

Amanda Traud

unread,
Oct 1, 2014, 11:27:40 AM10/1/14
to shinyap...@googlegroups.com, laura.d...@gmail.com
I just changed the source call in my index.html and it worked fine.

Laura Hughes

unread,
Oct 1, 2014, 10:09:07 PM10/1/14
to shinyap...@googlegroups.com
The problem in my case ended up being that I had run out of system memory, which can be solved by upping the allowed memory: shinyapps::configureApp("APPNAME", size="xlarge")

where "APPNAME" is the name of the app. More info about memory is here:http://shiny.rstudio.com/articles/shinyapps.html

Thanks to the folks at RStudio for helping diagnose.

Reply all
Reply to author
Forward
0 new messages