-
Notifications
You must be signed in to change notification settings - Fork 20
Very common RStudio/git problem+solution: "error: unable to read askpass response from 'rpostback-askpass'" #93
Comments
We've had that advice on our materials since last year FWIW. I won't link right now because I'm about the move stuff around. But it's there! |
Yes you're right, though I didn't realize that this specific error was fixed by doing that. I was going to say it'd be useful to have a troubleshooting page with error messages and solutions, but looks like you just beat me to it with your "git hell" page 👍 |
Other people can join us in our hell now 😬 |
Hello: |
@isabelmorenom This isn't really a general help forum, it's for students in STAT 545. That said, if you gave me enough specifics to answer your question easily, I would. But that's not the case now -- the range of what might be wrong is just too broad. |
Sorry for this. I have the same problem described before: When I try to execute the push command from RStudio, the following error is produced: error: unable to read askpass response from 'rpostback-askpass' I executed the following steps: in RStudio, click on the "Tools" menu and select "Shell" I can push the files to Github with the shell window but not from RStudio. Thank you. |
In the shell, with working directory set to the directory that holds your git repo, which is also an RStudio Project, what do you get for these commands:
Also, have you simply tried restarting RStudio? Are you using https or ssh protocol? If https, in the shell, have you had a successful push w/o providing any credentials, i.e. they've been successfully cached? |
Hello, Jenny: I am new in this issue and I have a lot of doubts. The steps I followed: With the shell: C:\Users\Isabel\gitrepos\repoIsabel>git remote -v C:\Users\Isabel\gitrepos\repoIsabel>git branch -vv
C:\Users\Isabel\gitrepos\repoIsabel>git push When I push the files I need to put the username and the password. There aren't any errors. I use https protocol. Thanks a lot for your time. I wouldn't like to disturb you anymore. |
Hi All, I have got the same problem as Isabel, and I guess there should be a fix to perform the push from R-Studio, instead of this workaround (Tools-shell). The aim is to have the whole control from R-Studio and introduce the credentials only once. Please advise. Thanks very much, Ramón Girona |
Have you both verified that your Git version is recent enough to have a credential helper? If so, have you turned the credential helper on in a way appropriate to your operating system? http://stat545-ubc.github.io/git06_credential-caching.html#turn-on-the-credential-helper And then made at least one edit + commit + push from the shell before returning to try again from RStudio? |
added the solution indicated for osx that get the following error message: `error: unable to read askpass response from 'rpostback-askpass'` Solution found on: STAT545-UBC/Discussion#93 http://happygitwithr.com/troubleshooting.html#push-fail-at-the-rstudio-level
I know this is not a general help forum, but just to share my piece when dealing with this issue: I had to switch from https to ssh url. This resolved the issue. |
When trying to push from RStudio, many students get the following error
While searching this on the web, you'll find that it happens to a lot of people and it's kind become a "known" bug in RStudio, but surprisingly it's very hard to find a simple solution. BUT here is a simple solution! The idea is to push using the command line for the first time, when you push from the command line it'll ask you for your credentials, and after that you should be able to push using the RStudio button and you won't have to use the commandline again.
git push -u origin master
I don't know why this solution doesn't appear in more places, but at least you guys can benefit from it. It's of course also possible that this won't work for you, but it does work in some cases.
The text was updated successfully, but these errors were encountered: