pachadotdev / analogsea

Digital Ocean R client
https://pacha.dev/analogsea/
Apache License 2.0
154 stars 24 forks source link

cannot launch rstudio #93

Closed cboettig closed 9 years ago

cboettig commented 9 years ago

I do:

d %>% docklet_rstudio()

I get:

bash: docker: command not found
Error: ssh failed
ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/tmp/RtmpSog7id/hosts root@104.236.188.53 'docker pull rocker/rstudio'

Enter a frame number, or 0 to exit   

1: d %>% docklet_rstudio()
2: withVisible(eval(e, env))
3: eval(e, env)
4: eval(expr, envir, enclos)
5: docklet_rstudio(d)
6: docklet_pull(droplet, img, ssh_user)
7: docklet_docker(droplet, "pull", repo, ssh_user = ssh_user)
8: droplet_ssh(droplet, user = ssh_user, paste(c("docker", docker_args, cmd, a
9: do_system(droplet, cmd, verbose = verbose)

sessionInfo():

> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=C                  LC_COLLATE=C              
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

other attached packages:
[1] analogsea_0.1.8.9999 knitr_1.7            devtools_1.6.1      

loaded via a namespace (and not attached):
 [1] RCurl_1.95-4.3  Rcpp_0.11.3     assertthat_0.1  evaluate_0.5.5 
 [5] formatR_1.0     httr_0.5.0.9000 jsonlite_0.9.13 magrittr_1.0.1 
 [9] plyr_1.8.1      stringr_0.6.2   tools_3.1.2 
sckott commented 9 years ago

@cboettig is d a docklet or just a plain old droplet?. docklet_create() %>% docklet_rstudio() works for me sometimes, others I get a block access on port 22 error

cboettig commented 9 years ago

Sorry forgot to mention that. I've tried both and get the same error.

On Thu, Nov 27, 2014, 4:12 PM Scott Chamberlain notifications@github.com wrote:

@cboettig https://github.com/cboettig is d a docklet or just a plain old droplet?

— Reply to this email directly or view it on GitHub https://github.com/sckott/analogsea/issues/93#issuecomment-64839084.

sckott commented 9 years ago

hmm, i imagine we should add to docklet_*() functions a check for whether user passes a droplet or a docklet, and stop if it's not a docklet?

cboettig commented 9 years ago

Would it be possible to convince it to just install docker in that case? Might be handy to be able to run RStudio on existing instances. Or maybe that should be a separate set of function calls.

On Thu Nov 27 2014 at 4:37:35 PM Scott Chamberlain notifications@github.com wrote:

hmm, i imagine we should add to docklet_*() functions a check for whether user passes a droplet or a docklet, and stop if it's not a docklet?

— Reply to this email directly or view it on GitHub https://github.com/sckott/analogsea/issues/93#issuecomment-64840160.

cboettig commented 9 years ago

Looks like my error was the result of not removing the old line from .ssh/known_hosts also. whoops.

On Thu Nov 27 2014 at 4:48:10 PM Carl Boettiger cboettig@gmail.com wrote:

Would it be possible to convince it to just install docker in that case? Might be handy to be able to run RStudio on existing instances. Or maybe that should be a separate set of function calls.

On Thu Nov 27 2014 at 4:37:35 PM Scott Chamberlain < notifications@github.com> wrote:

hmm, i imagine we should add to docklet_*() functions a check for whether user passes a droplet or a docklet, and stop if it's not a docklet?

— Reply to this email directly or view it on GitHub https://github.com/sckott/analogsea/issues/93#issuecomment-64840160.

sckott commented 9 years ago

Hmm, right. It would be nice to help users around this problem though. Thinking...

cboettig commented 9 years ago

Right; though that might be addressed in part by #79 ?