ShinyApp page suddenly times out

92 views
Skip to first unread message

Daniel Oberski

unread,
Oct 3, 2014, 4:16:08 AM10/3/14
to shinyap...@googlegroups.com
Hi 

ShinyApps newbie here, great stuff!

I deployed a ShinyApp on the server and it ran fine the past week but has suddenly stopped loading at all. The GET request simply times out. What can I do about this? I would really like to use ShinyApps!

Thanks & best regards,
Daniel

Tareef Kawaf

unread,
Oct 3, 2014, 7:35:03 AM10/3/14
to Daniel Oberski, shinyap...@googlegroups.com
Hi Daniel,
Can you please send us:

1. The link to your application
2. The output of the command: shinyapps::showLogs()

Sorry you are having issues.

Best,
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/70827e1d-9ae0-4e99-b54b-0aec8c217920%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Oberski

unread,
Oct 4, 2014, 6:25:53 AM10/4/14
to shinyap...@googlegroups.com, daniel....@gmail.com
Hi Tareef,

Thanks for the reply!



It works sporadically, then upon reload the GET request times out again. People have also reported that it hangs in "Please wait...". 

2. see below (the warnings are from foreign, these are normal). I guess the "Execution halted"s are the problem. Most of the tries to load this app don't seem to show up in the log though. 

Thanks again & best regards,
Daniel

