Internal Server Error 500 when trying to visit my shiny app

92 views
Skip to first unread message

George Miranda

unread,
Sep 18, 2014, 4:58:21 PM9/18/14
to shinyap...@googlegroups.com

I deployed my shiny app successfully and got the following messages:

Preparing to deploy application...DONE
Uploading application bundle...DONE
Deploying application: 17598...
Waiting for task: 1594786
  building: Parsing manifest
  building: Building image: 52615
  building: Installing packages
  building: Installing files
  building: Pushing image: 52615
  deploying: Starting instances
  rollforward: Activating new instances
  terminating: Stopping old instances
Application successfully deployed to http://georgemirandajr.shinyapps.io/pace

when I visited the website, I got an Internal Server Error 500, which has never happened before. I have made updates and changes to this app a few times before without any problems.  Not sure what happened.  Anyone know? 

Tareef Kawaf

unread,
Sep 19, 2014, 8:32:52 AM9/19/14
to George Miranda, shinyap...@googlegroups.com
Hi George,
I don't see the Error 500, but when I load your app, I see this: 

ERROR: could not find function "gridster"


I would recommend you run shinyapps::showLogs() to see if it gives you a little more insight into what is going on.

-Tareef


--
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/39598d44-d832-4d78-b85b-e4414fcc5377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

George Miranda

unread,
Sep 19, 2014, 4:53:19 PM9/19/14
to shinyap...@googlegroups.com, georgem...@gmail.com
I just loaded the app again and you're right about it not finding the "gridster" function.  I don't know why it says that.  I have the ShinyGridster package loaded and it runs from R Studio just fine.  When I remove these functions and feature from my app it seems to work fine, but obviously I want those features to remain.  Could it be that these packages don't work well with shinyapps.io?  I will keep trying to figure something out.

Andy Kipp

unread,
Sep 23, 2014, 10:44:55 AM9/23/14
to George Miranda, shinyap...@googlegroups.com
George,

Do you have a corresponding library() call for the ShinyGridster package in your ui.R or server.R? Only packages that are explicitly loaded via library() or require() are installed automatically.

-Andy

George Miranda

unread,
Sep 24, 2014, 10:53:04 AM9/24/14
to shinyap...@googlegroups.com, georgem...@gmail.com

I have the library() calls in the server.R file for all the packages I use.  Just a minute ago I tried also putting the library() calls in the ui.R file since shinyGridster and ShinyDash are UI packages.  That didn't work though.  

ui.R file


library(ShinyDash)
library(shinyGridster)
shinyUI(navbarPage("Dashboard App",
                  
                   tabPanel("Home",
                           
                            fluidPage(
                              h2("Welcome to your dashboard!"),
                              h6("This web app has been designed to show the operational metrics important to you!"),
                  
                            gridster(tile.width = 400, tile.height = 1000,
                                     marginx = 16, marginy = 16,
                              
                              gridsterItem(col = 1, row = 1, sizex = 2,
                                           sizey = 2,
                               
                                gaugeOutput("livegauge", width = 250, height = 250,
                                            units = "Recorded Docs", min = 0, max = 10,
                                            title = "Incorrect Fees")
                                )
)
),

A short version of my server file is:
server.R
library(data.table)
library
(ggplot2)
library
(knitr)
library
(lubridate)
library
(ShinyDash)
library
(shinyGridster)

shinyServer
(function(input, output) {

output$livegauge
<- renderGauge({
               running_mean
<- mean(corrections$FeesAddedCount)
               round
(running_mean, 1)
             
})

Andy Kipp

unread,
Sep 24, 2014, 11:54:12 AM9/24/14
to George Miranda, shinyap...@googlegroups.com
Can you send the output from:

shinyapps::appDependencies()

Thanks
-Andy

George Miranda

unread,
Sep 24, 2014, 1:22:55 PM9/24/14
to shinyap...@googlegroups.com, georgem...@gmail.com
Output is:

 package     version
1          shiny 0.10.0.9003
2     data.table       1.9.2
3        ggplot2     0.9.3.1
4          knitr         1.5
5      lubridate       1.3.3
6      ShinyDash       0.0.1
7  shinyGridster         0.1
8        methods       3.0.2
9          tools       3.0.2
10         utils       3.0.2
11        httpuv       1.3.0
12       caTools        1.16
13       RJSONIO       1.0-3
14        xtable       1.7-3
15        digest       0.6.4
16     htmltools       0.2.4
17        bitops       1.0-6
18          Rcpp      0.11.1
19      reshape2       1.2.2
20          plyr         1.8
21       stringr       0.6.2
22       lattice     0.20-24
23          grid       3.0.2
24     grDevices       3.0.2
25      graphics       3.0.2
26         stats       3.0.2
27        gtable       0.1.2
28        scales       0.2.3
29         proto      0.3-10
30          MASS      7.3-29
31  RColorBrewer       1.0-5
32     dichromat       2.0-0
33       munsell       0.4.2
34      labeling         0.2
35    colorspace       1.2-4
36      evaluate       0.5.1
37       formatR        0.10
38         highr         0.3
39      markdown       0.6.3
40       memoise         0.1
41          httr         0.2
42           XML    3.98-1.1
43         RCurl    1.95-4.1

Andy Kipp

unread,
Sep 25, 2014, 10:46:26 PM9/25/14
to George Miranda, shinyap...@googlegroups.com
George,

I am a bit stumped here. Is the full source code for your app available somewhere for me to look at? If not, do you mind if I take a look at the code using our internal tools?

-Andy

George Miranda

unread,
Sep 26, 2014, 10:34:52 AM9/26/14
to shinyap...@googlegroups.com, georgem...@gmail.com
I have the code available at github here: https://github.com/georgemirandajr/shinyDashboard
Your help is very appreciated!

Miguel Fiandor Gutiérrez

unread,
Oct 1, 2014, 4:34:54 PM10/1/14
to shinyap...@googlegroups.com, georgem...@gmail.com
Hi,

I also got a 500, and now a blue weird window error in chrome, that says: "Aw, Snap!. Something went wrong while displaying this webpage. To continue, reload or go to another page."

and the code on github -> https://github.com/ADIRSE/maddata

:-((

Miguel Fiandor Gutiérrez

unread,
Oct 1, 2014, 4:57:15 PM10/1/14
to shinyap...@googlegroups.com, georgem...@gmail.com
And this is my output from showLogs ->

> shinyapps::showLogs()
2014-10-01T20:29:52.898060+00:00 shinyapps[shuttle]: 
2014-10-01T20:29:52.899821+00:00 shinyapps[shuttle]: The following object is masked from ‘package:utils’:
2014-10-01T20:29:52.917037+00:00 shinyapps[shuttle]:  
2014-10-01T20:29:52.899847+00:00 shinyapps[shuttle]: 
2014-10-01T20:29:52.899886+00:00 shinyapps[shuttle]:     View
2014-10-01T20:29:52.899914+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:02.480213+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:02.480342+00:00 shinyapps[shuttle]: Execution halted
2014-10-01T20:30:02.525770+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:02.525930+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.205404+00:00 shinyapps[shuttle]: Loading required package: RJSONIO
2014-10-01T20:30:43.235409+00:00 shinyapps[shuttle]: Loading required package: RColorBrewer
2014-10-01T20:30:43.219945+00:00 shinyapps[shuttle]: Loading required package: rCharts
2014-10-01T20:30:43.253466+00:00 shinyapps[shuttle]: Loading required package: httr
2014-10-01T20:30:43.588743+00:00 shinyapps[shuttle]: Loading required package: leafletR
2014-10-01T20:30:43.612177+00:00 shinyapps[shuttle]: Loading required package: jsonlite
2014-10-01T20:30:43.716015+00:00 shinyapps[shuttle]: This is leafletR 0.3-0
2014-10-01T20:30:43.716935+00:00 shinyapps[shuttle]: Type changes("leafletR") to see changes/bug fixes, help(leafletR) for documentation
2014-10-01T20:30:43.716969+00:00 shinyapps[shuttle]: or citation("leafletR") for how to cite leafletR.
2014-10-01T20:30:43.717469+00:00 shinyapps[shuttle]:  
2014-10-01T20:30:43.592152+00:00 shinyapps[shuttle]: Loading required package: brew
2014-10-01T20:30:43.694954+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.695016+00:00 shinyapps[shuttle]: Attaching package: ‘jsonlite’
2014-10-01T20:30:43.695069+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.695848+00:00 shinyapps[shuttle]: The following objects are masked from ‘package:RJSONIO’:
2014-10-01T20:30:43.697990+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.698031+00:00 shinyapps[shuttle]:     View
2014-10-01T20:30:43.698071+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.695957+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.697947+00:00 shinyapps[shuttle]: The following object is masked from ‘package:utils’:
2014-10-01T20:30:43.719190+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.719251+00:00 shinyapps[shuttle]: Attaching package: ‘leafletR’
2014-10-01T20:30:43.719623+00:00 shinyapps[shuttle]: The following object is masked from ‘package:rCharts’:
2014-10-01T20:30:43.695887+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.695925+00:00 shinyapps[shuttle]:     fromJSON, toJSON
2014-10-01T20:30:43.722845+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.719681+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.719724+00:00 shinyapps[shuttle]:     toGeoJSON
2014-10-01T20:30:43.715789+00:00 shinyapps[shuttle]:  
2014-10-01T20:30:43.716314+00:00 shinyapps[shuttle]:  
2014-10-01T20:30:43.719302+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.719756+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.722900+00:00 shinyapps[shuttle]:     getProperties
2014-10-01T20:30:43.722945+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.733155+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:43.733216+00:00 shinyapps[shuttle]: Listening on http://127.0.0.1:36131
2014-10-01T20:30:43.722785+00:00 shinyapps[shuttle]: The following object is masked from ‘package:methods’:
2014-10-01T20:30:52.876205+00:00 shinyapps[shuttle]: Execution halted
2014-10-01T20:30:52.875949+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:52.924507+00:00 shinyapps[shuttle]: 
2014-10-01T20:30:52.924663+00:00 shinyapps[shuttle]: 
Reply all
Reply to author
Forward
0 new messages