karthik / holepunch

Make your R project Binder ready
https://karthik.github.io/holepunch/
Other
258 stars 18 forks source link

Error with Binder #67

Open ivan-paleo opened 2 years ago

ivan-paleo commented 2 years ago

I have create a Docker file for Binder with the command: holepunch::write_dockerfile()

However, when running Binder, there are many errors. See the binder here and the GitHub repo there. I copy the log below.

From my limited understanding, it seems there is an issue with the renv package (@kevinushey).

Any hint to solve the problem?


Waiting for build to start... Picked Git content provider. Cloning into '/tmp/repo2dockerqyh9v61f'... Updating files: 100% (724/724), done. HEAD is now at b853852 Update README files and delete old files Using DockerBuildPack builder Step 1/11 : FROM rocker/binder:4.0.2 ---> c12d2367b296e... Step 2/11 : LABEL maintainer='Ivan Calandra' ---> Running in a7c34e2596d8 Removing intermediate container a7c34e2596d8 ---> 962dac7cc903 Step 3/11 : USER root ---> Running in 440ca0a398e8 Removing intermediate container 440ca0a398e8 ---> b8c1be48397a Step 4/11 : COPY . ${HOME} ---> 6eed326d3051 Step 5/11 : RUN chown -R ${NB_USER} ${HOME} ---> Running in a2474602d73a Removing intermediate container a2474602d73a ---> f0c81634f98a Step 6/11 : USER ${NB_USER} ---> Running in 4f7204f139c1 Removing intermediate container 4f7204f139c1 ---> bf17160a62ea Step 7/11 : RUN wget https://github.com/tracer-monrepos/SSFAcomparisonPaper/raw/master/DESCRIPTION && R -e "options(repos = list(CRAN = 'http://mran.revolutionanalytics.com/snapshot/2021-01-26/')); devtools::install_deps()" ---> Running in 93c02b86bd99 --2022-09-12 15:32:12-- https://github.com/tracer-monrepos/SSFAcomparisonPaper/raw/master/DESCRIPTION Resolving github.com (github.com)... 140.82.114.3 Connecting to github.com (github.com)|140.82.114.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/tracer-monrepos/SSFAcomparisonPaper/master/DESCRIPTION [following] --2022-09-12 15:32:12-- https://raw.githubusercontent.com/tracer-monrepos/SSFAcomparisonPaper/master/DESCRIPTION Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.109.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 833 [text/plain] Saving to: ‘DESCRIPTION.1’

 0K                                                       100% 27.4M=0s

2022-09-12 15:32:13 (27.4 MB/s) - ‘DESCRIPTION.1’ saved [833/833]

R version 4.0.2 (2020-06-22) -- "Taking Off Again" Copyright (C) 2020 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

Bootstrapping renv 0.14.0 --------------------------------------------------

kevinushey commented 2 years ago

From this error:

Error: ERROR: cannot cd to directory ‘/home/rstudio/renv/library/R-4.0/x86_64-pc-linux-gnu’
Warning messages:
1: In system2(r, args, stdout = TRUE, stderr = TRUE) :
running command ''/usr/local/lib/R/bin/R' --vanilla CMD INSTALL -l '/home/rstudio/renv/library/R-4.0/x86_64-pc-linux-gnu' '/tmp/Rtmp4O2rQL/renv_0.14.0.tar.gz' 2>&1' had status 1

it seems more like there's an issue with container permissions or something like that.

The later issue with installing rrtools / holepunch might be unrelated.

ivan-paleo commented 2 years ago

Thank you @kevinushey for looking into it. What can I do to solve the container permissions issue?