Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build issue #45

Open
gfontenay opened this issue Jul 28, 2023 · 3 comments
Open

Docker build issue #45

gfontenay opened this issue Jul 28, 2023 · 3 comments

Comments

@gfontenay
Copy link

gfontenay commented Jul 28, 2023

Hello,

I am following the simple instructions but run into an issue with the docker build.

Thanks for any assistance!

------                                                                                                                                                             
 > [31/66] RUN Rscript -e 'remotes::install_version("knitr",upgrade="never")':                                                                                     
1.703 Downloading package from url: https://cran.rstudio.com/src/contrib/knitr_1.43.tar.gz                                                                         
3.167 Installing package into ‘/usr/local/lib/R/site-library’                                                                                                      
3.167 (as ‘lib’ is unspecified)                                                                                                                                    
3.297 * installing *source* package ‘knitr’ ...                                                                                                                    
3.305 ** package ‘knitr’ successfully unpacked and MD5 sums checked
3.318 ** using staged installation
3.358 ** R
3.380 ** demo
3.381 ** inst
3.389 ** byte-compile and prepare package for lazy loading
3.525 Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
3.525   namespace ‘xfun’ 0.34 is being loaded, but >= 0.39 is required
3.525 Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
3.525 Execution halted
3.525 ERROR: lazy loading failed for package ‘knitr’
3.526 * removing ‘/usr/local/lib/R/site-library/knitr’
3.526 * restoring previous ‘/usr/local/lib/R/site-library/knitr’
3.534 Error in i.p(...) : 
3.534   (converted from warning) installation of package ‘/tmp/RtmpDIHpRA/remotes52647b0d2/knitr’ had non-zero exit status
3.534 Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
3.541 Execution halted
------
Dockerfile:36
--------------------
  34 |     RUN Rscript -e 'remotes::install_version("shiny",upgrade="never")'
  35 |     RUN Rscript -e 'remotes::install_version("pkgload",upgrade="never")'
  36 | >>> RUN Rscript -e 'remotes::install_version("knitr",upgrade="never")'
  37 |     RUN Rscript -e 'remotes::install_version("randomForest",upgrade="never")'
  38 |     RUN Rscript -e 'remotes::install_version("foreach",upgrade="never")'
--------------------
ERROR: failed to solve: process "/bin/sh -c Rscript -e 'remotes::install_version(\"knitr\",upgrade=\"never\")'" did not complete successfully: exit code: 1
@Alexandre-So
Copy link
Contributor

Hello,

Can you try by replacing the dockerfile you downladed here by the one from my fork ?

https://github.com/Alexandre-So/DIANE/blob/master/Dockerfile

Best,

@JiahuaQu
Copy link

JiahuaQu commented Aug 17, 2023

I replaced the Dockerfile with the new one, but still failed in building the Docker container.
Error:
Hope get further help. Thank you.
error.txt

@Alexandre-So
Copy link
Contributor

Alexandre-So commented Aug 17, 2023

It looks like a timeout problem in your case.

Could you please try again and tell me if it still fails ?

If it still doesn't work, could you try to launch a R dynamic session (on the same machine as the one having a problem with the docker install) and type :

install.packages("remotes")
remotes::install_github("ryapric/loggit@8293ba322c86a80b81b07a81e1ae4f9a64b395a7")

And see if it works ? (this will try to install the package in your R environment).

Best,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants