shinyapps.io deployment issue

The code is available on shinyapps.io. It runs locally on a Linux machine.

Log:

> shiny.path
[1] "/home/zij/ShinyWaters"
>    my.lib.path <- NULL
>    # Two options are to use shinyapps.io https://www.shinyapps.io/admin/#/application/492027 (initially register using setAccountInfo)
   # Regardless use rsconnec>    # or Rstudio Connect (register using connectUser)
>    # Regardless use rsconnect, works
>    rsconnect::setAccountInfo(name='yettas', token='61F350129E36963CECC600B7D1CE1CE0', secret='LGs49xq5ErrBWr9C27w7hGG/Qx5IW/XcQSJjip5Q')
>    rsconnect::configureApp(account='yettas', appName="waters", size("large"))
No configuration changes to deploy>    rsconnect::deployApp(appDir=shiny.path, upload=TRUE, account='yettas', appName="waters", logLevel='verbose', forceUpdate=TRUE)
----- Deployment log started at  2019-05-02 11:46:52  -----
Deploy command:
 rsconnect::deployApp(appDir = shiny.path, upload = TRUE, account = "yettas",      appName = "waters", logLevel = "verbose", forceUpdate = TRUE)

Session information:
R version 3.5.2 (2018-12-20)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] shinyWidgets_0.4.8   ggplot2_3.1.1        shinydashboard_0.7.1
[4] data.table_1.12.2    shiny_1.3.2

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.1       compiler_3.5.2   pillar_1.3.1     later_0.8.0
 [5] plyr_1.8.4       bitops_1.0-6     tools_3.5.2      digest_0.6.18
 [9] jsonlite_1.6     tibble_2.1.1     gtable_0.3.0     pkgconfig_2.0.2
