Skip to content

The user name or passphrase you entered is not correct. #3263

Closed

Description

@SilverFoxA

Description

Trying to connect to GitHub Desktop on Mac OS High Sierra but fails to connect and provides a pop-up screen with the following message "The username or passphrase you entered is not correct".

Version

GitHub Desktop version: 1.0.8

OS version: Mac OS 10.13

Steps to Reproduce

  1. Download GitHub desktop from the official website
  2. Click on Clone repo or preferences to login to GitHub.com
  3. Enter credentials and login

Expected behavior: Login to Github.com and fetch the repositories assigned to the user's account

Actual behavior: Login process is not complete. Give error "The user name or passphrase you entered is not correct."

Reproduces how often: Always (100%)

Logs

2017-11-08T06:07:19.570Z - info: [ui] [Dispatcher] requesting authenticated user
2017-11-08T06:07:21.592Z - info: [ui] [SignInStore] account resolved
2017-11-08T06:07:21.592Z - info: [ui] [AppStore] adding account SilverFoxA (Abhijit Das) to store
2017-11-08T06:07:21.631Z - error: [ui] Error adding account 'SilverFoxA'
Error: The user name or passphrase you entered is not correct.

Additional Information

Activity

  1. shiftkey commented on Nov 8, 2017

    @shiftkey
    Member

    @SilverFoxA a couple of questions to help reproduce the issue:

    Enter credentials and login

    Can you share a screenshot of the dialog you used to enter your credentials? I want to confirm it's the GitHub flow and not the generic account flow.

    Also, does your account have 2FA enabled?

  2. added
    more-info-needed
    on Nov 8, 2017
  3. shiftkey commented on Nov 8, 2017

    @shiftkey
    Member

    @SilverFoxA actually, it looks like this error is really helpful:

    2017-11-08T06:07:21.631Z - error: [ui] Error adding account 'SilverFoxA'
    Error: The user name or passphrase you entered is not correct.
    

    The source of this error is this function, which is interoperating with the keychain:

    try {
    await this.secureStore.setItem(
    getKeyForAccount(updated),
    updated.login,
    updated.token
    )
    } catch (e) {
    log.error(`Error adding account '${account.login}'`, e)
    this.emitError(e)
    return
    }

    Could something in High Sierra be restricting access to the keychain?

  4. added
    macOS
    on Nov 8, 2017
  5. yassermog commented on Nov 13, 2017

    @yassermog

    I have this problem after I upgraded to macOS High Sierra 10.13.1 (17B48)

  6. BaldwinLi commented on Nov 13, 2017

    @BaldwinLi

    I have same issue after upgraded to macOS Hight Sierra 10.13.1
    So far I have not ability to push any code into my repositories, seems very terrible.

  7. nathankonrad1 commented on Nov 13, 2017

    @nathankonrad1

    Hey guys, any update on this ?

    we are totally in bad situation: cant login (even singing using browser), commit, or any other action.

    Can you guys please help ?

  8. joshaber commented on Nov 13, 2017

    @joshaber
    Contributor

    cant login (even singing using browser)

    @nathankonrad1 That would seem to indicate a problem with the user account, not GitHub Desktop. I'd recommend you contact http://github.com/support.

    @yassermog @BaldwinLi Could you provide your logs please?

  9. basheerMalaaAccolade commented on Nov 13, 2017

    @basheerMalaaAccolade

    I have the same problem

  10. no-response commented on Nov 14, 2017

    @no-response

    Thank you for your issue!
    We haven’t gotten a response to our questions above. With only the information that is currently in the issue, we don’t have enough information to take action. We’re going to close this but don’t hesitate to reach out if you have or find the answers we need. If you answer our questions above, a maintainer will reopen this issue.

  11. joshaber commented on Nov 14, 2017

    @joshaber
    Contributor

    Whoops, looks like our bot got a little too aggressive. Re-opening.

  12. blong1996 commented on Nov 14, 2017

    @blong1996

    Hey, having this same issue. Unable to push to any Github.com repos due to this authentication bug paired with High Sierra. Any idea on a temporary fix?

  13. joshaber commented on Nov 14, 2017

    @joshaber
    Contributor

    @blong1996 Could you provide your logs? They should be at ~/Library/Application Support/GitHub Desktop/logs/*.desktop.production.log

  14. 48 remaining items

  15. bandzejewicz commented on Oct 30, 2018

    @bandzejewicz

    I'm having an issue now as well. I'm signed into github.com. When I try to clone a repository from a URL, I'm getting an "Authentication Failed" message. When I enter my username and password, I get the same prompt. Locking/unlocking the keychain didn't help.

  16. mlapeyre3 commented on Nov 6, 2018

    @mlapeyre3

    It sure looks like something's screwy with Keychain.

    Try opening Keychain Access.app. Right-click on the login keychain and try locking it and then unlocking it again.

    Pro-tip !!

  17. ericgopak commented on Nov 16, 2018

    @ericgopak

    It sure looks like something's screwy with Keychain.

    Try opening Keychain Access.app. Right-click on the login keychain and try locking it and then unlocking it again.

    After locking the keychain I couldn't unlock it 🤦‍♂️
    But after restarting the Mac it got unlocked automatically.

    Thanks, it worked!

  18. lcomet commented on Dec 13, 2018

    @lcomet

    It sure looks like something's screwy with Keychain.

    Try opening Keychain Access.app. Right-click on the login keychain and try locking it and then unlocking it again.

    Awesome! thanks
    It works now :)

  19. MasterXKDD commented on Dec 16, 2018

    @MasterXKDD

    Dark Messiah

  20. openingax commented on Jan 4, 2019

    @openingax

    @joshaber Worked for me, thank you very much!!!

  21. hotcoder commented on Mar 7, 2019

    @hotcoder

    @joshaber , tip did not worked for me , any one have still have the issue and got solution

  22. ezradt commented on Mar 24, 2019

    @ezradt

    thank you! just what I needed.
    Probably the change my computer password made this happen

  23. kentokage commented on May 1, 2019

    @kentokage

    worked for me too!

  24. chrisbalchin commented on May 3, 2019

    @chrisbalchin

    +1

  25. robindowntivo commented on May 15, 2019

    @robindowntivo

    I am able to login with web browser to githuub. I verified my username and password, but when I try to fetch my repo from Terminal app on OS Mojave I keep getting 'username or password is incorrect' error. I've tried locking/unlocking my keychain, no luck. I have 2 factor authentication enabled, when I login to web I get prompted for a pin sent to my phone, but i see no such prompt from command line login. Is this part of the problem??

  26. robindowntivo commented on May 15, 2019

    @robindowntivo

    I found the answer for my issue here: microsoft/vscode#46964

  27. nikunjgajera commented on Jun 7, 2019

    @nikunjgajera

    @joshaber worked for me

  28. TimeLimitless666 commented on Jul 3, 2024

    @TimeLimitless666
  29. 1atAlcone commented on Mar 8, 2025

    @1atAlcone

    Description

    Trying to connect to GitHub Desktop on Mac OS High Sierra but fails to connect and provides a pop-up screen with the following message "The username or passphrase you entered is not correct".

    Version

    GitHub Desktop version: 1.0.8

    OS version: Mac OS 10.13

    Steps to Reproduce

    1. Download GitHub desktop from the official website
    2. Click on Clone repo or preferences to login to GitHub.com
    3. Enter credentials and login

    Expected behavior: Login to Github.com and fetch the repositories assigned to the user's account

    Actual behavior: Login process is not complete. Give error "The user name or passphrase you entered is not correct."

    Reproduces how often: Always (100%)

    Logs

    2017-11-08T06:07:19.570Z - info: [ui] [Dispatcher] requesting authenticated user 2017-11-08T06:07:21.592Z - info: [ui] [SignInStore] account resolved 2017-11-08T06:07:21.592Z - info: [ui] [AppStore] adding account SilverFoxA (Abhijit Das) to store 2017-11-08T06:07:21.631Z - error: [ui] Error adding account 'SilverFoxA' Error: The user name or passphrase you entered is not correct.

    Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    macOSmore-info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions