App frequently "disconnected from server" - Leaflet map ?

1,241 views
Skip to first unread message

Olivier C

unread,
May 3, 2016, 3:29:58 AM5/3/16
to ShinyApps Users
An app I have developed regularly disconnect from server at different times and in different locations in the app. The app (https://malaria.shinyapps.io/lao_dashboard_beta/):
  • run flawlessly locally
  • the data is taken from two .Rdata files that in total weight less than 800 Kb (including all data frames and shapefiles)
  • the heaviest computation take less than 0.5 sec locally (and possibly less - I haven't measured)
  • hosted on shinyapps.io on a Large (1Gb) instance, 15mn Instance Idle Timeout, 30sec Idle Timeout
What I have tried:
Possible problem:
  • I am working from a country with sometime poor internet connection but the app seems problematic even with a good connection
  • a heavy usage to leaflet maps though there are only very lights shapefiles as layers
  • sometime, trying to modify advance options in my Starter Plan, I receive the message "Error updating settings"

Any help would be greatly appreciated! 

Olivier

Tareef Kawaf

unread,
May 3, 2016, 9:29:54 AM5/3/16
to Olivier C, ShinyApps Users
Hi Olivier,
I have been playing with your application and I can't replicate any disconnects that are just timeouts due to idleness.  Is it possible for you to open a support ticket when you actually see one of those errors so we can get something that is closer to the timeline of the error to try and figure out what is happening?
Is it at all possible that you get some of those timeouts when you have multiple people interacting with the application at the same time? 

-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/f794cb1e-aeed-49b6-a629-849fa2f28ede%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Olivier C

unread,
May 3, 2016, 10:26:34 PM5/3/16
to ShinyApps Users, olivier...@gmail.com
Hi Tareef,

Thanks for your message.

These timeouts happened before a link to the App was first shared.
I suspect that there is something with the slow/high-ping connection that we usually experience in South East Asia (Myanmar/Laos).
I deployed a similar app on my own shiny server hosted on Digital Ocean but there were also disconnections at about the same frequency that with the shinyapps.io hosting.

Will open a support ticket and try to provide more details on the issue.

Olivier

Tareef Kawaf

unread,
May 4, 2016, 7:41:32 AM5/4/16
to Olivier C, ShinyApps Users
Thanks Olivier,
Which version of the Shiny package are you running with?  Also,which version of Shiny server on digital ocean did you run with? 
I would like for us to address the use cases where folks in South east Asia have a great experience. 

Thuy Nguyen

unread,
May 6, 2016, 2:28:38 AM5/6/16
to ShinyApps Users, olivier...@gmail.com
Hi, I am also facing the same problem. My app "disconnect from server" before the maps appear.
If anyone can help it would be great.
Thanks
Thuy
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.

Tareef Kawaf

unread,
May 6, 2016, 6:52:37 AM5/6/16
to Thuy Nguyen, ShinyApps Users, olivier...@gmail.com
Do you see any errors in either reconnect::showLogs() or in the JavaScript console? 

--
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/ac749c57-e389-419d-bd14-2334cc5571f7%40googlegroups.com.

Joshua Spiewak

unread,
May 9, 2016, 6:10:37 PM5/9/16
to ShinyApps Users
It looks like you are running out of memory. While calculating the heat maps, it takes a _very_ long time to build them, then it transfers 20+ mb for each one. Once they reach the memory limit, the application is killed, resulting in the disconnect. You could try using a large instance for your application, or investigate why it is consuming so much memory.

Thuy Nguyen

unread,
May 12, 2016, 12:22:23 AM5/12/16
to ShinyApps Users
Thank you Joshua. My shape file is very large (~180MB) but not sure how to reduce its size.
T

Olivier C

unread,
May 12, 2016, 6:46:04 AM5/12/16
to ShinyApps Users, olivier...@gmail.com
Hi Tareef,

I have experienced these disconnections with different apps for the last 6 months and always used the latest Shiny package available on CRAN.

I am staying in Bangkok and can easily connect and smoothly use the App from my office but the App sometimes disconnect when I am using the internet connection at hotel (the same behaviour observed on two different devices).
The internet connection at these two places is about the same speed. I am more and more convinced this has something to do with the ping (the reaction time of the internet connection).
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.

Olivier C

unread,
May 12, 2016, 6:46:54 AM5/12/16
to ShinyApps Users
You could try www.mapshaper.org

José Antonio Oteros Moreno

unread,
May 10, 2017, 10:32:33 AM5/10/17
to shinyapps.io Users
The app looks good now, could you solve this problem? I have a similar problem.
Reply all
Reply to author
Forward
0 new messages