Error: Unhandled Exception: child_task=1391364942 child_task_status=failed: Error building image: Error building MA
bclopesrs opened this issue · comments
I have been run in this issue when trying to deploy my ShinyApp. Does anybody know how to solve it? Error: Unhandled Exception: child_task=1391364942 child_task_status=failed: Error building image: Error building MA
Same here. Depending on the specific dependencies, the error is related to MASS or DBI.
Tried to install the dev version of rsconnect with remotes::install_github("rstudio/rsconnect") but I still get the same errors.
This is with R version 4.3.3 (2024-02-29) on Ubuntu 22.04.
rsconnect::deployApp(appDir = "~/BayesianReasoning/", appFiles = c("app.R", "DESCRIPTION"), appName = "BayesianReasoning_test")
#> ── Preparing for deployment ────────────────────────────────────────────────────
#> ✔ Re-deploying "BayesianReasoning_test" using "server: shinyapps.io / username: gorkang"
#> ℹ Looking up application with id "11408541"...
#> ✔ Found application <https://gorkang.shinyapps.io/BayesianReasoning_test/>
#> ℹ Bundling 2 files: 'app.R' and 'DESCRIPTION'
#> ℹ Capturing R dependencies with renv
#> ✔ Found 91 dependencies
#> ✔ Created 56,648b bundle
#> ℹ Uploading bundle...
#> ✔ Uploaded bundle with id 8338522
#> ── Deploying to server ─────────────────────────────────────────────────────────
#> Waiting for task: 1391508975
#> building: Parsing manifest
#> building: Building image: 10091866
#> building: Installing system dependencies
#> error: Building package: MASS
#> ## Begin Task Log ##############################################################
#> ## End Task Log ################################################################
#> Error: Unhandled Exception: child_task=1391508978 child_task_status=failed: Error building image: Error building MASS (7.3-60.0.1). Build exited with non-zero status: 127
Created on 2024-03-06 with reprex v2.1.0
Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#> setting value
#> version R version 4.3.3 (2024-02-29)
#> os Ubuntu 22.04.4 LTS
#> system x86_64, linux-gnu
#> ui X11
#> language (EN)
#> collate en_US.UTF-8
#> ctype en_US.UTF-8
#> tz Atlantic/Canary
#> date 2024-03-06
#> pandoc 3.1.1 @ /usr/lib/rstudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
#>
#> ─ Packages ───────────────────────────────────────────────────────────────────
#> package * version date (UTC) lib source
#> askpass 1.2.0 2023-09-03 [1] RSPM (R 4.3.0)
#> cli 3.6.2 2023-12-11 [1] RSPM (R 4.3.0)
#> curl 5.2.1 2024-03-01 [1] CRAN (R 4.3.3)
#> digest 0.6.34 2024-01-11 [1] RSPM (R 4.3.0)
#> evaluate 0.23 2023-11-01 [1] RSPM (R 4.3.0)
#> fastmap 1.1.1 2023-02-24 [1] RSPM
#> fs 1.6.3 2023-07-20 [1] RSPM (R 4.3.0)
#> glue 1.7.0 2024-01-09 [1] RSPM (R 4.3.0)
#> htmltools 0.5.7 2023-11-03 [1] RSPM (R 4.3.0)
#> jsonlite 1.8.8 2023-12-04 [1] RSPM (R 4.3.0)
#> knitr 1.45 2023-10-30 [1] RSPM (R 4.3.0)
#> lifecycle 1.0.4 2023-11-07 [1] RSPM (R 4.3.0)
#> magrittr 2.0.3 2022-03-30 [1] RSPM
#> openssl 2.1.1 2023-09-25 [1] RSPM (R 4.3.1)
#> purrr 1.0.2 2023-08-10 [1] RSPM (R 4.3.0)
#> R.cache 0.16.0 2022-07-21 [1] RSPM
#> R.methodsS3 1.8.2 2022-06-13 [1] RSPM
#> R.oo 1.26.0 2024-01-24 [1] RSPM (R 4.3.0)
#> R.utils 2.12.3 2023-11-18 [1] RSPM (R 4.3.0)
#> renv 1.0.5 2024-02-29 [1] CRAN (R 4.3.3)
#> reprex 2.1.0 2024-01-11 [1] RSPM (R 4.3.0)
#> rlang 1.1.3 2024-01-10 [1] RSPM (R 4.3.0)
#> rmarkdown 2.25 2023-09-18 [1] CRAN (R 4.3.2)
#> rsconnect 1.2.1.9000 2024-03-06 [1] Github (rstudio/rsconnect@81b18c9)
#> rstudioapi 0.15.0 2023-07-07 [1] CRAN (R 4.3.1)
#> sessioninfo 1.2.2 2021-12-06 [1] RSPM
#> styler 1.10.2 2023-08-29 [1] RSPM (R 4.3.0)
#> vctrs 0.6.5 2023-12-01 [1] RSPM (R 4.3.0)
#> withr 3.0.0 2024-01-16 [1] RSPM (R 4.3.0)
#> xfun 0.42 2024-02-08 [1] RSPM (R 4.3.0)
#> yaml 2.3.8 2023-12-11 [1] RSPM (R 4.3.0)
#>
#> [1] /home/emrys/R/x86_64-pc-linux-gnu-library/4.3
#> [2] /usr/local/lib/R/site-library
#> [3] /usr/lib/R/site-library
#> [4] /usr/lib/R/library
#>
#> ──────────────────────────────────────────────────────────────────────────────
Hello.
Sorry I also had a similar problem. My codes are dependent on "GenomicRanges" and "shiny" libraries. When attempting to deploy app (with a goal to update changes to an already available app) I get an error saying "Error building BiocGenerics (0.48.1)".
library(BiocManager)
library(rsconnect)
options(
repos = c(CRAN_mirror = "https://cran.rstudio.com/"),
BioC_mirror = "https://bioconductor.statistik.tu-dortmund.de/"
)
options(repos = BiocManager::repositories())
deployApp("/Users/oghabian/Documents/projects/UddLab/OBSCN_NEW/shinyApp/", appName = "OBSCN_PSIVIS")
── Preparing for deployment ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ Re-deploying "OBSCN_PSIVIS" using "server: shinyapps.io / username: gacatag"
ℹ Looking up application with id "9532727"...
✔ Found application <https://gacatag.shinyapps.io/OBSCN_PSIVIS/>
ℹ Bundling 14 files: app.R, data/.Rapp.history, data/difAdultSel.rda, data/difListSel.rda, data/difMuscleSel.rda, data/dupInd.rda, data/firstExInd.rda, data/groupSam.rda, data/lastExInd.rda, data/obsInd.rda, data/psidat.rda, data/psimean.rda, data/uniqExGr.rda, and www/IntEREst_medium.jpg
ℹ Capturing R dependencies with renv
✔ Found 43 dependencies
✔ Created 131,011b bundle
ℹ Uploading bundle...
✔ Uploaded bundle with id 8333868
── Deploying to server ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Waiting for task: 1391155842
building: Processing bundle: 8333868
building: Building image: 10084880
building: Building package: BiocGenerics
## Begin Task Log ############################################################################################################################################
## End Task Log ##############################################################################################################################################
Error: Unhandled Exception: child_task=1391155843 child_task_status=failed: Error building image: Error building BiocGenerics (0.48.1). Build exited with non-zero status: 127
In addition: Warning message:
invalid uid value replaced by that for user 'nobody'
Here are the repository info:
BiocManager::repositories()
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for details.
Replacement repositories:
BioCsoft: https://bioconductor.statistik.tu-dortmund.de//packages/3.18/bioc
BioCann: https://bioconductor.statistik.tu-dortmund.de//packages/3.18/data/annotation
BioCexp: https://bioconductor.statistik.tu-dortmund.de//packages/3.18/data/experiment
BioCworkflows: https://bioconductor.statistik.tu-dortmund.de//packages/3.18/workflows
BioCbooks: https://bioconductor.statistik.tu-dortmund.de//packages/3.18/books
BioCsoft BioCann
"https://bioconductor.statistik.tu-dortmund.de//packages/3.18/bioc" "https://bioconductor.statistik.tu-dortmund.de//packages/3.18/data/annotation"
BioCexp BioCworkflows
"https://bioconductor.statistik.tu-dortmund.de//packages/3.18/data/experiment" "https://bioconductor.statistik.tu-dortmund.de//packages/3.18/workflows"
BioCbooks CRAN_mirror
"https://bioconductor.statistik.tu-dortmund.de//packages/3.18/books"
Could you kindly look the issue and resolve or instruct on how to overcome the issue ?
Cheers,
Ali
Hello!
The error message above is not very helpful but the underlying issue I believe is that we don't presently support R version 4.3.3
on shinyapps.io. We are in the process of adding it.
In terms of getting support for issues related to shinyapps.io if you have a paid subscription you can open a support request. Otherwise asking over on community is generally a better place:
https://community.rstudio.com/c/shiny/shinyappsio/24
Thanks!
Sean
Thanks for the help @ssinnott
Just in case it's useful for someone, at least on Ubuntu, I could downgrade R and deploy the app with:
sudo apt purge r-base r-recommended r-base-core
sudo apt install r-base=4.3.2-1.2204.0 r-recommended=4.3.2-1.2204.0 r-base-core=4.3.2-1.2204.0