2014-10-03T10:17:17.355344+00:00 shinyapps[shuttle]:
2014-10-03T10:17:17.233694+00:00 shinyapps[shuttle]: Loading required package: psych
2014-10-03T10:17:17.275704+00:00 shinyapps[shuttle]:
2014-10-03T10:17:17.275727+00:00 shinyapps[shuttle]: Attaching package: ‘boot’
2014-10-03T10:17:17.275774+00:00 shinyapps[shuttle]:
2014-10-03T10:17:17.276349+00:00 shinyapps[shuttle]: The following object is masked from ‘package:psych’:
2014-10-03T10:17:17.276371+00:00 shinyapps[shuttle]:
2014-10-03T10:17:17.276411+00:00 shinyapps[shuttle]:     logit
2014-10-03T10:17:17.276436+00:00 shinyapps[shuttle]:
2014-10-03T10:17:17.282457+00:00 shinyapps[shuttle]: Loading required package: lattice
2014-10-03T10:20:51.963637+00:00 shinyapps[shuttle]: Execution halted
2014-10-03T10:20:51.996053+00:00 shinyapps[shuttle]:
2014-10-03T10:20:51.963175+00:00 shinyapps[shuttle]:
2014-10-03T10:20:51.995836+00:00 shinyapps[shuttle]:
2014-10-03T13:03:28.134407+00:00 shinyapps[shuttle]:
2014-10-03T13:03:28.134728+00:00 shinyapps[shuttle]: Listening on http://127.0.0.1:54301
2014-10-03T13:03:30.067644+00:00 shinyapps[shuttle]: Loading required package: MASS
2014-10-03T13:03:30.125200+00:00 shinyapps[shuttle]: Loading required package: boot
2014-10-03T13:03:30.205963+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.206000+00:00 shinyapps[shuttle]: Attaching package: ‘lattice’
2014-10-03T13:03:30.206032+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.206119+00:00 shinyapps[shuttle]: The following object is masked from ‘package:boot’:
2014-10-03T13:03:30.206164+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.224508+00:00 shinyapps[shuttle]: Attaching package: ‘nFactors’
2014-10-03T13:03:30.224539+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.224808+00:00 shinyapps[shuttle]: The following object is masked from ‘package:lattice’:
2014-10-03T13:03:30.224838+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.225168+00:00 shinyapps[shuttle]:     parallel
2014-10-03T13:03:30.206216+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.206192+00:00 shinyapps[shuttle]:     melanoma
2014-10-03T13:03:30.224467+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.225204+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.099685+00:00 shinyapps[shuttle]: Loading required package: psych
2014-10-03T13:03:30.142560+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.142598+00:00 shinyapps[shuttle]: Attaching package: ‘boot’
2014-10-03T13:03:30.142642+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.143217+00:00 shinyapps[shuttle]: The following object is masked from ‘package:psych’:
2014-10-03T13:03:30.143261+00:00 shinyapps[shuttle]:
2014-10-03T13:03:30.143289+00:00 shinyapps[shuttle]:     logit
2014-10-03T13:03:30.149424+00:00 shinyapps[shuttle]: Loading required package: lattice
2014-10-03T13:03:30.143315+00:00 shinyapps[shuttle]:
2014-10-03T13:03:38.074978+00:00 shinyapps[shuttle]: Warning in read.spss(file = input$files$datapath[1], to.data.frame = TRUE,  :
2014-10-03T13:03:38.075029+00:00 shinyapps[shuttle]:   /tmp/RtmpUbLKLR/0cafa146043ecc62b8beac64/0: Unrecognized record type 7, subtype 18 encountered in system file
2014-10-03T13:03:38.075600+00:00 shinyapps[shuttle]: re-encoding from CP1252
2014-10-03T13:32:38.461121+00:00 shinyapps[shuttle]: Warning in read.spss(file = input$files$datapath[1], to.data.frame = TRUE,  :
2014-10-03T13:32:38.461290+00:00 shinyapps[shuttle]:   /tmp/RtmpUbLKLR/51661a3fce62d5e346e481b5/0: Unrecognized record type 7, subtype 18 encountered in system file
2014-10-03T13:32:38.461641+00:00 shinyapps[shuttle]: re-encoding from CP1252
2014-10-03T14:05:50.457245+00:00 shinyapps[shuttle]: Execution halted
2014-10-03T14:05:50.497718+00:00 shinyapps[shuttle]:
2014-10-03T14:05:50.456839+00:00 shinyapps[shuttle]:
2014-10-03T14:05:50.497316+00:00 shinyapps[shuttle]:

Darek

unread,
Oct 8, 2014, 6:31:21 AM10/8/14
to shinyap...@googlegroups.com
Hi, I am also having the same problem. The app runs and suddenly crashes w/o any apparent reason. The log only gives 'Execution halted'. 

Thanks a lot for checking this,
Darek

2014-10-08T10:20:16.466336+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.466390+00:00 shinyapps[shuttle]: Attaching package: ‘genefilter’
2014-10-08T10:20:16.466441+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.466984+00:00 shinyapps[shuttle]: The following object is masked from ‘package:base’:
2014-10-08T10:20:16.467031+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.467058+00:00 shinyapps[shuttle]:     anyNA
2014-10-08T10:20:16.467089+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.467283+00:00 shinyapps[shuttle]: Loading required package: magrittr
2014-10-08T10:20:16.482109+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.482140+00:00 shinyapps[shuttle]: Attaching package: ‘magrittr’
2014-10-08T10:20:16.482165+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.482482+00:00 shinyapps[shuttle]: The following object is masked from ‘package:tidyr’:
2014-10-08T10:20:16.482528+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.482552+00:00 shinyapps[shuttle]:     extract
2014-10-08T10:20:16.482576+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.488525+00:00 shinyapps[shuttle]: Loading required package: Hmisc
2014-10-08T10:20:16.509132+00:00 shinyapps[shuttle]: Loading required package: lattice
2014-10-08T10:20:16.671729+00:00 shinyapps[shuttle]: Loading required package: splines
2014-10-08T10:20:16.492326+00:00 shinyapps[shuttle]: Loading required package: grid
2014-10-08T10:20:16.668222+00:00 shinyapps[shuttle]: Loading required package: survival
2014-10-08T10:20:16.703931+00:00 shinyapps[shuttle]: Loading required package: Formula
2014-10-08T10:20:16.841574+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.841620+00:00 shinyapps[shuttle]: Attaching package: ‘Hmisc’
2014-10-08T10:20:16.841658+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.841870+00:00 shinyapps[shuttle]: The following objects are masked from ‘package:plyr’:
2014-10-08T10:20:16.842059+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.842095+00:00 shinyapps[shuttle]:     is.discrete, summarize
2014-10-08T10:20:16.842120+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.848810+00:00 shinyapps[shuttle]: The following objects are masked from ‘package:base’:
2014-10-08T10:20:16.848849+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.848888+00:00 shinyapps[shuttle]:     format.pval, round.POSIXt, trunc.POSIXt, units
2014-10-08T10:20:16.848915+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:16.894508+00:00 shinyapps[shuttle]: [1] "###### The following user has logged in:  Darek  #####"
2014-10-08T10:20:24.012211+00:00 shinyapps[shuttle]: [1] "Optimal span value for C1.15_Dex = 1"
2014-10-08T10:20:24.245954+00:00 shinyapps[shuttle]: [1] "Optimal span value for C1.15_EtOH = 0.4"
2014-10-08T10:20:24.344386+00:00 shinyapps[shuttle]: [1] "Optimal span value for C7.14_Dex = 0.65"
2014-10-08T10:20:24.448391+00:00 shinyapps[shuttle]: [1] "Optimal span value for C7.14_EtOH = 0.65"
2014-10-08T10:20:24.547662+00:00 shinyapps[shuttle]: [1] "Optimal span value for MM1.S_Dex = 0.95"
2014-10-08T10:20:24.644796+00:00 shinyapps[shuttle]: [1] "Optimal span value for MM1.S_EtOH = 1"
2014-10-08T10:20:42.924267+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:42.990106+00:00 shinyapps[shuttle]: 
2014-10-08T10:20:42.925833+00:00 shinyapps[shuttle]: Execution halted
2014-10-08T10:20:42.990304+00:00 shinyapps[shuttle]: 

Darek

unread,
Oct 8, 2014, 6:38:01 AM10/8/14
to shinyap...@googlegroups.com
Also, if I try to re-run it after the crash I get a following error:

Error/usr/share/luajit/share/lua/5.1/lapis/application.lua:263: attempt to get length of local '_list_0' (a function value)

Tracebackstack traceback:
 
/usr/share/luajit/share/lua/5.1/lapis/application.lua:263: in function 'write_cookies'
 
/usr/share/luajit/share/lua/5.1/lapis/application.lua:89: in function 'render'
 
/usr/share/luajit/share/lua/5.1/lapis/application.lua:366: in function </usr/share/luajit/share/lua/5.1/lapis/application.lua:360>
 
[C]: in function 'xpcall'
 
/usr/share/luajit/share/lua/5.1/lapis/application.lua:360: in function 'dispatch'
 
/usr/share/luajit/share/lua/5.1/lapis/nginx.lua:175: in function </usr/share/luajit/share/lua/5.1/lapis/nginx.lua:173>



I can re-run the application again only if I wait for few minutes or terminate and re-deploy it.

Thanks,
Darek

Aleksandr V

unread,
Oct 8, 2014, 7:30:22 AM10/8/14
to shinyap...@googlegroups.com
Same here. Any clue why this happening? I assume it is shiny server issues.

Tareef Kawaf

unread,
Oct 8, 2014, 8:19:34 AM10/8/14
to Darek, shinyap...@googlegroups.com
Derek,
Sorry for the trouble you are having.  Can you please send us the URL to your application and  the output of shinyapps::showLogs()?

Thanks,
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.

Lisa Zorn

unread,
Oct 9, 2014, 7:06:07 PM10/9/14
to shinyap...@googlegroups.com

I'm having the same problem.

My app is here: https://lzorn.shinyapps.io/VMTshares/
The last log lines are:

2014-10-09T22:59:16.531869+00:00 shinyapps[shuttle]: [1] "2014-10-09 22:59:16  map$addGeoJSON starting"
2014-10-09T22:59:31.894624+00:00 shinyapps[shuttle]: [1] "2014-10-09 22:59:31  map$addGeoJSON completed"
2014-10-09T22:59:42.313759+00:00 shinyapps[shuttle]: 
2014-10-09T22:59:42.314111+00:00 shinyapps[shuttle]: Execution halted
2014-10-09T22:59:42.634437+00:00 shinyapps[shuttle]: 
2014-10-09T22:59:42.634772+00:00 shinyapps[shuttle]:

I upped it to an xxlarge but is there any way to figure out what size is actually required?
Thanks,
-Lisa

Andy Kipp

unread,
Oct 10, 2014, 10:38:12 AM10/10/14
to Lisa Zorn, shinyap...@googlegroups.com
Lisa,

Thanks for letting us know. We're trying to get to the bottom of this now. It would be great if you could tell me what web browser are you using. 

Thanks
-Andy

Darek

unread,
Oct 10, 2014, 11:06:28 AM10/10/14
to shinyap...@googlegroups.com, blue1...@gmail.com
Hi, if this is of any help I get time outs when running the app via Safari on Mac OS. With firefox on Windows it seems to be fine.

Darek

Lisa Zorn

unread,
Oct 10, 2014, 1:46:02 PM10/10/14
to Andy Kipp, shinyap...@googlegroups.com
I tried with Firefox 31.0 and Chrome Version 38.0.2.2125.101 m (really?!) on Windows 7 Enterprise.  They both loaded the geojson file and then as soon as they display it, the screen greys.

-Lisa

Luca V

unread,
Oct 10, 2014, 5:16:56 PM10/10/14
to shinyap...@googlegroups.com
Hi 

I've been running a shiny server for a couple of months and I'm having the same problem with an app since last week. it starts ok and does its things pretty well for a while, but suddenly when asked to update it just stops with no warning or error. is it possible there is something wrong with the last update of the shiny package? I also found a few posts about data.table that can't handle too many data in a join when using it in a shiny app. Actually, I have three data.tables in my app, ~300th, ~160th and ~90th rows, and one reactive fun contains a join on two of them. 

Thanks,
Luca
Reply all
Reply to author
Forward
0 new messages