inbo / reporting-rshiny-grofwildjacht

Rshiny app for grofwildjacht
https://grofwildjacht.inbo.be/
MIT License
1 stars 1 forks source link

[BUG] ERROR: in "remotes::install_version('DT', version = '0.23', repos = 'http://cran.us.r-project.org', upgrade = 'never')" in Docker #436

Closed TheJenne18 closed 9 months ago

TheJenne18 commented 9 months ago

Describe the bug When executing a docker install with CodeDeploy, we receive this error:

[stderr]#9 0.713 > remotes::install_version('DT', version = '0.23', repos = 'http://cran.us.r-project.org', upgrade = 'never')
[stderr]#9 63.15 Error in download_version_url(package, version, repos, type) :
[stderr]#9 63.15 version '0.23' is invalid for package 'DT'
[stderr]#9 63.15 Calls: <Anonymous> -> download_version_url
[stderr]#9 63.15 Execution halted
[stderr]#9 ERROR: process "/bin/sh -c R -q -e \"remotes::install_version('DT', version = '0.23', repos = 'http://cran.us.r-project.org', upgrade = 'never')\"" did not complete successfully: exit code: 1
[stderr]------
[stderr] > [ 5/19] RUN R -q -e "remotes::install_version('DT', version = '0.23', repos = 'http://cran.us.r-project.org', upgrade = 'never')":
[stderr]remotes::install_version('DT', version = '0.23', repos = 'http://cran.us.r-project.org', upgrade = 'never')
[stderr]63.15 Error in download_version_url(package, version, repos, type) :
[stderr]63.15 version '0.23' is invalid for package 'DT'
[stderr]63.15 Calls: <Anonymous> -> download_version_url
[stderr]63.15 Execution halted
[stderr]------
[stderr]Dockerfile:22
[stderr]--------------------
[stderr] 20 |
[stderr] 21 | RUN R -q -e "remotes::install_cran(c('shiny', 'sf', 'dplyr', 'plyr', 'reshape2', 'mgcv', 'stringr', 'leaflet', 'flexdashboard', 'testthat', 'shinyjs', 'data.table', 'tinytex', 'geojsonsf'))"
[stderr] 22 | >>> RUN R -q -e "remotes::install_version('DT', version = '0.23', repos = 'http://cran.us.r-project.org', upgrade = 'never')"
[stderr] 23 | RUN R -q -e "remotes::install_version('plotly', version = '4.10.1', repos = 'http://cran.us.r-project.org', upgrade = 'never')"
[stderr] 24 | RUN R -q -e "remotes::install_version('rmarkdown', version = '2.18', repos = 'http://cran.us.r-project.org', upgrade = 'never')"
[stderr]--------------------
[stderr]ERROR: failed to solve: process "/bin/sh -c R -q -e \"remotes::install_version('DT', version = '0.23', repos = 'http://cran.us.r-project.org', upgrade = 'never')\"" did not complete successfully: exit code: 1

Git SHA (after 0.3.1) d4f4c089e412f243b7c8c4d27e1c55955a25cfda

SanderDevisscher commented 9 months ago

This issue blocks deployment to PRD

mvarewyck commented 9 months ago

This seems to work on my side:

remotes::install_version('DT', version = '0.23', repos = 'http://cran.us.r-project.org', upgrade = 'never')

I'm now building the docker image with --no-cache. @TheJenne18 Did anything change in the configuration on your side? If still failing, we could try to install from another repository

mvarewyck commented 9 months ago

Building the docker image with --no-cache works on my side. Do you use cache?

@TheJenne18 From when is this error? Last Friday, the CRAN repository was temporarily down

TheJenne18 commented 9 months ago

This error is not every time, it happens some time. I think the repo isn't always available.