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.

Github Desktop version 1.0.12 Authentication Failed during fetch with remote

See original GitHub issue

Description

After upgrading to the new Github desktop from the classic Github Desktop on Windows 10 I get an Authentication Failed when using an https repository URL.

Version

GitHub Desktop version: 1.0.12

OS version: Windows 10 Pro Version 1709 OS Build 16299.192 (running as a VM under Mac OS X Sierra 10.12.6 using VitualBox)

Steps to Reproduce

  1. Install latest GitHub Desktop
  2. Add local repository (From GitHub Classic clone)
  3. Try and fetch repository just added and receive the following error message: image
  4. Copy github_rsa.pub to id_rsa.pub and github_rsa to id_rsa in %USERPROFILE%.ssh to no avail. Still can’t clone, fetch, push or pull from the new Github Desktop. Still get same error message as above.

Expected behavior: I expect that I can clone a remote repository using the new GitHub Desktop application. I expect that I can fetch an already cloned repository.

Actual behavior: Both workflows give me an Authentication Failed error message

Reproduces how often: This has never worked for me. I can reproduce this behavior 100% of the time. I have two computers this is happening to me on. Both Windows 10 Pro VMs running under VirtualBox on Mac OS 10. Only difference is one is running High Sierra.

Logs - From fresh install on new computer today that has same issue.

