intermittent 'disconnected from the server'

295 views
Skip to first unread message

nm200

unread,
Mar 14, 2018, 9:14:28 AM3/14/18
to shinyapps.io Users
Hi,

I realise this is a question that has been asked alot, but I have looked at the answers and still find no solution. One thing that makes the problem more complicated is that the problem is not reliably there - it only happens sometimes, more often with some customers than others. The problem is:

I have a shiny app which is working perfectly locally. Most of the time, it also works perfectly on the server. However, every now and then, when the first action is performed, the app dicsonnects from the server. I have read suggestions that this could be because the application is too large for my memory application, but on my hard drive, the entire application takes up less than 170MB, and in the admin console, I have set the size to Xlarge (2MB). Playing with the size seems to have little influence on the 'disconnected from the server' error - the error rate at smaller sizes is much the same. In addition, the memory usage in the admin console stays below 300MB.

In the 'user guide', there are many suggestions for things that could be causing the problem, but most of these would cause the error every time the application was run, rather than 5-10% of the time, so I have ruled most of these causes out as well. 
We have tried using different browsers (internet explorer, firefox, chrome), and the choice has no impact on the error rate. 
I have reduced the 'number of workers per Application Instance to 2', with no effect. The error does not seem to correlate to the number of people using the app at the same time.
Strangely enough, the one thing that seems to help every time is when the customer contacts me to ask about this error. I then try to use the app online (usually with the same error message), after which they can successfully use again. 

Any suggestions as to how I can avoid this error would be greatly appreciated.
Thanks

Andy Kipp

unread,
Mar 14, 2018, 11:29:33 AM3/14/18
to nm200, shinyapps.io Users
Have you checked the output from showLogs()?

--
You received this message because you are subscribed to the Google Groups "shinyapps.io Users" group.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/1f78e90d-e584-4c5e-8b56-118d1a02ff93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nm200

unread,
Mar 14, 2018, 12:20:19 PM3/14/18
to shinyapps.io Users

Yep, but never directly after the customer had the problem, and the showLogs() only shows the result from the last login (or can I access older logs somehow?), which was always successful when I tried it. I will try and generate the problem again and look at the log. It is difficult to replicate the problem though - I have no idea why it occurs, might take a while...


On Wednesday, 14 March 2018 16:29:33 UTC+1, Andy Kipp wrote:
Have you checked the output from showLogs()?
On Wed, Mar 14, 2018 at 6:14 AM, nm200 <lonz...@gmail.com> wrote:
Hi,

I realise this is a question that has been asked alot, but I have looked at the answers and still find no solution. One thing that makes the problem more complicated is that the problem is not reliably there - it only happens sometimes, more often with some customers than others. The problem is:

I have a shiny app which is working perfectly locally. Most of the time, it also works perfectly on the server. However, every now and then, when the first action is performed, the app dicsonnects from the server. I have read suggestions that this could be because the application is too large for my memory application, but on my hard drive, the entire application takes up less than 170MB, and in the admin console, I have set the size to Xlarge (2MB). Playing with the size seems to have little influence on the 'disconnected from the server' error - the error rate at smaller sizes is much the same. In addition, the memory usage in the admin console stays below 300MB.

In the 'user guide', there are many suggestions for things that could be causing the problem, but most of these would cause the error every time the application was run, rather than 5-10% of the time, so I have ruled most of these causes out as well. 
We have tried using different browsers (internet explorer, firefox, chrome), and the choice has no impact on the error rate. 
I have reduced the 'number of workers per Application Instance to 2', with no effect. The error does not seem to correlate to the number of people using the app at the same time.
Strangely enough, the one thing that seems to help every time is when the customer contacts me to ask about this error. I then try to use the app online (usually with the same error message), after which they can successfully use again. 

Any suggestions as to how I can avoid this error would be greatly appreciated.
Thanks

--
You received this message because you are subscribed to the Google Groups "shinyapps.io 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.

nm200

unread,
Mar 15, 2018, 5:50:01 AM3/15/18
to shinyapps.io Users

Hi Andy,
I include the log below. I don't see anything obvious that would cause the error. There are a few versions that are listed as NA (rmarkdown version, knitr version, etc), but I don't know what affect this would have. There is also a 'browser()' still included, but this is on a tab that is never opened by the user, so I thought it should have no effect. The problem seems to occur more in firefox than in internet explorer. Any suggestions would be greatly appreciated.
Cheers,
Nichola

