"timedatectl had status 1" error in shinyapps.io

An app that I've deployed on Shinyapps.io has an intermittent error. This is what I see in the logs, when I downloaded them from the console:

2018-08-21T16:47:54.113822+00:00 shinyapps[399820]: Failed to create bus connection: No such file or directory
2018-08-21T16:47:54.114373+00:00 shinyapps[399820]: Warning in system("timedatectl", intern = TRUE) :
2018-08-21T16:47:54.114375+00:00 shinyapps[399820]: running command 'timedatectl' had status 1
2018-08-21T16:49:23.721652+00:00 shinyapps[399820]: Warning: Error in if: missing value where TRUE/FALSE needed
2018-08-21T16:49:23.727493+00:00 shinyapps[399820]: 104: renderUI [/srv/connect/apps/jobrec_survey/server.R#107]

That's not my code. Reconnecting the client did resolve the issue, but I'd prefer not to have users see an error in the first place (and likely bounce). Any ideas what's going on?

1 Like

What version of the Shiny package are you using? Or generally, what is the output of rsconnect::appDependencies()?

> rsconnect::appDependencies()
           package  version source
1               BH 1.66.0-1   CRAN
2              DBI    1.0.0   CRAN
3               DT      0.4   CRAN
4             MASS   7.3-50   CRAN
5           Matrix   1.2-14   CRAN
6               R6    2.2.2   CRAN
7     RColorBrewer    1.1-2   CRAN
8        RPostgres    1.1.1   CRAN
9             Rcpp  0.12.17   CRAN
10      assertthat    0.2.0   CRAN
11       backports    1.1.2   CRAN
12       base64enc    0.1-3   CRAN
13           bindr    0.1.1   CRAN
14        bindrcpp    0.2.2   CRAN
15           binom    1.1-1   CRAN
16             bit   1.1-14   CRAN
17           bit64    0.9-7   CRAN
18            blob    1.1.1   CRAN
19           broom    0.5.0   CRAN
20           callr    2.0.4   CRAN
21      cellranger    1.1.0   CRAN
22           class   7.3-14   CRAN
23        classInt    0.2-3   CRAN
24             cli    1.0.0   CRAN
25           clipr    0.4.1   CRAN
26      colorspace    1.3-2   CRAN
27          crayon    1.3.4   CRAN
28       crosstalk    1.0.0   CRAN
29            curl      3.2   CRAN
30      data.table   1.11.4   CRAN
31          dbplyr    1.2.1   CRAN
32       dichromat    2.0-0   CRAN
33          digest   0.6.15   CRAN
34           dplyr    0.7.6   CRAN
35           e1071    1.6-8   CRAN
36        evaluate   0.10.1   CRAN
37           fansi    0.3.0   CRAN
38         forcats    0.3.0   CRAN
39         ggplot2    3.0.0   CRAN
40            glue    1.2.0   CRAN
41       gridExtra      2.3   CRAN
42          gtable    0.2.0   CRAN
43           haven    1.1.2   CRAN
44          hexbin   1.27.2   CRAN
45           highr      0.7   CRAN
46             hms    0.4.2   CRAN
47       htmltools    0.3.6   CRAN
48     htmlwidgets      1.2   CRAN
49          httpuv  1.4.4.2   CRAN
50            httr    1.3.1   CRAN
51        jsonlite      1.5   CRAN
52           knitr     1.20   CRAN
53        labeling      0.3   CRAN
54           later    0.7.3   CRAN
55         lattice  0.20-35   CRAN
56        lazyeval    0.2.1   CRAN
57         leaflet    2.0.1   CRAN
58      listviewer    2.0.0   CRAN
59       lubridate    1.7.4   CRAN
60        magrittr      1.5   CRAN
61        markdown      0.8   CRAN
62            mgcv   1.8-24   CRAN
63            mime      0.5   CRAN
64          modelr    0.1.2   CRAN
65         munsell    0.5.0   CRAN
66            nlme  3.1-137   CRAN
67         openssl    1.0.1   CRAN
68         packrat  0.4.9-3   CRAN
69          pillar    1.3.0   CRAN
70       pkgconfig    2.0.1   CRAN
71           plogr    0.2.0   CRAN
72          plotly    4.7.1   CRAN
73            plyr    1.8.4   CRAN
74             png    0.1-7   CRAN
75            pool  0.1.4.1   CRAN
76          praise    1.0.0   CRAN
77     prettyunits    1.0.2   CRAN
78        processx    3.1.0   CRAN
79        promises    1.0.1   CRAN
80           purrr    0.2.5   CRAN
81          raster    2.6-7   CRAN
82           readr    1.1.1   CRAN
83          readxl    1.1.0   CRAN
84         rematch    1.0.1   CRAN
85          reprex    0.2.0   CRAN
86        reshape2    1.4.3   CRAN
87           rlang    0.2.1   CRAN
88       rmarkdown     1.10   CRAN
89       rprojroot    1.3-2   CRAN
90          rredis    1.7.0   CRAN
91      rstudioapi      0.7   CRAN
92           rvest    0.3.2   CRAN
93          scales    0.5.0   CRAN
94         selectr    0.4-1   CRAN
95              sf    0.6-3   CRAN
96           shiny    1.1.0   CRAN
97  shinydashboard    0.7.0   CRAN
98         shinyjs      1.0   CRAN
99     sourcetools    0.1.7   CRAN
100             sp    1.3-1   CRAN
101         spData  0.2.9.0   CRAN
102        stringi    1.2.3   CRAN
103        stringr    1.3.1   CRAN
104       testthat    2.0.0   CRAN
105         tibble    1.4.2   CRAN
106          tidyr    0.8.1   CRAN
107     tidyselect    0.2.4   CRAN
108      tidyverse    1.2.1   CRAN
109     tilegramsR    0.2.0   CRAN
110        tinytex      0.5   CRAN
111          units    0.6-0   CRAN
112           utf8    1.1.4   CRAN
113        viridis    0.5.1   CRAN
114    viridisLite    0.3.0   CRAN
115        whisker    0.3-2   CRAN
116          withr    2.1.2   CRAN
117           xml2    1.2.0   CRAN
118         xtable    1.8-2   CRAN
119           yaml   2.1.19   CRAN

This would appear to be an issue with R itself.

As such, I would focus on the warning/error (kind of silly that it is in question):