Error deploying to shinyapps.io

I get this error whenever I try to deploy to shinyapps.io, even when I'm using the default simple Shiny web app ("Old Faithful Geyser Data") that opens when you create a new Shiny app in RStudio:

Preparing to deploy application...DONE
Uploading bundle for application: 333624...DONE
Deploying bundle: 1346036 for application: 333624 ...
Waiting for task: 522982840
  building: Building package: rlang
################################ Begin Task Log ################################ 
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 522982321 failed: Error building image: Error building rlang (0.2.0). R version 3.5.0 currently unavailable
In addition: Warning messages:
1: invalid uid value replaced by that for user 'nobody' 
2: invalid gid value replaced by that for user 'nobody' 
Execution halted

The rlang package looks like it's installed fine on my system:

> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] rlang_0.2.0      intervals_0.15.1 lubridate_1.7.4 

loaded via a namespace (and not attached):
 [1] compiler_3.5.0  magrittr_1.5    rsconnect_0.8.8 tools_3.5.0     RCurl_1.95-4.10
 [6] yaml_2.1.18     Rcpp_0.12.16    RJSONIO_1.3-0   stringi_1.1.7   digest_0.6.15  
[11] stringr_1.3.0   bitops_1.0-6   
1 Like

"R version 3.5.0 currently unavailable"

It typically takes about a day after the Ubuntu R packages are built and available on CRAN for shinyapps.io to support a new version of R. They still are not available, so for the time being you can use R 3.4.4 instead.

2 Likes

I am having the same problem trying to deploy into shinyapps.io

I am getting this:

Error building image: Error building rlang (0.2.0.9001). R version 3.5.0 currently unavailable

Does anyone have a solution for this? Thanks in advance.

It may be some time before the Ubuntu R packages are available on CRAN, from what I can tell by Googling a bit:

https://stat.ethz.ch/pipermail/r-sig-debian/2018-April/002829.html


https://twitter.com/search?q=%40marutterstat&src=typd

For the time being, you would need to downgrade to R 3.4.4 or lower in order to deploy to shinyapps.io

2 Likes

Any update on this issue? I read up there that it is an Ubuntu delay, but is macOS also "slow" with these updates or are they the same? I am having exactly the same error message on my macOS R 3.5.0

There is no update at this time.
When the 3.5.0 binaries show up here, shinyapps.io will pick them up.
This should have nothing to do with macOS binaries, those are available today. However, shinyapps.io attempts to match the R environment you are running locally, so while R 3.5.0 is available now for macOS and Windows, if you want to deploy to shinyapps.io, you will need to stick with a lower version for the time being.

2 Likes

Hi,
Same problem BUT I'm using Win10 and R3.5.0 (and RStudio 1.1.447).
Testing shiny based on: http://shiny.rstudio.com/articles/shinyapps.html

"...R 3.5.0 is available now for macOS and Windows..."
Let's ask it other way round: Can anyone confirm it really works with Windows10?


Preparing to deploy application...DONE
Uploading bundle for application: 338746...Detecting system locale ... DONE
Deploying bundle: 1360663 for application: 338746 ...
Waiting for task: 524436297
building: Processing bundle: 1360663
building: Building image: 1373556
error: Building package: rlang
################################ Begin Task Log ################################
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 524436298 failed: Error building image: Error building rlang (0.2.0). R version 3.5.0 currently unavailable
In addition: Warning message:
Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw'
(Using default: en_US)

sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

shinyapps.io is a Linux environment based on Ubuntu Trusty, as such, support for R 3.5.0 will not be available until the R binaries for Ubuntu Trusty become available, regardless of your local environment having R 3.5.0 due to your running macOS or Windows.

1 Like

So if it takes 1 year for Ubuntu to make that version available, then you'll have all your users unable to publish their apps for 1 year? Or make your users use an old version of R?

1 Like

While I appreciate your frustration here (believe me, it is not fun giving disappointing answers to this same question multiple times a day), I think you are approaching a grey area in the friendliness of the discourse in this community.

If a user must use the latest version of R that just came out, RStudio offers products, both open source and professional, that may be used to host Shiny applications on operating systems other than Ubuntu or with manually built R binaries.

We are investigating options for switching to using our own R binaries so we are not dependent in this way in the future, but there is no time frame that I can communicate at this time.

That said, I do not expect this situation to last a year.

Cheers!

6 Likes

Many thanks for your response and your hard work.

Is there a way to receive a notification when it will be available?

Best regards!

We will post both here on the Community site and on the shinyapps-users Google Group.

Anything we as the R/shiny community can do to help?

1 Like

I believe that my problem is related to this one. The easiest way to understand my problem is click on Home or About. If either case, NOT FOUND is displayed on https://pjossenbruggen.shinyapps.io/gpgithub/.

There is a warning but no errors in R Markdown, Deploy or shinyapps.io logs. library(RJSONIO) and library(shiny) were added to the code to eliminate NAs in earlier runs.

I feel that I must install a package to overcome this issue.

The shinyapps.io log and sessionInfo are:
|
|.................................................................| 100%
2018-05-22T14:26:11.698920+00:00 shinyapps[347050]: output file: /tmp/rmarkdown/f9769c64af1be0032e01d1104b004c4d/index.knit.md
2018-05-22T14:26:11.680904+00:00 shinyapps[347050]:
2018-05-22T14:26:11.698924+00:00 shinyapps[347050]:
2018-05-22T14:26:11.674011+00:00 shinyapps[347050]: ordinary text without R code
2018-05-22T14:26:11.674014+00:00 shinyapps[347050]:
2018-05-22T14:26:11.759437+00:00 shinyapps[347050]: /opt/connect/ext/pandoc/pandoc +RTS -K512m -RTS /tmp/rmarkdown/f9769c64af1be0032e01d1104b004c4d/index.utf8.md --to html4 --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output /tmp/rmarkdown/f9769c64af1be0032e01d1104b004c4d/rmd_f9769c64af1be0032e01d1104b004c4d.html --smart --email-obfuscation none --standalone --section-divs --template /usr/local/lib/R/site-library/rmarkdown/rmd/h/default.html --no-highlight --variable highlightjs=1 --css style.css --id-prefix section- --include-before-body /tmp/RtmpaOQEIr/rmarkdown-str117b2ff6ad.html --variable navbar=1 --variable body_padding=60 --variable header_padding=65 --variable 'theme:flatly' --mathjax --variable 'mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --filter /opt/connect/ext/pandoc/pandoc-citeproc
2018-05-22T14:26:11.940604+00:00 shinyapps[347050]: Warning in readLines(res_path) :
2018-05-22T14:26:11.940607+00:00 shinyapps[347050]: incomplete final line found on '/tmp/rmarkdown/f9769c64af1be0032e01d1104b004c4d/rmd_f9769c64af1be0032e01d1104b004c4d_files/style.css'
2018-05-22T14:26:11.972655+00:00 shinyapps[347050]:
2018-05-22T14:26:11.972658+00:00 shinyapps[347050]: Output created: /tmp/rmarkdown/f9769c64af1be0032e01d1104b004c4d/rmd_f9769c64af1be0032e01d1104b004c4d.html
2018-05-22T14:26:53.140628+00:00 shinyapps[347050]: Server version: 1.6.2-2
2018-05-22T14:26:53.140656+00:00 shinyapps[347050]: LANG: en_US.UTF-8
2018-05-22T14:26:53.140657+00:00 shinyapps[347050]: R version: 3.4.4
2018-05-22T14:26:53.140658+00:00 shinyapps[347050]: shiny version: 1.1.0
2018-05-22T14:26:53.140659+00:00 shinyapps[347050]: rmarkdown version: 1.9
2018-05-22T14:26:53.140674+00:00 shinyapps[347050]: knitr version: 1.20
2018-05-22T14:26:53.140675+00:00 shinyapps[347050]: jsonlite version: 1.5
2018-05-22T14:26:53.140681+00:00 shinyapps[347050]: RJSONIO version: 1.3.0
2018-05-22T14:26:53.140728+00:00 shinyapps[347050]: htmltools version: 0.3.6
2018-05-22T14:26:53.321391+00:00 shinyapps[347050]: Using jsonlite for JSON processing
2018-05-22T14:26:53.437693+00:00 shinyapps[347050]:
2018-05-22T14:26:53.437700+00:00 shinyapps[347050]: Starting R with process ID: '63'
2018-05-22T14:26:53.513805+00:00 shinyapps[347050]: Listening on http://127.0.0.1:39456
2018-05-22T14:26:53.513802+00:00 shinyapps[347050]:
2018-05-22T14:32:28.336512+00:00 shinyapps[347050]: Server version: 1.6.2-2
2018-05-22T14:32:28.336574+00:00 shinyapps[347050]: R version: 3.4.4
2018-05-22T14:32:28.336572+00:00 shinyapps[347050]: LANG: en_US.UTF-8
2018-05-22T14:32:28.336632+00:00 shinyapps[347050]: RJSONIO version: 1.3.0
2018-05-22T14:32:28.336575+00:00 shinyapps[347050]: shiny version: 1.1.0
2018-05-22T14:32:28.336594+00:00 shinyapps[347050]: rmarkdown version: 1.9
2018-05-22T14:32:28.524711+00:00 shinyapps[347050]: Using jsonlite for JSON processing
2018-05-22T14:32:28.336596+00:00 shinyapps[347050]: knitr version: 1.20
2018-05-22T14:32:28.336678+00:00 shinyapps[347050]: htmltools version: 0.3.6
2018-05-22T14:32:28.336621+00:00 shinyapps[347050]: jsonlite version: 1.5
2018-05-22T14:32:28.648914+00:00 shinyapps[347050]:
2018-05-22T14:32:28.730715+00:00 shinyapps[347050]: Listening on http://127.0.0.1:33493
2018-05-22T14:32:28.648918+00:00 shinyapps[347050]: Starting R with process ID: '161'
2018-05-22T14:32:28.730711+00:00 shinyapps[347050]:

sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.4

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] tinytex_0.5.4 knitr_1.20 RJSONIO_1.3-0 shiny_1.1.0

loaded via a namespace (and not attached):
[1] Rcpp_0.12.17 digest_0.6.15 later_0.7.2 rprojroot_1.3-2 bitops_1.0-6 mime_0.5
[7] R6_2.2.2 xtable_1.8-2 backports_1.1.2 magrittr_1.5 evaluate_0.10.1 stringi_1.2.2
[13] promises_1.0.1 rmarkdown_1.9 tools_3.4.4 stringr_1.3.1 RCurl_1.95-4.10 rsconnect_0.8.8
[19] httpuv_1.4.3 yaml_2.1.19 compiler_3.4.4 htmltools_0.3.6

@pjo your issue is not related, as you are using R 3.4.4.

1 Like

Our effort to shift to our own R builds is well underway and I expect to be able to give an update later this week. Thank you for the offer of help, though, it is appreciated.

5 Likes

If you're deploying from Travis CI to shinyapps.io (yes, that's a thing :), remember that you can always hotfix this problem in your .travis.yml:

language: r

r: 
  - 3.4.4
# this makes travis-ci (which runs on ubuntu) use the last available R version.

Full R travis docs here.

Just remember to delete the hard-coded R version once this problem is solved :slight_smile:.

Thanks as always to @josh and the entire RStudio team for the amazing work. :clap:

3 Likes

I'm working on Windows 7 with R 3.5.0. Same issue:

Preparing to deploy application...DONE
Uploading bundle for application: 349121...DONE
Deploying bundle: 1393581 for application: 349121 ...
Waiting for task: 527859552
  building: Parsing manifest
  building: Building image: 1406952
  error: Installing system dependencies
################################ Begin Task Log ################################ 
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 527859557 failed: Error building image: R version 3.5.0 currently unavailable
Execution halted

Is this the same issue or is everything discussed above pertains to Linux distros only?

Sounds like the same issue. It has to do with the shinyapps.io back end server not having been able to upgrade to 3.5.0.

3 Likes