question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authentication Failed (with valid credentials, CLI is working fine)

See original GitHub issue

Description

I can use the app for about a month or so, then suddenly (seemingly randomly) it will refuse to authenticate, even if i provide valid credentials. I can still use git on the command line with no issues

Usually I solve this by deleting all of my ssh keys, both locally and on github, regenerating and re-adding them, this is a annoying but necessary. If there was a more ‘proper’ way of solving this, i would really like to hear it.

For now i can make do with the command line, but this was a really useful tool and would love to see it working again.

Version

1.1.1

  • GitHub Desktop:
  • Operating system: OSX 10.12.6

Steps to Reproduce

Use github desktop for a few months

Expected Behavior

make commits, push, pull etc, normal git stuff

Actual Behavior

Log in box pops up and refuses to accept any credentials i give it

Logs

~/Library/Application Support/GitHub Desktop/logs/*.desktop.production.log does not exist have done a full search for anything containing .desktop.production.log but no luck

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

12reactions
guardrexcommented, May 9, 2018

I’ve chatted with GH Support. The problem in my case seems to be that with 2FA activated my GH password won’t work in either in the login panel or in the CLI … a personal access token has to be created and used

https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/

Further, the CLI won’t remember the token session-to-session, so I need to follow the instructions to cache a token (which I haven’t done yet, but will to later today) …

https://help.github.com/articles/caching-your-github-password-in-git/

NOTE TO OWNERS Someone really dropped the ball here on surfacing migration info during the GH Desktop installation process. IIRC, I didn’t need to go thru these steps with the prior GH Desktop, perhaps because I activated 2FA at some point later. However, these probs should’ve been foreseen, and you should’ve taken steps to surface these migration details during the install process using screens that the installer shows. Throwing auth error messages at the user when they’re providing correct login credentials is a horrible user experience. It’s a waste of my time and the time of the GH Support cats.

2reactions
guardrexcommented, May 8, 2018

Just wanted to add … same here. I was using the old GH Desktop for several years without problem. It seems to have reached a point where it forced me to upgrade.

Current behavior is that GH Desktop (the app) authenticates and works as expected. The CLI tho doesn’t … It asks me for credentials in a pop-up panel first … and then flips over to the command line asking for credentials. It won’t authenticate. For something like a force push, I can’t use the UI, so I’m pretty much broken at the moment.

capture

capture1

I’ve put in a support request with GH to see if they can help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Error: Authentication Failed from the Command Line
Paste the Personal Access Token into the “Password” field when you authenticate via the command line.
Read more >
Getting "fatal: Authentication failed" -error when sending git ...
The password is stored in windows credential manager and needs to be updated. Open command prompt and enter the following command to view ......
Read more >
Can't use local authentication with jboss-cli f...
I'm trying to test how local authentication works when you specify a username with jboss-cli.sh. Here is my server's ManagementRealm:
Read more >
gcloud CLI authentication failed
Error : The authentication flow did not complete successfully. To get valid credentials, please re-run: gcloud auth login.
Read more >
Resolve "Unable to locate credentials" error in Amazon S3
An "Unable to locate credentials" error indicates that Amazon S3 can't find the credentials to authenticate AWS API calls. To resolve this issue,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found