-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Error in cli_tools() while trying do_provision() #154
Comments
thanks for opening the issue @DataStrategist I'm not sure what exactly the issue is, it's possible it's the scp thing. I could fiddle with that internal fxn |
https://github.com/r-lib/remotes is replacing You can pass on options via |
fair enough about the ssh keys, but the error was Now I'm getting the error:
So it seems like the ssh key is mandatory? Or is it an error that it thinks it's mandatory? It asked me for a password, but didn't fire an authentication window per se. Actually: The droplet WAS created... it just failed to log me in. |
so did you get an email with your password? |
yessir! |
i'm not sure what happened with the using ssh keys is not mandatory, but it's strongly recommended. ssh keys are definitely trickier on windows. If I were you I'd load up |
Ok, i am working from Rstudio desktop on windows and trying to droplet_create() and do_provision(). I succeeded in droplet_create() and after overcoming both the errors of OP (region and ssh) with help of advise as given above and the statement below: I am now stuck on this error in do_provision which is very strange to me:
Even tried running as administrator, no change.
|
@raminsu that's an error in trying to add swap memory here https://github.com/trestletech/plumber/blob/master/R/digital-ocean.R#L62 can you use |
Thanks @sckott for pointing it out. I used
As i understand there seems to be no warning or error when run from within server. I tried to execute the do_provision() and debian_add_swap() at the end from my R session and got this error for both |
FYI I'm getting the same error message, "Error in file(con, "wb") : cannot open the connection" and then the same sort of error about can't open a file. |
@sckott I used the version on branch ssh via devtools::install_github("sckott/analogsea@ssh") earlier and tried it again but the error persists during do_provision("droplet") Error message: |
@smach can you verify that you used the |
@raminsu let's test if using package session <- "user@ip-address"
conn <- ssh::ssh_connect(host = session)
ssh_exec_wait(conn, "whoami") replace let me know |
@sckott Yes. And in fact I tried analogsea::droplet_crate(region = "nyc1") and it worked fine. So I'm not 100% sure the problem I encountered was with analogsea as opposed to something specific in plumber::do_provision(). I tried do_provision() on the existing droplet and had trouble authenticating with my key -- I'll have to try again tonight after work. Thanks very much for all you do regarding R packages!! |
@sckott here is the result of trying out ssh::ssh_connect() |
I can't seem to connect with ssh_connect("ip.address.", keyfile = "myfile.pem"). I have a passphrase for the private key, but after I input that, I'm still being asked for a password. I can ssh to the server fine using PuTTy and the ppk version of the key with passphrase. Maybe I can't use a passphrase for the private key and ssh_connect? I'll probably go back to AWS for the plumber API, but thanks very much for trying to help. |
@raminsu glad at least that works, now I can eliminate the possibility that will get back to you |
@smach bummer, will get back to you with another thing to try |
@sckott I can now ssh into a droplet, so that's progress! do_provision() still doesn't work, though. When I did do_provision(region = "nyc1") I still got an error
If I create a droplet with droplet_create(region = "nyc1") that works. And this worked:
But then this
resulted in this error still
Not sure whether the problem is analogsea or plumber. |
Is there a resolution to this error. I am getting the same errors, with this being the latest: Error: ssh failed |
@varungautam13 did you try with the dev version installed from github? |
@smach sorry to hear it's still not working. can you share your |
I have done it again with dev versions, but getting the same error Session Info: Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Any updates on the error that @raminsu reported? I'm also getting this SSH connection is working fine and I'm using the latest dev version available on GitHub. I also executed RStudio as admin and still getting the same error. I'm using windows. Full error: Thanks, mate. |
thanks for the ping @RenanOm92 - on vacation now, will respond mid next week |
Same problem here.
Using anologsea v‘0.6.5.9110’ on R 3.5.1 on Windows 10 with Ubuntu bash. |
Same ssh here. Any advice to fix this? Thanks mydrop <- plumber::do_provision(region = 'nyc1') |
Hello! I'm having an issue at the same place. I am able to connect to the server with the key supplied by ssh_keys.
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached):
|
Hello, I tried to deploy my API and get Error in file(con, "wb") : cannot open the connection do_provision(unstable = TRUE, region = 'sgp1') |
crap, apologies for the long delay on this, having a look now |
@varungautam13 @sergey-shchemenok @williamjwest @pmirla @aminadibi @RenanOm92 Please try again after installing the development version of this package |
there's a few different errors happening above:
|
@varungautam13 @sergey-shchemenok @williamjwest @pmirla @aminadibi @RenanOm92 Jeroen has been making some changes to the |
No, I have not tried that in some time, will try now.
…On Mon, 9 Jul, 2018, 10:13 PM Scott Chamberlain, ***@***.***> wrote:
@varungautam13 <https://github.com/varungautam13> did you try with the
dev version installed from github?
remotes::install_github("sckott/analogsea")
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#154 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALJfBD4ZJpYAfKadQw6W2OV4yKARNqV8ks5uE4gcgaJpZM4SPtQg>
.
|
This works for me.
|
@troydo42 great, thx for trying and glad it works, what OS are you on? and did you try that with the CRAN ver of analogsea or the dev version? |
The new version is on cran so you can just do: |
closing now, submitting new version to cran very soon |
I originally opened this ticket rstudio/plumber#239 , who refered me to you
So from Rstudio, I'm trying to set up plumber in a DO droplet. I have successfully authenticated my account to the R-session, but immediately after that I get the following error:
I have putty installed, routinely ssh from the rstudio terminal, but also the git bash on this pc has ssh ability. I also downloaded cgywin, to no avail.
How can I convince the app that I do have ssh? Perhaps it's the scp I don't have?
Thanks! SessionInfo follows:
The text was updated successfully, but these errors were encountered: