Closed bclopesrs closed 4 months ago
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
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
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