I am totally new to R and Shiny apps , I am just providing related infra to the client.
I am trying to publish the Shiny app from local IDE to rstudio server and getting below error. Local environment is having 4.3.0 and server is having 4.1.0. ( I am able to run it locally)
Appreciate if anyone can help.
GET /api/tasks/WoGvWaagj14pS0lV?first_status=32 56ms [Connect] 2023/05/09 06:16:35.136554243 curl: (22) The requested URL returned error: 404 [Connect] 2023/05/09 06:16:35.136568902 curl: HTTP 404 https://packagemanager.rstudio.com/cran/__linux__/bionic/latest/src/contrib/Archive/MASS/MASS_7.3-58.4.tar.gz GET /api/tasks/WoGvWaagj14pS0lV?first_status=34 57ms [Connect] 2023/05/09 06:16:36.225049581 curl: (22) The requested URL returned error: 404 [Connect] 2023/05/09 06:16:36.225061855 curl: HTTP 404 https://packagemanager.rstudio.com/cran/__linux__/bionic/latest/src/contrib/Archive/MASS/MASS_7.3-58.4.tar.gz GET /api/tasks/WoGvWaagj14pS0lV?first_status=36 57ms [Connect] 2023/05/09 06:16:37.309326480 curl: (22) The requested URL returned error: 404 [Connect] 2023/05/09 06:16:37.309338157 curl: HTTP 404 https://packagemanager.rstudio.com/cran/__linux__/bionic/latest/src/contrib/Archive/MASS/MASS_7.3-58.4.tar.gz GET /api/tasks/WoGvWaagj14pS0lV?first_status=38 60ms [Connect] 2023/05/09 06:16:38.390714699 curl: (22) The requested URL returned error: 404 [Connect] 2023/05/09 06:16:38.390726219 curl: HTTP 404 https://packagemanager.rstudio.com/cran/__linux__/bionic/latest/src/contrib/Archive/MASS/MASS_7.3-58.4.tar.gz GET /api/tasks/WoGvWaagj14pS0lV?first_status=40 61ms [Connect] 2023/05/09 06:16:39.478952781 curl: (22) The requested URL returned error: 404 [Connect] 2023/05/09 06:16:39.478964831 curl: HTTP 404 https://packagemanager.rstudio.com/cran/__linux__/bionic/latest/src/contrib/Archive/MASS/MASS_7.3-58.4.tar.gz GET /api/tasks/WoGvWaagj14pS0lV?first_status=42 52ms [Connect] 2023/05/09 06:16:40.480086453 FAILED [Connect] 2023/05/09 06:16:40.481282463 Error in getSourceForPkgRecord(pkgRecord, srcDir(project), availablePackagesSource(repos = repos), : Failed to retrieve package sources for MASS 7.3-58.4 from CRAN (internet connectivity issue?) [7.3-60 is current] [Connect] 2023/05/09 06:16:40.481302879 [Connect] 2023/05/09 06:16:40.481336547 Unable to fully restore the R packages associated with this deployment. [Connect] 2023/05/09 06:16:40.481338474 Please review the preceding messages to determine which package [Connect] 2023/05/09 06:16:40.481347628 encountered installation difficulty and the cause of the failure. [Connect] 2023/05/09 06:16:40.483357142 Warning message: [Connect] 2023/05/09 06:16:40.483404280 In packrat::restore(overwrite.dirty = TRUE, prompt = FALSE, restart = FALSE) : [Connect] 2023/05/09 06:16:40.483409723 The most recent snapshot was generated using R version 4.3.0 [Connect] An error occurred while building your content. [Connect] This link offers advice for this kind of error: [Connect] Troubleshooting - Posit Connect: User Guide [Connect] Build error: An error occurred while building your content. (Error code: r-package-version-not-available) GET /api/applications/12/config 52ms
I had the same problemn.
I just resolve doing a downgrade of MASS package to the version 7.3-58.2.
Try remove the MASS package (remove.packages("MASS", lib="C:/Program Files/R/R-4.3.0/library")) and install the old version (install.packages("MASS", version='7.3-58.2'))
To me is working fine after that.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.