2018-03-15T08:35:22.626537+00:00 shinyapps[200237]: 
2018-03-15T08:35:22.715083+00:00 shinyapps[200237]: 
2018-03-15T08:35:22.716299+00:00 shinyapps[200237]: 
2018-03-15T08:35:22.716296+00:00 shinyapps[200237]: The following objects are masked from ‘package:methods’:
2018-03-15T08:35:22.715714+00:00 shinyapps[200237]:     runExample
2018-03-15T08:35:22.626540+00:00 shinyapps[200237]: Starting R with process ID: '18'
2018-03-15T08:35:22.715078+00:00 shinyapps[200237]: 
2018-03-15T08:35:22.716297+00:00 shinyapps[200237]: 
2018-03-15T08:35:22.716298+00:00 shinyapps[200237]:     removeClass, show
2018-03-15T08:35:22.715082+00:00 shinyapps[200237]: Attaching package: ‘shinyjs’
2018-03-15T08:35:22.715712+00:00 shinyapps[200237]: The following object is masked from ‘package:shiny’:
2018-03-15T08:35:22.715714+00:00 shinyapps[200237]: 
2018-03-15T08:35:22.715715+00:00 shinyapps[200237]: 
2018-03-15T08:35:23.002606+00:00 shinyapps[200237]: Loading required package: rcdklibs
2018-03-15T08:35:23.016354+00:00 shinyapps[200237]: Loading required package: rJava
2018-03-15T08:35:26.081515+00:00 shinyapps[200237]: 
2018-03-15T08:35:26.081518+00:00 shinyapps[200237]: Attaching package: ‘DT’
2018-03-15T08:35:26.081519+00:00 shinyapps[200237]: 
2018-03-15T08:35:26.081852+00:00 shinyapps[200237]: The following objects are masked from ‘package:shiny’:
2018-03-15T08:35:26.081853+00:00 shinyapps[200237]: 
2018-03-15T08:35:26.081855+00:00 shinyapps[200237]: 
2018-03-15T08:35:26.081854+00:00 shinyapps[200237]:     dataTableOutput, renderDataTable
2018-03-15T08:35:26.089292+00:00 shinyapps[200237]: 
2018-03-15T08:35:26.089293+00:00 shinyapps[200237]: Attaching package: ‘httr’
2018-03-15T08:35:26.089591+00:00 shinyapps[200237]: The following object is masked from ‘package:caret’:
2018-03-15T08:35:26.089592+00:00 shinyapps[200237]: 
2018-03-15T08:35:26.089593+00:00 shinyapps[200237]:     progress
2018-03-15T08:35:26.089294+00:00 shinyapps[200237]: 
2018-03-15T08:35:26.089593+00:00 shinyapps[200237]: 
2018-03-15T08:35:27.151052+00:00 shinyapps[200237]: 
2018-03-15T08:35:27.151056+00:00 shinyapps[200237]: Listening on http://127.0.0.1:34878
2018-03-15T08:35:43.671892+00:00 shinyapps[200237]: Sheet successfully identified: "Stats_ToxTool"
2018-03-15T08:35:45.068993+00:00 shinyapps[200237]: Accessing worksheet titled 'Sheet1'.
2018-03-15T08:35:45.894602+00:00 shinyapps[200237]: Parsed with column specification:
2018-03-15T08:35:45.894605+00:00 shinyapps[200237]: cols(
2018-03-15T08:35:45.894607+00:00 shinyapps[200237]:   SessionNr = col_integer()
2018-03-15T08:35:45.894607+00:00 shinyapps[200237]: )
2018-03-15T08:40:21.884075+00:00 shinyapps[200237]: Sheet successfully identified: "Stats_ToxTool"
2018-03-15T08:40:23.026774+00:00 shinyapps[200237]: Parsed with column specification:
2018-03-15T08:40:23.026777+00:00 shinyapps[200237]: cols(
2018-03-15T08:40:23.026779+00:00 shinyapps[200237]:   SessionNr = col_integer()
2018-03-15T08:40:23.026779+00:00 shinyapps[200237]: )
2018-03-15T08:40:46.972428+00:00 shinyapps[200237]: Server version: 1.5.14-6
2018-03-15T08:40:46.972466+00:00 shinyapps[200237]: LANG: en_AU.UTF-8
2018-03-15T08:40:46.972468+00:00 shinyapps[200237]: R version: 3.4.1
2018-03-15T08:40:47.215652+00:00 shinyapps[200237]: 
2018-03-15T08:40:47.215655+00:00 shinyapps[200237]: Starting R with process ID: '81'
2018-03-15T08:40:46.972470+00:00 shinyapps[200237]: shiny version: 1.0.5
2018-03-15T08:40:46.972471+00:00 shinyapps[200237]: rmarkdown version: NA
2018-03-15T08:40:46.972479+00:00 shinyapps[200237]: knitr version: NA
2018-03-15T08:40:46.972481+00:00 shinyapps[200237]: jsonlite version: 1.5
2018-03-15T08:40:46.972493+00:00 shinyapps[200237]: RJSONIO version: NA
2018-03-15T08:40:46.972501+00:00 shinyapps[200237]: htmltools version: 0.3.6
2018-03-15T08:40:47.121655+00:00 shinyapps[200237]: Using jsonlite for JSON processing
2018-03-15T08:40:47.271940+00:00 shinyapps[200237]: 
2018-03-15T08:40:47.271943+00:00 shinyapps[200237]: Attaching package: ‘shinyjs’
2018-03-15T08:40:47.271945+00:00 shinyapps[200237]: 
2018-03-15T08:40:47.273599+00:00 shinyapps[200237]: The following object is masked from ‘package:shiny’:
2018-03-15T08:40:47.273601+00:00 shinyapps[200237]: 
2018-03-15T08:40:47.273602+00:00 shinyapps[200237]:     runExample
2018-03-15T08:40:47.273602+00:00 shinyapps[200237]: 
2018-03-15T08:40:47.274211+00:00 shinyapps[200237]: The following objects are masked from ‘package:methods’:
2018-03-15T08:40:47.274212+00:00 shinyapps[200237]: 
2018-03-15T08:40:47.274212+00:00 shinyapps[200237]:     removeClass, show
2018-03-15T08:40:47.274213+00:00 shinyapps[200237]: 
2018-03-15T08:40:47.446816+00:00 shinyapps[200237]: Loading required package: rcdklibs
2018-03-15T08:40:47.450275+00:00 shinyapps[200237]: Loading required package: rJava
2018-03-15T08:40:49.698350+00:00 shinyapps[200237]: 
2018-03-15T08:40:49.698353+00:00 shinyapps[200237]: Attaching package: ‘DT’
2018-03-15T08:40:49.698355+00:00 shinyapps[200237]: 
2018-03-15T08:40:49.698654+00:00 shinyapps[200237]: The following objects are masked from ‘package:shiny’:
2018-03-15T08:40:49.698655+00:00 shinyapps[200237]: 
2018-03-15T08:40:49.698658+00:00 shinyapps[200237]:     dataTableOutput, renderDataTable
2018-03-15T08:40:49.698658+00:00 shinyapps[200237]: 
2018-03-15T08:40:49.705112+00:00 shinyapps[200237]: 
2018-03-15T08:40:49.705114+00:00 shinyapps[200237]: Attaching package: ‘httr’
2018-03-15T08:40:49.705114+00:00 shinyapps[200237]: 
2018-03-15T08:40:49.705414+00:00 shinyapps[200237]: The following object is masked from ‘package:caret’:
2018-03-15T08:40:49.705415+00:00 shinyapps[200237]: 
2018-03-15T08:40:49.705416+00:00 shinyapps[200237]:     progress
2018-03-15T08:40:49.705417+00:00 shinyapps[200237]: 
2018-03-15T08:40:50.679603+00:00 shinyapps[200237]: 
2018-03-15T08:40:50.679606+00:00 shinyapps[200237]: Listening on http://127.0.0.1:35741
2018-03-15T08:41:00.560921+00:00 shinyapps[200237]: Sheet successfully identified: "ShinyToolFeedback"
2018-03-15T08:41:00.853444+00:00 shinyapps[200237]: Accessing worksheet titled 'Sheet1'.
2018-03-15T08:42:15.394711+00:00 shinyapps[200237]: Called from: exprFunc()
2018-03-15T08:42:15.396055+00:00 shinyapps[200237]: debug at /srv/connect/apps/toxapp/app.R#516: colnames(AllPreds) <- c("predicted", "relative Mahalanobis dist", 
2018-03-15T08:42:15.396056+00:00 shinyapps[200237]:     "average error (test set)")
2018-03-15T08:42:15.396125+00:00 shinyapps[200237]: debug at /srv/connect/apps/toxapp/app.R#517: DT::datatable(AllPreds, rownames = TRUE)
2018-03-15T08:42:15.394784+00:00 shinyapps[200237]: debug at /srv/connect/apps/toxapp/app.R#510: AllPreds <- rbind(unlist(AllOut()$WaterSolPred_out), unlist(AllOut()$BPPred_out), 
2018-03-15T08:42:15.394785+00:00 shinyapps[200237]:     unlist(AllOut()$MPPred_out))
2018-03-15T08:42:15.395187+00:00 shinyapps[200237]: debug at /srv/connect/apps/toxapp/app.R#512: AllPreds[1, 1] <- formatC(AllPreds[1, 1], format = "f", digits = 1)
2018-03-15T08:42:15.395033+00:00 shinyapps[200237]: debug at /srv/connect/apps/toxapp/app.R#511: AllPreds <- round(apply(AllPreds, 2, as.numeric), 2)
2018-03-15T08:42:15.395410+00:00 shinyapps[200237]: debug at /srv/connect/apps/toxapp/app.R#513: AllPreds[2:3, 1] <- formatC(as.numeric(AllPreds[2:3, 1]), format = "f", 
2018-03-15T08:42:15.395410+00:00 shinyapps[200237]:     digits = 0)
2018-03-15T08:42:15.395544+00:00 shinyapps[200237]: debug at /srv/connect/apps/toxapp/app.R#514: AllPreds <- data.frame(cbind(AllPreds[, 1:2], c(0.5, 16, 27)))
2018-03-15T08:42:15.395948+00:00 shinyapps[200237]: debug at /srv/connect/apps/toxapp/app.R#515: rownames(AllPreds) <- c("log water solubility (mg/L)", "boiling point (C)", 
2018-03-15T08:42:15.395949+00:00 shinyapps[200237]:     "melting point (C)")
2018-03-15T08:43:44.407360+00:00 shinyapps[200237]: Row successfully appended.
2018-03-15T08:43:52.064562+00:00 shinyapps[200237]: Sheet successfully identified: "Stats_ToxTool"
2018-03-15T08:43:53.112182+00:00 shinyapps[200237]: Parsed with column specification:
2018-03-15T08:43:53.112185+00:00 shinyapps[200237]: cols(
2018-03-15T08:43:53.112186+00:00 shinyapps[200237]:   SessionNr = col_integer()
2018-03-15T08:43:53.112187+00:00 shinyapps[200237]: )
2018-03-15T08:47:54.885934+00:00 shinyapps[200237]: Sheet successfully identified: "Stats_ToxTool"
2018-03-15T08:47:55.505483+00:00 shinyapps[200237]: Accessing worksheet titled 'Sheet1'.
2018-03-15T08:47:55.932637+00:00 shinyapps[200237]: Parsed with column specification:
2018-03-15T08:47:55.932640+00:00 shinyapps[200237]: cols(
2018-03-15T08:47:55.932641+00:00 shinyapps[200237]:   SessionNr = col_integer()
2018-03-15T08:47:55.932642+00:00 shinyapps[200237]: )
2018-03-15T08:48:13.702891+00:00 shinyapps[200237]: Sheet successfully identified: "Stats_ToxTool"
2018-03-15T08:48:14.622140+00:00 shinyapps[200237]: Accessing worksheet titled 'Sheet1'.
2018-03-15T08:48:14.374548+00:00 shinyapps[200237]: Sheet successfully identified: "ShinyToolFeedback"
2018-03-15T08:48:22.619528+00:00 shinyapps[200237]: Row successfully appended.
2018-03-15T09:30:21.694789+00:00 shinyapps[200237]: Server version: 1.5.14-6
2018-03-15T09:30:21.694828+00:00 shinyapps[200237]: LANG: en_AU.UTF-8
2018-03-15T09:30:21.694829+00:00 shinyapps[200237]: R version: 3.4.1
2018-03-15T09:30:21.694835+00:00 shinyapps[200237]: shiny version: 1.0.5
2018-03-15T09:30:21.694835+00:00 shinyapps[200237]: rmarkdown version: NA
2018-03-15T09:30:21.694855+00:00 shinyapps[200237]: knitr version: NA
2018-03-15T09:30:21.694856+00:00 shinyapps[200237]: jsonlite version: 1.5
2018-03-15T09:30:21.694870+00:00 shinyapps[200237]: RJSONIO version: NA
2018-03-15T09:30:21.694882+00:00 shinyapps[200237]: htmltools version: 0.3.6
2018-03-15T09:30:21.905757+00:00 shinyapps[200237]: Using jsonlite for JSON processing
2018-03-15T09:30:22.016620+00:00 shinyapps[200237]: 
2018-03-15T09:30:22.016624+00:00 shinyapps[200237]: Starting R with process ID: '17'
2018-03-15T09:30:22.104494+00:00 shinyapps[200237]: 
2018-03-15T09:30:22.104497+00:00 shinyapps[200237]: Attaching package: ‘shinyjs’
2018-03-15T09:30:22.104497+00:00 shinyapps[200237]: 
2018-03-15T09:30:22.105189+00:00 shinyapps[200237]: The following object is masked from ‘package:shiny’:
2018-03-15T09:30:22.105191+00:00 shinyapps[200237]: 
2018-03-15T09:30:22.105848+00:00 shinyapps[200237]: 
2018-03-15T09:30:22.105192+00:00 shinyapps[200237]:     runExample
2018-03-15T09:30:22.105193+00:00 shinyapps[200237]: 
2018-03-15T09:30:22.105847+00:00 shinyapps[200237]: The following objects are masked from ‘package:methods’:
2018-03-15T09:30:22.105849+00:00 shinyapps[200237]:     removeClass, show
2018-03-15T09:30:22.105850+00:00 shinyapps[200237]: 
2018-03-15T09:30:22.407224+00:00 shinyapps[200237]: Loading required package: rcdklibs
2018-03-15T09:30:22.412247+00:00 shinyapps[200237]: Loading required package: rJava
2018-03-15T09:30:23.207445+00:00 shinyapps[200237]: Loading required package: bitops
2018-03-15T09:30:23.213467+00:00 shinyapps[200237]: 
2018-03-15T09:30:23.213470+00:00 shinyapps[200237]: 
2018-03-15T09:30:23.213469+00:00 shinyapps[200237]: Attaching package: ‘RCurl’
2018-03-15T09:30:23.213774+00:00 shinyapps[200237]: The following object is masked from ‘package:rJava’:
2018-03-15T09:30:23.213775+00:00 shinyapps[200237]: 
2018-03-15T09:30:23.213776+00:00 shinyapps[200237]:     clone
2018-03-15T09:30:23.214199+00:00 shinyapps[200237]:     reset
2018-03-15T09:30:23.214199+00:00 shinyapps[200237]: 
2018-03-15T09:30:23.223154+00:00 shinyapps[200237]: Loading required package: lattice
2018-03-15T09:30:23.214197+00:00 shinyapps[200237]: The following object is masked from ‘package:shinyjs’:
2018-03-15T09:30:23.213777+00:00 shinyapps[200237]: 
2018-03-15T09:30:23.214198+00:00 shinyapps[200237]: 
2018-03-15T09:30:23.285415+00:00 shinyapps[200237]: Loading required package: ggplot2
2018-03-15T09:30:25.484872+00:00 shinyapps[200237]: 
2018-03-15T09:30:25.484875+00:00 shinyapps[200237]: Attaching package: ‘DT’
2018-03-15T09:30:25.492321+00:00 shinyapps[200237]: 
2018-03-15T09:30:25.484876+00:00 shinyapps[200237]: 
2018-03-15T09:30:25.492321+00:00 shinyapps[200237]:     progress
2018-03-15T09:30:25.485177+00:00 shinyapps[200237]: The following objects are masked from ‘package:shiny’:
2018-03-15T09:30:25.492322+00:00 shinyapps[200237]: 
2018-03-15T09:30:25.485179+00:00 shinyapps[200237]: 
2018-03-15T09:30:25.485179+00:00 shinyapps[200237]:     dataTableOutput, renderDataTable
2018-03-15T09:30:25.485180+00:00 shinyapps[200237]: 
2018-03-15T09:30:25.492035+00:00 shinyapps[200237]: 
2018-03-15T09:30:25.492319+00:00 shinyapps[200237]: The following object is masked from ‘package:caret’:
2018-03-15T09:30:25.492036+00:00 shinyapps[200237]: Attaching package: ‘httr’
2018-03-15T09:30:25.492037+00:00 shinyapps[200237]: 
2018-03-15T09:30:26.541185+00:00 shinyapps[200237]: 
2018-03-15T09:30:26.541189+00:00 shinyapps[200237]: Listening on http://127.0.0.1:36937
2018-03-15T09:30:57.308990+00:00 shinyapps[200237]: Sheet successfully identified: "Stats_ToxTool"
2018-03-15T09:30:57.808156+00:00 shinyapps[200237]: Sheet successfully identified: "ShinyToolFeedback"
2018-03-15T09:30:58.895615+00:00 shinyapps[200237]: Parsed with column specification:
2018-03-15T09:30:58.895618+00:00 shinyapps[200237]: cols(
2018-03-15T09:30:58.895619+00:00 shinyapps[200237]:   SessionNr = col_integer()
2018-03-15T09:30:58.895619+00:00 shinyapps[200237]: )
2018-03-15T09:30:59.214454+00:00 shinyapps[200237]: Sheet successfully identified: "Stats_ToxTool"
2018-03-15T09:31:00.252997+00:00 shinyapps[200237]: Parsed with column specification:
2018-03-15T09:31:00.253003+00:00 shinyapps[200237]: cols(
2018-03-15T09:31:00.253004+00:00 shinyapps[200237]:   SessionNr = col_integer()
2018-03-15T09:31:00.253005+00:00 shinyapps[200237]: )
2018-03-15T09:31:00.635862+00:00 shinyapps[200237]: Sheet successfully identified: "Stats_ToxTool"
2018-03-15T09:31:01.497099+00:00 shinyapps[200237]: Accessing worksheet titled 'Sheet1'.
2018-03-15T09:31:01.843008+00:00 shinyapps[200237]: Parsed with column specification:
2018-03-15T09:31:01.843010+00:00 shinyapps[200237]: cols(
2018-03-15T09:31:01.843012+00:00 shinyapps[200237]:   SessionNr = col_integer()
2018-03-15T09:31:01.843012+00:00 shinyapps[200237]: )

