Disconnected from Server whenever two people use the app?

Hello,

I have a small app here:

https://michaelvonplato.shinyapps.io/covidDeaths

I am wondering why is that whenever multiple people try to access at the same time it starts disconnecting people from the server? What settings do I have to change to make this work a little better for multiple users?

I don't need TONS of users, but I have tested this out with a friend and it does it with as few as TWO users. It seems like I am not going to be able to continue paying for this service if I can't even let two people see the app at the same time. I am hoping there is just some settings I have overlooked?

Thank you

That is not normal behavior, as far as I know, each worker allows for 50 concurrent connections by defaul so maybe the problem has to do with your specific code rather than the hosting service. Could you check what your app's logs say?

1 Like

Pointer to configuration

Just looks like some basic warnings that are typically not even displayed in my console:

2020-09-07T23:50:06.426659+00:00 shinyapps[2024413]: 
2020-09-07T23:50:06.409524+00:00 shinyapps[2024413]: 
2020-09-07T23:50:06.426658+00:00 shinyapps[2024413]: 
2020-09-07T23:50:06.426659+00:00 shinyapps[2024413]: Attaching package: ‘rsconnect’
2020-09-07T23:50:06.426933+00:00 shinyapps[2024413]: 
2020-09-07T23:50:06.409769+00:00 shinyapps[2024413]:     layout
2020-09-07T23:50:06.409769+00:00 shinyapps[2024413]: 
2020-09-07T23:50:06.408973+00:00 shinyapps[2024413]: Attaching package: ‘plotly’
2020-09-07T23:50:06.409768+00:00 shinyapps[2024413]: The following object is masked from ‘package:graphics’:
2020-09-07T23:50:06.426934+00:00 shinyapps[2024413]: 
2020-09-07T23:50:06.426933+00:00 shinyapps[2024413]:     serverInfo
2020-09-07T23:50:06.426932+00:00 shinyapps[2024413]: The following object is masked from ‘package:shiny’:
2020-09-07T23:50:06.486242+00:00 shinyapps[2024413]: 
2020-09-07T23:50:06.486243+00:00 shinyapps[2024413]: Listening on http://127.0.0.1:46449
2020-09-07T23:50:11.201257+00:00 shinyapps[2024413]: Warning: `arrange_()` is deprecated as of dplyr 0.7.0.
2020-09-07T23:50:11.201258+00:00 shinyapps[2024413]: Please use `arrange()` instead.
2020-09-07T23:50:11.201260+00:00 shinyapps[2024413]: See vignette('programming') for more help
2020-09-07T23:50:11.201261+00:00 shinyapps[2024413]: Call `lifecycle::last_warnings()` to see where this warning was generated.
2020-09-07T23:50:11.201260+00:00 shinyapps[2024413]: This warning is displayed once every 8 hours.
2020-09-07T23:50:12.075802+00:00 shinyapps[2024413]: Warning in RColorBrewer::brewer.pal(N, "Set2") :
2020-09-07T23:50:12.075804+00:00 shinyapps[2024413]:   minimal value for n is 3, returning requested palette with 3 different levels
2020-09-07T23:50:12.075805+00:00 shinyapps[2024413]: 
2020-09-07T23:50:12.171257+00:00 shinyapps[2024413]: A marker object has been specified, but markers is not in the mode
2020-09-07T23:50:12.079053+00:00 shinyapps[2024413]: Warning in RColorBrewer::brewer.pal(N, "Set2") :
2020-09-07T23:50:12.079054+00:00 shinyapps[2024413]:   minimal value for n is 3, returning requested palette with 3 different levels
2020-09-07T23:50:12.171259+00:00 shinyapps[2024413]: Adding markers to the mode...
2020-09-07T23:50:12.079055+00:00 shinyapps[2024413]: 
2020-09-07T23:50:15.571051+00:00 shinyapps[2024413]: A marker object has been specified, but markers is not in the mode
2020-09-07T23:50:15.571052+00:00 shinyapps[2024413]: Adding markers to the mode...
2020-09-07T23:50:15.474275+00:00 shinyapps[2024413]: Warning in RColorBrewer::brewer.pal(N, "Set2") :
2020-09-07T23:50:15.474283+00:00 shinyapps[2024413]: 
2020-09-07T23:50:15.474283+00:00 shinyapps[2024413]:   minimal value for n is 3, returning requested palette with 3 different levels
2020-09-07T23:50:15.477865+00:00 shinyapps[2024413]: Warning in RColorBrewer::brewer.pal(N, "Set2") :
2020-09-07T23:50:15.477866+00:00 shinyapps[2024413]:   minimal value for n is 3, returning requested palette with 3 different levels
2020-09-07T23:50:15.477867+00:00 shinyapps[2024413]: 
2020-09-07T23:50:15.572071+00:00 shinyapps[2024413]: Valid attributes include:
2020-09-07T23:50:15.572070+00:00 shinyapps[2024413]: Warning: 'scatter' objects don't have these attributes: 'dash'
2020-09-07T23:50:15.572073+00:00 shinyapps[2024413]: 'type', 'visible', 'showlegend', 'legendgroup', 'opacity', 'name', 'uid', 'ids', 'customdata', 'meta', 'selectedpoints', 'hoverinfo', 'hoverlabel', 'stream', 'transforms', 'uirevision', 'x', 'x0', 'dx', 'y', 'y0', 'dy', 'stackgroup', 'orientation', 'groupnorm', 'stackgaps', 'text', 'texttemplate', 'hovertext', 'mode', 'hoveron', 'hovertemplate', 'line', 'connectgaps', 'cliponaxis', 'fill', 'fillcolor', 'marker', 'selected', 'unselected', 'textposition', 'textfont', 'r', 't', 'error_x', 'error_y', 'xcalendar', 'ycalendar', 'xaxis', 'yaxis', 'idssrc', 'customdatasrc', 'metasrc', 'hoverinfosrc', 'xsrc', 'ysrc', 'textsrc', 'texttemplatesrc', 'hovertextsrc', 'hovertemplatesrc', 'textpositionsrc', 'rsrc', 'tsrc', 'key', 'set', 'frame', 'transforms', '_isNestedKey', '_isSimpleKey', '_isGraticule', '_bbox'
2020-09-07T23:50:15.572073+00:00 shinyapps[2024413]: 
2020-09-07T23:50:15.588603+00:00 shinyapps[2024413]: Warning: 'scatter' objects don't have these attributes: 'dash'
2020-09-07T23:50:15.588604+00:00 shinyapps[2024413]: Valid attributes include:
2020-09-07T23:50:15.588607+00:00 shinyapps[2024413]: 'type', 'visible', 'showlegend', 'legendgroup', 'opacity', 'name', 'uid', 'ids', 'customdata', 'meta', 'selectedpoints', 'hoverinfo', 'hoverlabel', 'stream', 'transforms', 'uirevision', 'x', 'x0', 'dx', 'y', 'y0', 'dy', 'stackgroup', 'orientation', 'groupnorm', 'stackgaps', 'text', 'texttemplate', 'hovertext', 'mode', 'hoveron', 'hovertemplate', 'line', 'connectgaps', 'cliponaxis', 'fill', 'fillcolor', 'marker', 'selected', 'unselected', 'textposition', 'textfont', 'r', 't', 'error_x', 'error_y', 'xcalendar', 'ycalendar', 'xaxis', 'yaxis', 'idssrc', 'customdatasrc', 'metasrc', 'hoverinfosrc', 'xsrc', 'ysrc', 'textsrc', 'texttemplatesrc', 'hovertextsrc', 'hovertemplatesrc', 'textpositionsrc', 'rsrc', 'tsrc', 'key', 'set', 'frame', 'transforms', '_isNestedKey', '_isSimpleKey', '_isGraticule', '_bbox'
2020-09-07T23:50:15.588608+00:00 shinyapps[2024413]: 
2020-09-07T23:50:15.878525+00:00 shinyapps[2024413]: Warning in RColorBrewer::brewer.pal(N, "Set2") :
2020-09-07T23:50:15.878527+00:00 shinyapps[2024413]:   minimal value for n is 3, returning requested palette with 3 different levels
2020-09-07T23:50:15.970251+00:00 shinyapps[2024413]: Warning in RColorBrewer::brewer.pal(N, "Set2") :
2020-09-07T23:50:15.878527+00:00 shinyapps[2024413]: 
2020-09-07T23:50:15.975423+00:00 shinyapps[2024413]: A marker object has been specified, but markers is not in the mode
2020-09-07T23:50:15.970252+00:00 shinyapps[2024413]:   minimal value for n is 3, returning requested palette with 3 different levels
2020-09-07T23:50:15.970253+00:00 shinyapps[2024413]: 
2020-09-07T23:50:15.975424+00:00 shinyapps[2024413]: Adding markers to the mode..

Nothing evident there, Could you provide a reproducible example (reprex) illustrating your issue? Please have a look at this resources, to see how to create one for a shiny app