[13] rlang_0.3.4      crosstalk_1.0.0  yaml_2.2.0       withr_2.1.2
[17] dplyr_0.8.0.1    askpass_1.1      htmlwidgets_1.3  grid_3.5.2
[21] DT_0.5           tidyselect_0.2.5 glue_1.3.1       R6_2.2.2
[25] purrr_0.3.2      magrittr_1.5     scales_1.0.0     promises_1.0.1
[29] htmltools_0.3.6  rsconnect_0.8.13 assertthat_0.2.1 mime_0.6
[33] xtable_1.8-3     colorspace_1.4-1 httpuv_1.5.1     labeling_0.3
[37] RCurl_1.95-4.12  openssl_1.3      lazyeval_0.2.2   munsell_0.5.0
[41] crayon_1.3.4     Cairo_1.5-10
Cookies:
[1] path    name    value   secure  expires
<0 rows> (or 0-length row.names)
GET /v1/applications/779726 194ms
----- Bundle upload started at  2019-05-02 11:46:52  -----
[2019-05-02 11:46:52] Inferring App mode and parameters
[2019-05-02 11:46:52] Bundling app dir
[2019-05-02 11:46:52] Generate manifest.json
[2019-05-02 11:46:56] Writing Rmd index if necessary
[2019-05-02 11:46:56] Compressing the bundle
POST /v1/bundles 213ms
[2019-05-02 11:46:57] Starting upload now
PUT /bundles/application-779726/6edc13ae30e34d00bfc6a80a33a725b9.tar.gz?AWSAccessKeyId=ASIA54P7SCTKRAYELN72&x-amz-acl=bucket-owner-full-control&Expires=1556815617&content-md5=i8pdqHy9e9kbZ%2FnKB5hoFQ%3D%3D&x-amz-security-token=AgoJb3JpZ2luX2VjEL7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQC7zwXhQPAQtRErdLbMgI5MV4DXLDQ6WMMeMgsHcD6LxwIhAOcZZcMgjyWFmm19Oq1%2BtTpkqWZ3XCkYUkt%2BbWmDfb6FKuMDCKf%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQABoMOTU0NTU1NTY5MzY1IgzQore1OKA0cukqvV0qtwP6RiEimNVDv1KI6pdPpA0NfEyj3LcsLm0xX6R61JhnuehDYjMbQzIQd67rtZn82nVvYaA9BgfYHRE%2Bxu%2B9x65J7Ql%2BnJGpLkCjTqdeLCOS2k%2FCKLUFACgDesSUbOI5NgwznWOH6c5n64AlgG38Nn047bnTlFKP5ovj33VUIQKd6KtP7w%2FnkorD%2F0%2BVCv8qleLKq7yV%2F%2FMKNEwNCSW808lVQM8NEsUhzBuJAm1Y5YkdkDecun%2BYjWT5Uec%2BGa8GVCo7rP64wQrI6FUmytSZL5jiIq78PYM9iZPerjYWe7koSdTkHcmQUhGZpqxkNoVEnh5sVQXEWpcnX3UJz9T1X4l%2BLh%2BkuI%2FGXj5PbSWm9kFtjHfKUuarh6txQQ%2BMxLzZIBIEJpmB2AJ9NAjKiw5gh2%2FZ4tJd6FM4kfhBFQsgX1wt%2BI6XOkko9BojZefmZtEsk1ZpS3kBpf2W5ut41YV0PAbWi9rya6cVt5Efo1NqyrTXt9UqPXxUWqHsDsROVxAOZl94YG9gjnaI0YlcqHvA1Ub2GnK7OxqJ2Kj5t%2FX8X6OUN%2FZmoKou9qg%2F2R8c6CmqIM4%2BaLY8sU0%2BMMzsq%2BYFOrMBIsClvvfS1UYCdUDqdTG5XWtnIt57EKgCe0LgKuAcNSEpl4cNL7DhpX0JDQf9XsgPwSfbS%2FSMTLIQLH%2F0lugOyi8KX05YUnFFY26hgU5ADkj%2FnClSODjTjHKthYDQ%2BYHyhV1Pz5GC3pWuDV0UF02Wm%2BLY1NyxCa164ibZ1TQh4QhUVwrg09XBrXi2Fgbr7fSHXgW7FriFETAL1V0S0ggM%2FiEzUIt7JA8HF8UMoB2pgVes4YU%3D&Signature=mQ%2FhhhxbQdiY814ZghQducQ8OfA%3D&content-type=application%2Fx-tar 598ms
[2019-05-02 11:46:57] Upload complete
POST /v1/bundles/2055452/status 212ms
GET /v1/bundles/2055452 201ms
[2019-05-02 11:46:58] Saving deployment record for waters -
----- Server deployment started at  2019-05-02 11:46:58  -----
POST /v1/applications/779726/deploy 375ms
Waiting for task: 609983727
GET /v1/tasks/609983727 191ms
GET /v1/tasks/609983727 179ms
  building: Parsing manifest
GET /v1/tasks/609983727 199ms
  building: Building image: 2165768
GET /v1/tasks/609983727 168ms
GET /v1/tasks/609983727 183ms
  building: Fetching packages
GET /v1/tasks/609983727 160ms
  building: Installing packages
GET /v1/tasks/609983727 166ms
GET /v1/tasks/609983727 182ms
GET /v1/tasks/609983727 155ms
GET /v1/tasks/609983727 161ms
GET /v1/tasks/609983727 170ms
GET /v1/tasks/609983727 189ms
GET /v1/tasks/609983727 163ms
GET /v1/tasks/609983727 168ms
GET /v1/tasks/609983727 181ms
GET /v1/tasks/609983727 173ms
GET /v1/tasks/609983727 158ms
GET /v1/tasks/609983727 190ms
GET /v1/tasks/609983727 192ms
GET /v1/tasks/609983727 164ms
GET /v1/tasks/609983727 164ms
GET /v1/tasks/609983727 215ms
GET /v1/tasks/609983727 190ms
GET /v1/tasks/609983727 195ms
GET /v1/tasks/609983727 167ms
GET /v1/tasks/609983727 187ms
GET /v1/tasks/609983727 166ms
GET /v1/tasks/609983727 166ms
GET /v1/tasks/609983727 161ms
  building: Installing files
