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".
GitHub Desktop version: 1.0.8
OS version: Mac OS 10.13
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%)
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.
@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?
@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:
Could something in High Sierra be restricting access to the keychain?
I have this problem after I upgraded to macOS High Sierra 10.13.1 (17B48)
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.
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 ?
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?
I have the same problem
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.
Whoops, looks like our bot got a little too aggressive. Re-opening.
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?
@blong1996 Could you provide your logs? They should be at ~/Library/Application Support/GitHub Desktop/logs/*.desktop.production.log
Running 10.13 no issues. upgrading to 10.13.1 right now. Ill post pack my results.
2017-11-15.desktop.production.log
@joshaber
Just to confirm. High Sierra: 10.13.1 & GitHub Desktop 1.0.8
High Sierra is not the issue. Running 10.13.1 with GHD 1.0.8. No issues noted
🤷🏽♂️ @AtomicCons
I have same issue with 1.0.8 (Mac OS 10.13.1), and my account has the 2FA enabled
2017-11-15T08:46:18.635Z - info: [ui] [AppStore] loading 0 repositories from store
2017-11-15T08:46:18.826Z - info: [ui] [Welcome] no sign in step found. ignoring...
2017-11-15T08:46:18.841Z - info: [ui] [Welcome] no sign in step found. ignoring...
2017-11-15T08:46:19.046Z - info: [ui] [Welcome] no sign in step found. ignoring...
2017-11-15T08:46:19.400Z - info: [ui] [Welcome] no sign in step found. ignoring...
2017-11-15T08:46:19.500Z - info: [ui] launching: 1.0.8 (Mac OS 10.13.1)
2017-11-15T08:46:19.555Z - info: [ui] [Welcome] no sign in step found. ignoring...
2017-11-15T08:46:25.209Z - info: [ui] [Welcome] advancing to step: SignInToDotCom
2017-11-15T08:46:25.217Z - info: [ui] [Welcome] current sign in state not found. ignoring...
2017-11-15T08:46:36.200Z - info: [ui] [Welcome] kind Authentication is the same as Authentication. ignoring...
2017-11-15T08:46:54.472Z - info: [ui] [Welcome] kind TwoFactorAuthentication is the same as TwoFactorAuthentication. ignoring...
2017-11-15T08:46:55.236Z - info: [ui] [AppStore] adding account ofkindness (null) to store
2017-11-15T08:46:55.254Z - info: [ui] [Welcome] advancing to step: ConfigureGit
2017-11-15T08:46:55.351Z - error: [ui] Error adding account 'ofkindness'
Error: The user name or passphrase you entered is not correct.
2017-11-15T08:46:55.357Z - info: [ui] [Welcome] no sign in step found. ignoring...
2017-11-15T08:47:14.360Z - info: [ui] [Welcome] advancing to step: UsageOptOut
2017-11-15T08:47:18.976Z - info: [ui] Opt out reported.
2017-11-15T08:48:40.375Z - info: [ui] [AppStore] adding account ofkindness (null) to store
2017-11-15T08:48:40.418Z - error: [ui] Error adding account 'ofkindness'
Error: The user name or passphrase you entered is not correct.
2017-11-15T08:53:05.820Z - info: [ui] [AppStore] adding account ofkindness (null) to store
2017-11-15T08:53:05.886Z - error: [ui] Error adding account 'ofkindness'
Error: The user name or passphrase you entered is not correct.
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.
@joshaber That's the best trick I've ever heard of in the history
LOL. @ofkindness,
Is the latest command line tool for OS X installed?
On Wed, Nov 15, 2017 at 6:43 AM, ofkindness notifications@github.com
wrote:
@joshaber https://github.com/joshaber That's the best trick I've ever
heard of in the history—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/desktop/desktop/issues/3263#issuecomment-344595745,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV6C52ggcy-DDhVsP7WMjLITsweFI1gzks5s2up6gaJpZM4QV5Ny
.
@ofkindness 😆 did that work?
@joshaber it worked ! Thanks man
Seeing how I've not heard any new reports for a few days, I'm going to close this out and point to @joshaber's lock/unlock trick here https://github.com/desktop/desktop/issues/3263#issuecomment-344590213 or @AtomicCons's update to the command line tools here https://github.com/desktop/desktop/issues/3263#issuecomment-344605189
Honestly.. the locking and unlocking actually worked. I have no idea what I just did, but HOORAY
As extra information, I'm running OSX El Capitan (10.11.6) and GitHub Desktop 1.0.9 and bumped into the very same issue this morning. Login directly in Desktop or via the web browser was resulting in:
Error: The user name or passphrase you entered is not correct.
Logs:
2017-11-20T09:47:05.124Z - error: [ui] Error getting token for 'GitHub - https://api.github.com'. Skipping.
Error: The user name or passphrase you entered is not correct.
2017-11-20T09:47:05.234Z - info: [ui] [AppStore] loading 11 repositories from store
2017-11-20T09:47:05.830Z - info: [ui] launching: 1.0.9 (Mac OS 10.11.6)
2017-11-20T09:47:20.827Z - info: [ui] [AppStore] adding account mtrellet (Mikael Trellet) to store
2017-11-20T09:47:20.862Z - error: [ui] Error adding account 'mtrellet'
Error: The user name or passphrase you entered is not correct.
2017-11-20T09:48:03.221Z - info: [ui] [AppStore] adding account mtrellet (Mikael Trellet) to store
2017-11-20T09:48:03.247Z - error: [ui] Error adding account 'mtrellet'
Error: The user name or passphrase you entered is not correct.
2017-11-20T09:48:09.679Z - info: [ui] [SignInStore] initializing OAuth flow
2017-11-20T09:48:09.755Z - info: [main] opening in browser: https://github.com/login/oauth/authorize?client_id=******
2017-11-20T09:48:23.355Z - info: [ui] [Dispatcher] requesting authenticated user
2017-11-20T09:48:24.520Z - info: [ui] [SignInStore] account resolved
2017-11-20T09:48:24.520Z - info: [ui] [AppStore] adding account mtrellet (Mikael Trellet) to store
2017-11-20T09:48:24.549Z - error: [ui] Error adding account 'mtrellet'
Error: The user name or passphrase you entered is not correct.
The locking/unlocking worked perfectly to solve the issue. 👍
@joshaber Thank u ! it's worked!
@joshaber thanks, it helps me too
@shiftkey Sorry for being inactive. Seems like the error occurred because of keychain conflicts.
Solved it by deleting the stored Git creds. from Keychain & did a system restart.
I was fighting this login issue this morning for over 2 hours. I locked, then unlocked my keychain and 'poof' fixed the issue like magic! Thanks!!!
I ran into the problem and it worked after locking and unlocking the keychain. thank you so much.
@joshaber It works!! Thanks a lot. Any idea for the reasons behind this amazing magic fixing?
Not really 😒 My best guess is that the keychain thinks it is locked but it's really not. So locking and unlocking resets whatever state is confused.
I'd like to add that my experience included issues with my Mail.app, meaning my accounts were suddenly locked out and asking for passwords. The first day, I updated all passwords for my email accounts only to be prompted for passwords again the next day. At that point further research lead me to this thread. So, although I began to suspect the keychain was the culprit, the simple "lock/unlock" hadn't occurred to me. So, once again... thanks for this post and the easy fix!
josh thanks a million - that lock/unlock trick was the best!!!
OMG I can't believe so many people is having this issue. It worked for me too! I guess the reason could be when you denied the Keychain.app to remember one of your keys, it actually locks the whole thing in the backend. I denied once today and had this issue.
@joshaber you handsome devil, that works!
This worked for me as well. What a weird issue!!!
@joshaber Thank you so much !!
@joshaber yep that worked here too, High Sierra 10.13.3 - GHD 1.0.13
Worked for me also!
@joshaber you're genius!!!!!!!
@joshaber best fix ever 👍🏻
Thanks man, helped me solve completely unrelated issue 🤣 🤣 🤣 🤣 🤣 🤣
safed my hours (locking and unlocking the keychain did it for me !!) Thank you !!
Thanks a lot. But I spent more than 5 hours trying to find a solution. Installed fresh version, etc.
Yep - locking and unlocking keychain did it for me to! - Thanks
@joshaber Thank you! Unlocking and locking totally worked.
Worked for me too.
How I love spending my life debugging "this worked yesterday" issues.
@joshaber It was a good trick. I was going to uninstall and reinstall Github Desktop. Thank you :)
@joshaber thanks, the trick works
WORKED !!! Woohoo. Thank you !
Thanks too
I am also have the same issue on Mac. Locking/unlocking didn't help :(
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.
It sure looks like something's screwy with Keychain.
Try opening Keychain Access.app. Right-click on the
loginkeychain and try locking it and then unlocking it again.
Pro-tip !!
It sure looks like something's screwy with Keychain.
Try opening Keychain Access.app. Right-click on the
loginkeychain and try locking it and then unlocking it again.
After locking the keychain I couldn't unlock it :man_facepalming:
But after restarting the Mac it got unlocked automatically.
Thanks, it worked!
It sure looks like something's screwy with Keychain.
Try opening Keychain Access.app. Right-click on the
loginkeychain and try locking it and then unlocking it again.
Awesome! thanks
It works now :)
Dark Messiah
@joshaber Worked for me, thank you very much!!!
@joshaber , tip did not worked for me , any one have still have the issue and got solution
thank you! just what I needed.
Probably the change my computer password made this happen
worked for me too!
+1
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??
I found the answer for my issue here: https://github.com/Microsoft/vscode/issues/46964
@joshaber worked for me
Most helpful comment
It sure looks like something's screwy with Keychain.
Try opening Keychain Access.app. Right-click on the
loginkeychain and try locking it and then unlocking it again.