Andy Kipp

unread,
Mar 16, 2018, 11:42:17 AM3/16/18
to nm200, shinyapps.io Users
If the user is being disconnected, that is typically because the R process is crashing or exiting for some reason. Any errors should be written to the log. You could consider adding some debug statements to help identify where the application may be crashing.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/2beb005d-8668-42e1-b6a1-17f3d0f8929b%40googlegroups.com.

nm200

unread,
Mar 16, 2018, 12:53:24 PM3/16/18
to shinyapps.io Users
Hi Andy,
thanks for the tip. It is not clear to me where I should add debug statements, or what these debugging statements should be looking for, because the problem is not very reproducible, it happens only occasionally and only for some users - otherwise everything runs smoothly. The messages in the log that I thought sounded suspicious are those where a version is listed as NA (see last post for log), but I am not sure how to interpret these messages. Can you tell me what specifically I should be looking for in the debugging, or what these version:NA statements in the log mean?
Thanks,
Nichola

Arun Jayaraman

unread,
Aug 16, 2018, 1:11:44 PM8/16/18
to shinyapps.io Users
Hi Andy,

I have a shiny application that works perfectly locally and it's also being deployed successfully to shinyapps.io. For this application, I'm using excel datasets which are in the same folder as the app. I have some filters on this shiny application which works fine locally. But when I try to use the filters on shinyapps, it immediately says 'disconnected from server'. I have attached the logs. Please advise me on this issue. Thanks!