GET /v1/tasks/609983727 166ms
GET /v1/tasks/609983727 179ms
GET /v1/tasks/609983727 166ms
  building: Pushing image: 2165768
GET /v1/tasks/609983727 166ms
GET /v1/tasks/609983727 160ms
GET /v1/tasks/609983727 178ms
GET /v1/tasks/609983727 181ms
GET /v1/tasks/609983727 175ms
GET /v1/tasks/609983727 166ms
GET /v1/tasks/609983727 189ms
GET /v1/tasks/609983727 179ms
GET /v1/tasks/609983727 215ms
GET /v1/tasks/609983727 167ms
GET /v1/tasks/609983727 164ms
GET /v1/tasks/609983727 161ms
GET /v1/tasks/609983727 182ms
GET /v1/tasks/609983727 228ms
GET /v1/tasks/609983727 157ms
GET /v1/tasks/609983727 173ms
GET /v1/tasks/609983727 159ms
GET /v1/tasks/609983727 166ms
GET /v1/tasks/609983727 175ms
GET /v1/tasks/609983727 165ms
GET /v1/tasks/609983727 244ms
GET /v1/tasks/609983727 163ms
GET /v1/tasks/609983727 164ms
GET /v1/tasks/609983727 180ms
GET /v1/tasks/609983727 170ms
GET /v1/tasks/609983727 195ms
GET /v1/tasks/609983727 164ms
  deploying: Starting instances
GET /v1/tasks/609983727 172ms
GET /v1/tasks/609983727 160ms
GET /v1/tasks/609983727 159ms
GET /v1/tasks/609983727 170ms
  rollforward: Activating new instances
GET /v1/tasks/609983727 164ms
  unstaging: Stopping old instances
GET /v1/tasks/609983727 167ms
----- Deployment log finished at  2019-05-02 11:48:15  -----
>    rsconnect::showLogs(appPath=shiny.path, account='yettas', appName="waters", streaming=TRUE)
Error in value[[3L]](cond) : Failed to start log listener.
>
>    rsconnect::showLogs(appPath=shiny.path, account='yettas', appName="waters2", streaming=TRUE)
Error in gzfile(file) : all connections are in use
>

