My Shinyapp isn't loading assuming that the process is killed due to app_idle time out ?

49 views
Skip to first unread message

palatinaleon

unread,
Jul 21, 2014, 8:52:16 AM7/21/14
to shinyap...@googlegroups.com

Here you find my project shiny app.

https://palatinaleon.shinyapps.io/CourseProject/

It read in some posts that the reason could be the app_idle time as the loading of the data takes too much time so the server assumes the app doesn't work and kills the process. How can ich modify this time out for deploying my App at shiny.server. Or do i have to set up shiny-server myself ? Where can i find a good instruction for Ubuntu as the installation instructions I found not really helped?



Tareef Kawaf

unread,
Jul 21, 2014, 9:15:27 AM7/21/14
to palatinaleon, shinyap...@googlegroups.com
Your app is loading fine for me, but it gives me this error in the javascript console when I hit the "play" button

  1. Uncaught TypeError: Cannot read property 'replace' of undefined shiny-server-pro.js:6
    1. (anonymous function)shiny-server-pro.js:6
    2. jQuery.event.dispatchjquery.js:4624
    3. elemData.handle


Are you seeing  a different error message?  

--
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/3e5fa7cd-bdcc-474d-bf8e-a1dc392b7c0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

palatinaleon

unread,
Jul 21, 2014, 12:13:16 PM7/21/14
to shinyap...@googlegroups.com
When I make runApp() in RStudio everything works fine, it just takes some 20sec until the population pyramid is loaded , as I make a read.xlsx from  an excel file, which is very time consuming. Also the deploying works fine, no error messages. But if I run the app in the browser with the URL after 20seconds I get the following message (see attached file: errormessage.png)
errormessage.PNG

Fereshteh Karimeddini

unread,
Jul 21, 2014, 1:28:36 PM7/21/14
to shinyap...@googlegroups.com
It is very possible that your app is running out of memory during initialization. You could try deploying your app with large memory size:

shinyapps::configureApp("app_name",account="account_name",size="large",redeploy=TRUE)

and see if that makes a difference.


Fereshteh

palatinaleon

unread,
Jul 22, 2014, 6:38:59 PM7/22/14
to shinyap...@googlegroups.com

Thanx your idea worked fine, my app is working now, of course it is too slow, but as my first app, I am happy abt it that it runs, now is time for improving!

Fereshteh Karimeddini

unread,
Jul 23, 2014, 8:58:51 AM7/23/14
to shinyap...@googlegroups.com
Glad to hear that.

Now that I can see your application working, it is a cool app. But I was able to crash it. If after your improvements you still run into memory issue, please refer to:


for other possible memory sizes you can use.


Fereshteh
Reply all
Reply to author
Forward
0 new messages