2018-01-18T15:31:44.674Z - info: [main] Received possible protocol arguments: 2 2018-01-18T15:31:55.162Z - info: [ui] [AppStore] loading 0 repositories from store 2018-01-18T15:31:55.181Z - info: [ui] [Welcome] no sign in step found. ignoring… 2018-01-18T15:31:55.184Z - info: [ui] [Welcome] no sign in step found. ignoring… 2018-01-18T15:31:55.186Z - info: [ui] [Welcome] no sign in step found. ignoring… 2018-01-18T15:31:55.189Z - info: [ui] [Welcome] no sign in step found. ignoring… 2018-01-18T15:31:56.340Z - info: [ui] launching: 1.0.12 (Windows 10.0.16299) 2018-01-18T15:32:00.078Z - info: [ui] [Welcome] no sign in step found. ignoring… 2018-01-18T15:32:00.642Z - info: [ui] [Welcome] no sign in step found. ignoring… 2018-01-18T15:32:08.344Z - info: [ui] [Welcome] advancing to step: SignInToDotCom 2018-01-18T15:32:08.352Z - info: [ui] [Welcome] current sign in state not found. ignoring… 2018-01-18T15:32:16.450Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 21.107s) 2018-01-18T15:32:41.882Z - info: [ui] [Welcome] kind Authentication is the same as Authentication. ignoring… 2018-01-18T15:32:51.656Z - info: [ui] [AppStore] adding account jborn (Jeffrey Born) to store 2018-01-18T15:32:51.665Z - info: [ui] [Welcome] advancing to step: ConfigureGit 2018-01-18T15:32:51.841Z - info: [ui] [Welcome] no sign in step found. ignoring… 2018-01-18T15:33:00.596Z - info: [ui] [Welcome] advancing to step: UsageOptOut 2018-01-18T15:33:01.928Z - info: [ui] Executing setGlobalConfigValue: git config --global --replace-all user.name jborn (took 1.282s) 2018-01-18T15:33:03.102Z - info: [ui] Executing setGlobalConfigValue: git config --global --replace-all user.email jeff.born@gmail.com (took 1.183s) 2018-01-18T15:33:05.939Z - info: [ui] Opt out reported. 2018-01-18T15:33:53.473Z - info: [ui] [AppStore] adding repository at E:\Source Code\GitHub\MidasDB to store 2018-01-18T15:33:56.305Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 2.790s) 2018-01-18T15:33:56.968Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 2.443s) 2018-01-18T15:33:57.468Z - info: [ui] Executing getCommits: git log cd3224f8430aff342311ade799b83060b1d3534b --date=raw --max-count=1 --pretty=%H%x1F%s%x1F%b%x1F%an <%ae> %ad%x1F%P -z --no-color – (took 1.142s) 2018-01-18T15:33:58.137Z - info: [ui] Executing getBranches: git for-each-ref --format=%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(symref)%00%(subject)%00%(body)%00%1F refs/heads refs/remotes (took 4.621s) 2018-01-18T15:33:58.584Z - info: [ui] Executing getBranches: git for-each-ref --format=%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(symref)%00%(subject)%00%(body)%00%1F refs/heads refs/remotes (took 4.054s) 2018-01-18T15:33:59.155Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 – (took 5.626s) 2018-01-18T15:33:59.319Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 – (took 4.787s) 2018-01-18T15:34:00.179Z - info: [ui] Executing getWorkingDirectoryDiff: git diff HEAD --no-ext-diff --patch-with-raw -z --no-color – Midas/MidasFactory/Schema Objects/Schemas/MIDAS/Programmability/Stored Procedures/Building_MergeThenDelete_From_AnchorAndDuplicateBuildingKeyList.proc.sql (took 2.616s) 2018-01-18T15:34:00.433Z - info: [ui] Executing getRemotes: git remote -v (took 1.050s) 2018-01-18T15:34:00.433Z - info: [ui] Executing getWorkingDirectoryDiff: git diff HEAD --no-ext-diff --patch-with-raw -z --no-color – Midas/MidasFactory/Schema Objects/Schemas/MIDAS/Programmability/Stored Procedures/Building_MergeThenDelete_From_AnchorAndDuplicateBuildingKeyList.proc.sql (took 2.975s) 2018-01-18T15:34:00.481Z - info: [ui] Executing getRemotes: git remote -v (took 1.326s) 2018-01-18T15:34:00.732Z - info: [ui] Executing getCommits: git log origin/DuplicateBuildingHandling…DuplicateBuildingHandling --date=raw --max-count=100 --pretty=%H%x1F%s%x1F%b%x1F%an <%ae> %ad%x1F%P -z --no-color – (took 1.388s) 2018-01-18T15:34:00.805Z - info: [ui] Executing getCommits: git log origin/DuplicateBuildingHandling…DuplicateBuildingHandling --date=raw --max-count=100 --pretty=%H%x1F%s%x1F%b%x1F%an <%ae> %ad%x1F%P -z --no-color – (took 1.662s) 2018-01-18T15:34:01.205Z - info: [ui] Executing isUsingLFS: git lfs track (took 7.701s) 2018-01-18T15:34:03.354Z - info: [ui] Executing getBranches: git for-each-ref --format=%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(symref)%00%(subject)%00%(body)%00%1F refs/heads refs/remotes (took 2.144s) 2018-01-18T15:34:03.629Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 2.425s) 2018-01-18T15:34:04.568Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 – (took 3.344s) 2018-01-18T15:34:05.252Z - info: [ui] Executing getWorkingDirectoryDiff: git diff HEAD --no-ext-diff --patch-with-raw -z --no-color – Midas/MidasFactory/Schema Objects/Schemas/MIDAS/Programmability/Stored Procedures/Building_MergeThenDelete_From_AnchorAndDuplicateBuildingKeyList.proc.sql (took 1.624s) 2018-01-18T15:34:06.994Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 6.222s) 2018-01-18T15:34:06.995Z - error: [ui] git -c credential.helper= fetch --progress --prune origin exited with an unexpected code: 128. remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com/peachtreegeographics/MidasDB.git/

(The error was parsed as 3: Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open options and verify that you’re signed in with an account that has permission to access this repository.) 2018-01-18T15:34:08.592Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 1.597s) 2018-01-18T15:34:09.016Z - info: [ui] Executing getBranches: git for-each-ref --format=%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(symref)%00%(subject)%00%(body)%00%1F refs/heads refs/remotes (took 2.015s) 2018-01-18T15:34:09.370Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 – (took 2.354s) 2018-01-18T15:34:11.739Z - info: [ui] Executing getAheadBehind: git rev-list --left-right --count Dev…origin/Dev – (took 1.658s) 2018-01-18T15:34:16.835Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: MidasDB - jborn (has token) 2018-01-18T15:34:24.142Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 7.246s) 2018-01-18T15:34:24.143Z - error: [ui] git -c credential.helper= fetch --progress --prune origin exited with an unexpected code: 128. remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com/peachtreegeographics/MidasDB.git/