Deployment error log:
2019-05-02T16:05:29.291584+00:00 shinyapps[779726]: shiny version: 1.3.2
2019-05-02T16:05:29.291584+00:00 shinyapps[779726]: httpuv version: 1.5.1
2019-05-02T16:05:29.291585+00:00 shinyapps[779726]: knitr version: NA
2019-05-02T16:05:29.291639+00:00 shinyapps[779726]: RJSONIO version: NA
2019-05-02T16:05:29.291584+00:00 shinyapps[779726]: rmarkdown version: NA
2019-05-02T16:05:29.291640+00:00 shinyapps[779726]: htmltools version: 0.3.6
2019-05-02T16:05:29.291585+00:00 shinyapps[779726]: jsonlite version: 1.6
2019-05-02T16:09:43.894733+00:00 shinyapps[779726]: jsonlite version: 1.6
2019-05-02T16:09:43.894550+00:00 shinyapps[779726]: Server version: 1.7.2-7
2019-05-02T16:09:43.895006+00:00 shinyapps[779726]: Using pandoc at /opt/connect/ext/pandoc2
2019-05-02T16:09:43.894590+00:00 shinyapps[779726]: LANG: en_US.UTF-8
2019-05-02T16:09:43.894596+00:00 shinyapps[779726]: shiny version: 1.3.2
2019-05-02T16:09:43.894615+00:00 shinyapps[779726]: httpuv version: 1.5.1
2019-05-02T16:09:43.894617+00:00 shinyapps[779726]: rmarkdown version: NA
2019-05-02T16:09:43.894723+00:00 shinyapps[779726]: knitr version: NA
2019-05-02T16:09:43.894591+00:00 shinyapps[779726]: R version: 3.5.2
2019-05-02T16:09:43.894740+00:00 shinyapps[779726]: RJSONIO version: NA
2019-05-02T16:09:43.894771+00:00 shinyapps[779726]: htmltools version: 0.3.6
2019-05-02T16:09:44.249500+00:00 shinyapps[779726]: Using jsonlite for JSON processing
2019-05-02T16:09:44.256445+00:00 shinyapps[779726]: 
2019-05-02T16:09:44.256449+00:00 shinyapps[779726]: Starting R with process ID: '19'
2019-05-02T16:09:44.296886+00:00 shinyapps[779726]: Execution halted
2019-05-02T16:09:44.289583+00:00 shinyapps[779726]: [1] "Running Shiny app file Global.R in /srv/connect/apps/waters"
2019-05-02T16:09:44.289646+00:00 shinyapps[779726]: [1] "root directory identified as "
2019-05-02T16:09:44.289633+00:00 shinyapps[779726]: [1] "Initiating ShinyWaters app"
2019-05-02T16:09:44.290081+00:00 shinyapps[779726]: Warning in rep(no, length.out = length(ans)) :
2019-05-02T16:09:44.290082+00:00 shinyapps[779726]:   'x' is NULL so the result will be NULL
2019-05-02T16:09:44.296881+00:00 shinyapps[779726]: Error in value[[3L]](cond) : replacement has length zero
2019-05-02T16:09:44.296884+00:00 shinyapps[779726]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2019-05-02T16:13:02.719952+00:00 shinyapps[779726]: Server version: 1.7.2-7
2019-05-02T16:13:02.719987+00:00 shinyapps[779726]: LANG: en_US.UTF-8
2019-05-02T16:13:02.719994+00:00 shinyapps[779726]: R version: 3.5.2
2019-05-02T16:13:02.719994+00:00 shinyapps[779726]: shiny version: 1.3.2
2019-05-02T16:13:02.719995+00:00 shinyapps[779726]: rmarkdown version: NA
2019-05-02T16:13:02.719996+00:00 shinyapps[779726]: knitr version: NA
2019-05-02T16:13:02.720235+00:00 shinyapps[779726]: Using pandoc at /opt/connect/ext/pandoc2
2019-05-02T16:13:02.719997+00:00 shinyapps[779726]: htmltools version: 0.3.6
2019-05-02T16:13:02.719997+00:00 shinyapps[779726]: RJSONIO version: NA
2019-05-02T16:13:02.719995+00:00 shinyapps[779726]: httpuv version: 1.5.1
2019-05-02T16:13:02.719996+00:00 shinyapps[779726]: jsonlite version: 1.6
2019-05-02T16:13:03.070436+00:00 shinyapps[779726]: [1] "Initiating ShinyWaters app"
2019-05-02T16:13:03.077928+00:00 shinyapps[779726]: Execution halted
2019-05-02T16:13:03.033014+00:00 shinyapps[779726]: Using jsonlite for JSON processing
2019-05-02T16:13:03.071007+00:00 shinyapps[779726]: Warning in rep(no, length.out = length(ans)) :
2019-05-02T16:13:03.039716+00:00 shinyapps[779726]: 
2019-05-02T16:13:03.071008+00:00 shinyapps[779726]:   'x' is NULL so the result will be NULL
2019-05-02T16:13:03.077911+00:00 shinyapps[779726]: Error in value[[3L]](cond) : replacement has length zero
2019-05-02T16:13:03.039721+00:00 shinyapps[779726]: Starting R with process ID: '19'
2019-05-02T16:13:03.070370+00:00 shinyapps[779726]: [1] "Running Shiny app file Global.R in /srv/connect/apps/waters"
2019-05-02T16:13:03.070502+00:00 shinyapps[779726]: [1] "root directory identified as "
2019-05-02T16:13:03.077926+00:00 shinyapps[779726]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>

Based on the error message, the deployment runs okay, but then the shiny-app fails on shinyapps.io. With this information, my best guess is that the app uses one or more absolute file paths.

Here's a discussion on trouble shooting that issue

1 Like