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

Rstudio git issue "error: unable to read askpass response from 'rpostback-askpass'" #43

Closed
kristi-sara opened this issue Nov 10, 2022 · 10 comments
Assignees

Comments

@kristi-sara
Copy link

Askpass bug or issue. Despite setting remotes and configuring correctly, not allowing access. PATS were created as well.

@ilessing
Copy link

ilessing commented Nov 28, 2022

error looks like:

error: unable to read askpass response from 'rpostback-askpass'
fatal: could not read Username for 'https://github.com': Device not configured

Problem occurs when one tries to authenticate with Github in RStudio. Typically this is happens when one attempts a git push operation.

When one looks around for a fix to this issue there are many that boil down to "Use SSH" instead of HTTPS as a remote URL. That is fine for many cases but for our workshop this is not good as generating SSH keys and putting the public key on Github has proven quite difficult in a workshop setting. For our workshop we would much prefer to use HTTPS and Personal Access Tokes PAT for authentication rather than struggle with SSH.

This is not a new issue with RStudio see: rstudio: error when pushing to github · Issue #104 · OHI-Science/ohicore

What is needed:

  • reliable way to reproduce the issue.
  • determine if the issue is confined to MacOS or does it occur on Windows too.

Consult:

  1. askpass package documentation: CRAN - Package askpass
  2. Github issues in the repo: https://github.com/r-lib/askpass
  3. Or this github repo? https://github.com/cran/askpass

@kristi-sara
Copy link
Author

kristi-sara commented Nov 28, 2022 via email

@ilessing
Copy link

ilessing commented Dec 2, 2022

discussed today with workshop creation team:

concluded:

  • we should add a note to the workshop directing learners who encounter this issue to work around it with:
    1. use command line git push from terminal outside of RStudio
    2. use SSH instead of PAT to authenticate with Github. May need to create SSH keypair and add their public key to their github account.
  • the issue is an RStudio issue and so is not our responsibility to fix it.

@ilessing ilessing self-assigned this Feb 10, 2023
@ilessing
Copy link

Paul of Monash mentioned using Git Credential Manager

Would use of this tool help our credential problems?
Would it be too onerous to setup during a workshop?

@ilessing
Copy link

in meeting today discussed that Github's change to require 2FA may have impact on this workshop. Need to look into this further.

@ilessing
Copy link

started working on this with c42d4ef in gh2facompat branch

@ilessing
Copy link

https://ohi-science.org/manual/#rpostback-askpass-error

says to try:
open the shell in RStudio and enter:

git push -u origin master

We need to try this on a system that is experiencing the problem and see if it helps. Does anyone have a system that is mis-behaving in this way?

@ilessing
Copy link

when one creates a PAT (personal access token) in github it shows this note:

Personal access tokens (classic) function like ordinary OAuth access tokens. They can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication.

@ilessing
Copy link

resource: - Happy Git and GitHub for the useR written by Jenny Bryan

@rcurty
Copy link

rcurty commented Dec 1, 2023

We are using the usethis package. We hope this prevents this issue to happen.

@rcurty rcurty closed this as completed Dec 1, 2023
rcurty added a commit that referenced this issue Jan 26, 2024
This issue was closed.
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