(The error was parsed as 3: Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open options and verify that you’re signed in with an account that has permission to access this repository.) 2018-01-18T15:34:32.458Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 8.337s) 2018-01-18T15:34:33.177Z - info: [ui] Executing getBranches: git for-each-ref --format=%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(symref)%00%(subject)%00%(body)%00%1F refs/heads refs/remotes (took 8.846s) 2018-01-18T15:34:33.430Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 – (took 9.095s) 2018-01-18T15:34:36.306Z - info: [ui] Executing getAheadBehind: git rev-list --left-right --count Dev…origin/Dev – (took 2.241s) 2018-01-18T15:34:44.593Z - info: [ui] [AppStore.getAccountForRemoteURL] account found for remote: https://github.com/peachtreegeographics/MelllisaDataWindowsService.git - jborn (has token) 2018-01-18T15:34:47.107Z - info: [ui] Executing clone: git -c credential.helper= clone --recursive --progress – https://github.com/peachtreegeographics/MelllisaDataWindowsService.git C:\Users\Jeffr\Documents\GitHub\MelllisaDataWindowsService (took 2.450s) 2018-01-18T15:34:47.107Z - error: [ui] git -c credential.helper= clone --recursive --progress -- https://github.com/peachtreegeographics/MelllisaDataWindowsService.git C:\Users\Jeffr\Documents\GitHub\MelllisaDataWindowsService exited with an unexpected code: 128. Cloning into ‘C:\Users\Jeffr\Documents\GitHub\MelllisaDataWindowsService’… remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com/peachtreegeographics/MelllisaDataWindowsService.git/

(The error was parsed as 3: Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open options and verify that you’re signed in with an account that has permission to access this repository.) 2018-01-18T15:34:53.003Z - info: [ui] storing generic credentials for ‘github.com’ and ‘jborn’ 2018-01-18T15:34:53.025Z - info: [ui] [AppStore.getAccountForRemoteURL] account found for remote: https://github.com/peachtreegeographics/MelllisaDataWindowsService.git - jborn (has token) 2018-01-18T15:34:56.482Z - info: [ui] Executing clone: git -c credential.helper= clone --recursive --progress – https://github.com/peachtreegeographics/MelllisaDataWindowsService.git C:\Users\Jeffr\Documents\GitHub\MelllisaDataWindowsService (took 3.415s) 2018-01-18T15:34:56.483Z - error: [ui] git -c credential.helper= clone --recursive --progress -- https://github.com/peachtreegeographics/MelllisaDataWindowsService.git C:\Users\Jeffr\Documents\GitHub\MelllisaDataWindowsService exited with an unexpected code: 128. Cloning into ‘C:\Users\Jeffr\Documents\GitHub\MelllisaDataWindowsService’… remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com/peachtreegeographics/MelllisaDataWindowsService.git/

(The error was parsed as 3: Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open options and verify that you’re signed in with an account that has permission to access this repository.)

remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com/peachtreegeographics/MidasDB.git/

(The error was parsed as 3: Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open options and verify that you’re signed in with an account that has permission to access this repository.)

Additional Information

I can use the git bash shell to do the tasks that are failing in the Github Desktop application. I can see a complete repositories to clone from the https://github.com/peachtreegeographics. I don’t believe I’d be able to do that without the right credentials. When not logged in with my credentials I can see four public repositories.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:69 (14 by maintainers)

github_iconTop GitHub Comments

51reactions
miftahafinacommented, Apr 17, 2018

Goto File > Options > Sign Out and Sign In again. It works for me.

16reactions
jborncommented, Jul 20, 2018

I have logged out and logged back in multiple times. It still doesn’t work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authentication Failure with GitHub Desktop · Issue #8860
I am unable to pull, push for a private repository through the GitHub Desktop interface. However, the commands and work perfectly fine when ......
Read more >
Fetch is failing and causing authentication issues #8961
There is no issue with authentication because I'm able to do commits etc. At the time of commit, the origin fetching happens on...
Read more >
Unable to push in GitHub desktop · Issue #4181
Description I've been using GitHub Desktop to push my changes to my ... Github Desktop version 1.0.12 Authentication Failed during fetch ...
Read more >
Authentication Failed · Issue #6538 · desktop/desktop - GitHub
GitHub Desktop version 1.6.0, Windows 10. When the repo's remote is SSH, GitHub Desktop shows the authentication failed message on fetch/pull/ ...
Read more >
gitHub Desktop Authentication Failed. · Issue #10283
AccountName and browser password; AccountName and PAT (this combination works using the git clone command in my terminal). Version & OS. GitHub Desktop:...
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