2018-08-16T16:39:44.408104+00:00 shinyapps[400544]:   104: shiny::renderUI
2018-08-16T16:39:44.408105+00:00 shinyapps[400544]:    89: output$unitsdel
2018-08-16T16:39:44.408104+00:00 shinyapps[400544]:   103: func
2018-08-16T16:39:44.408105+00:00 shinyapps[400544]:    90: origRenderFunc
2018-08-16T16:39:44.408107+00:00 shinyapps[400544]:     6: eval
2018-08-16T16:40:34.336880+00:00 shinyapps[400544]: Warning: Error in %in%: object 'Terminal' not found
2018-08-16T16:40:34.349699+00:00 shinyapps[400544]:   118: %in%
2018-08-16T16:40:34.349700+00:00 shinyapps[400544]:   116: function_list[[k]]
2018-08-16T16:40:34.349701+00:00 shinyapps[400544]:   114: freduce
2018-08-16T16:40:34.349702+00:00 shinyapps[400544]:   113: _fseq
2018-08-16T16:40:34.349702+00:00 shinyapps[400544]:   112: eval
2018-08-16T16:40:34.349703+00:00 shinyapps[400544]:   111: eval
2018-08-16T16:40:34.349703+00:00 shinyapps[400544]:   109: %>%
2018-08-16T16:40:34.349704+00:00 shinyapps[400544]:    92: loc
2018-08-16T16:40:34.349704+00:00 shinyapps[400544]:   108: <reactive:loc> [/srv/connect/apps/spider_maps/app.R#51]
2018-08-16T16:40:34.349705+00:00 shinyapps[400544]:    91: func [/srv/connect/apps/spider_maps/app.R#57]
2018-08-16T16:40:34.349705+00:00 shinyapps[400544]:    90: origRenderFunc
2018-08-16T16:40:34.349706+00:00 shinyapps[400544]:    89: output$map
2018-08-16T16:40:34.349728+00:00 shinyapps[400544]:    13: runApp
2018-08-16T16:40:34.349728+00:00 shinyapps[400544]:    12: fn
2018-08-16T16:40:34.349729+00:00 shinyapps[400544]:     7: connect$retry
2018-08-16T16:40:34.349730+00:00 shinyapps[400544]:     6: eval
2018-08-16T16:40:34.349736+00:00 shinyapps[400544]:     5: eval
2018-08-16T16:40:34.363186+00:00 shinyapps[400544]:   65: <Anonymous>
2018-08-16T16:40:34.368784+00:00 shinyapps[400544]: Warning: Error in %in%: object 'DriverHome' not found
2018-08-16T16:40:34.379053+00:00 shinyapps[400544]:   83: %in%
2018-08-16T16:40:34.356090+00:00 shinyapps[400544]: Warning: Error in %in%: object 'Terminal' not found
2018-08-16T16:40:34.379055+00:00 shinyapps[400544]:   81: function_list[[k]]
2018-08-16T16:40:34.379055+00:00 shinyapps[400544]:   79: freduce
2018-08-16T16:40:34.379056+00:00 shinyapps[400544]:   78: _fseq
2018-08-16T16:40:34.379057+00:00 shinyapps[400544]:   77: eval
2018-08-16T16:40:34.379058+00:00 shinyapps[400544]:   74: %>%
2018-08-16T16:40:34.379058+00:00 shinyapps[400544]:   76: eval
2018-08-16T16:40:34.379265+00:00 shinyapps[400544]:   57: data2
2018-08-16T16:40:34.379266+00:00 shinyapps[400544]:   56: <observer> [/srv/connect/apps/spider_maps/app.R#166]
2018-08-16T16:40:34.379059+00:00 shinyapps[400544]:   73: <reactive:data2> [/srv/connect/apps/spider_maps/app.R#161]
2018-08-16T16:40:34.379267+00:00 shinyapps[400544]:   13: runApp
2018-08-16T16:40:34.379267+00:00 shinyapps[400544]:   12: fn
2018-08-16T16:40:34.379268+00:00 shinyapps[400544]:    7: connect$retry
2018-08-16T16:40:34.379268+00:00 shinyapps[400544]:    6: eval
2018-08-16T16:40:34.379269+00:00 shinyapps[400544]:    5: eval
2018-08-16T16:40:34.382310+00:00 shinyapps[400544]: Warning: Error in %in%: object 'DriverHome' not found
2018-08-16T16:40:34.389065+00:00 shinyapps[400544]:   59: <Anonymous>
2018-08-16T16:40:34.405141+00:00 shinyapps[400544]:   119: <Anonymous>
2018-08-16T16:40:34.412579+00:00 shinyapps[400544]: Warning: Error in %in%: object 'DriverHome' not found
2018-08-16T16:40:34.426498+00:00 shinyapps[400544]:   108: <Anonymous>
2018-08-16T16:40:34.433791+00:00 shinyapps[400544]: Warning: Error in %in%: object 'DriverHome' not found
2018-08-16T16:40:34.443664+00:00 shinyapps[400544]:   108: <Anonymous>
2018-08-16T16:40:34.453846+00:00 shinyapps[400544]: Warning: Error in %in%: object 'DriverHome' not found
2018-08-16T16:40:34.394883+00:00 shinyapps[400544]: Warning: Error in %in%: object 'DriverHome' not found 
2018-08-16T16:40:34.464139+00:00 shinyapps[400544]: 109: <Anonymous> 
2018-08-16T17:06:53.689005+00:00 shinyapps[400544]:    89: output$unitsdel
2018-08-16T17:06:53.689006+00:00 shinyapps[400544]:    13: runApp
2018-08-16T17:06:53.689006+00:00 shinyapps[400544]:    12: fn
2018-08-16T17:06:53.689007+00:00 shinyapps[400544]:     7: connect$retry
2018-08-16T17:06:53.689008+00:00 shinyapps[400544]:     6: eval
2018-08-16T17:06:53.689009+00:00 shinyapps[400544]:     5: eval
2018-08-16T17:07:54.874293+00:00 shinyapps[400544]: Warning: Error in $: $ operator is invalid for atomic vectors
2018-08-16T17:07:54.949749+00:00 shinyapps[400544]:   115: tag
2018-08-16T17:07:54.949751+00:00 shinyapps[400544]:   114: tags$h3
2018-08-16T17:07:54.949752+00:00 shinyapps[400544]:   113: h3
2018-08-16T17:07:54.949753+00:00 shinyapps[400544]:   106: valueBox
2018-08-16T17:07:54.949754+00:00 shinyapps[400544]:   105: vbox_fun [/srv/connect/apps/spider_maps/app.R#379]
2018-08-16T17:07:54.949754+00:00 shinyapps[400544]:   104: shiny::renderUI
2018-08-16T17:07:54.949755+00:00 shinyapps[400544]:   103: func
2018-08-16T17:07:54.949755+00:00 shinyapps[400544]:    90: origRenderFunc
2018-08-16T17:07:54.949756+00:00 shinyapps[400544]:    13: runApp
2018-08-16T17:07:54.949757+00:00 shinyapps[400544]:    12: fn
2018-08-16T17:07:54.949756+00:00 shinyapps[400544]:    89: output$unitsdel
2018-08-16T17:07:54.949757+00:00 shinyapps[400544]:     7: connect$retry
2018-08-16T17:07:54.949758+00:00 shinyapps[400544]:     6: eval
2018-08-16T17:07:54.949758+00:00 shinyapps[400544]:     5: eval
2018-08-16T17:09:30.649640+00:00 shinyapps[400544]: Warning: Error in filter: object 'L2' not found
2018-08-16T17:09:30.661238+00:00 shinyapps[400544]:   99: filter
2018-08-16T17:09:30.661242+00:00 shinyapps[400544]:   95: _fseq
2018-08-16T17:09:30.661245+00:00 shinyapps[400544]:   73: <reactive:data2> [/srv/connect/apps/spider_maps/app.R#158]
2018-08-16T17:09:30.661240+00:00 shinyapps[400544]:   98: function_list[[k]]
2018-08-16T17:09:30.661243+00:00 shinyapps[400544]:   94: eval
2018-08-16T17:09:30.661419+00:00 shinyapps[400544]:   13: runApp
2018-08-16T17:09:30.661241+00:00 shinyapps[400544]:   96: freduce
2018-08-16T17:09:30.661244+00:00 shinyapps[400544]:   91: %>%
2018-08-16T17:09:30.661243+00:00 shinyapps[400544]:   93: eval
2018-08-16T17:09:30.661421+00:00 shinyapps[400544]:    5: eval
2018-08-16T17:09:30.661244+00:00 shinyapps[400544]:   90: <reactive:data1> [/srv/connect/apps/spider_maps/app.R#143]
2018-08-16T17:09:30.661245+00:00 shinyapps[400544]:   74: data1
2018-08-16T17:09:30.661246+00:00 shinyapps[400544]:   57: data2
2018-08-16T17:09:30.661247+00:00 shinyapps[400544]:   56: <observer> [/srv/connect/apps/spider_maps/app.R#338]
2018-08-16T17:09:30.661419+00:00 shinyapps[400544]:   12: fn
2018-08-16T17:09:30.661420+00:00 shinyapps[400544]:    7: connect$retry
2018-08-16T17:09:30.661421+00:00 shinyapps[400544]:    6: eval
2018-08-16T17:09:30.703120+00:00 shinyapps[400544]: Warning: Error in filter: object 'L2' not found
2018-08-16T17:09:30.736587+00:00 shinyapps[400544]:   108: <Anonymous>
2018-08-16T17:09:30.744042+00:00 shinyapps[400544]: Warning: Error in filter: object 'L2' not found
2018-08-16T17:09:30.719456+00:00 shinyapps[400544]:   119: <Anonymous>
2018-08-16T17:09:30.727007+00:00 shinyapps[400544]: Warning: Error in filter: object 'L2' not found
2018-08-16T17:09:30.753542+00:00 shinyapps[400544]:   108: <Anonymous>
2018-08-16T17:09:30.761037+00:00 shinyapps[400544]: Warning: Error in filter: object 'L2' not found
2018-08-16T17:09:30.770635+00:00 shinyapps[400544]:   109: <Anonymous>
2018-08-16T17:09:30.977612+00:00 shinyapps[400544]: Warning: Error in filter: object 'L2' not found
2018-08-16T17:09:30.984535+00:00 shinyapps[400544]:   59: <Anonymous>
2018-08-16T17:09:31.087070+00:00 shinyapps[400544]: Warning: Error in filter: object 'L2' not found
2018-08-16T17:09:31.095466+00:00 shinyapps[400544]:   87: <Anonymous>


"DriverHome' is the dataframe created using the excel data. 
Object 'L2' is a dataframe column.

I'm not sure why this filtering is not working online. Any help would be appreciated!

Thanks,
Arun


Reply all
Reply to author
Forward
0 new messages