You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GitHub Desktop cannot authenticate after upgrade #7982
more-info-neededThe submitter needs to provide more information about the issuesupportIssues likely related to one person's environment or configuration
I've read all of the other authentication problem reports but none of the "solutions" help me. I'm on Windows 10 using a remote repository server (not github.com). I was using GitHub previously without issue. I upgraded to GitHub Desktop and now I am unable to push/pull anything from the GUI. The version is 2.1.0. I can push/pull just fine using git shell.
There error I get is
From the log: The error was parsed as 2: Authentication failed. Some common reasons include: blah blah blah
Even though git shell works just fine, I have verified my public key is properly in the authorized_hosts file of the remote server.
I've gone to C:\Users\Jim\AppData\Local\GitHubDesktop\app-2.1.0\resources\app\git\usr\bin and run an ssh command to the remote server, specifying my private key of C:\Users\Jim.ssh\id_rsa and it works fine.
I've verified ssh-agent and added my key with ssh-add. Still no help.
I've completely removed all traces of the old GitHub and new GitHub Desktop and tried after install and after each of the same steps. Everything from GIT shell works fine but GItHub Desktop will not authenticate to my remote server. Any help would be greatly appreciated as putting in my commits and such in the GUI only to have to use the shell to push them won't last long.
Reacted by ابوالنووف الكناني, stromal, Rutuja Surendra Chachane and Mateus Cazuza
Hi @ShadowJim I'm sorry you're having this issue. Thanks for reaching out.
What kind of remote repository server are you using? Is any kind of special network configuration required to access it? (Something like #2789, for example)
Hi @outofambit, there is no special network configuration required. We're just using SSH directly over the network; to a server on the same subnet as well. I installed the older GitHub GUI and it's working just fine. Everything seems to be working just as expected except for this new GitHub Desktop.
@ShadowJim the older version of GitHub Desktop automatically sets up a separate SSH key for you, which is why it works without issue. My guess is that the wrong version of SSH is being used, which is causing the key not to get picked up. See #5641 (comment) for more details about this.
@steveward How could the older version be setting up an SSH key for me? I'm not adding anything additional to the authorized_users on the server and the only key in there is my public key I've been using with this for many, many years. Also, the only ssh installed on my Windows laptop is the ssh installed with GitHub Desktop.
Are you suggesting that in order to migrate from the old GitHub Desktop to the new one, people have to now install an external ssh?
@ShadowJim Apologies, I missed the fact that you were not using GitHub. In that case the previous version of GitHub Desktop would not generate a key.
Just to verify -- does running something like C:\Users\Jim\AppData\Local\GitHubDesktop\app-2.1.0\resources\app\git\cmd\git.exe fetch work without issue from the command line?
@steveward Yep, just tried and it worked fine. I tried it outside of the repository dir to make sure it errored, and it did with:
fatal: not a git repository (or any of the parent directories): .git
Then I did it in the repository dir and I got my server banner and back to the prompt. Started GitHub Desktop and it says "Last fetched just now".
Well, I'm dumbfounded. After running that cli command and checking the status in the GUI, it's now letting me push/fetch. The only change siince submitting this report was installing an old GitHub Desktop to test and the PC has been up since then so there was no reboot. I am going to reboot now to make sure it still works.
So after a reboot, GitHub Desktop is still working fine. I'm confused as to what the fix was but hopefully, it's permanent! I guess we can go ahead and close this. Thanks for the quick responses!
I don't want to start yet another thread about this, so I'm commenting here. I saw other threads like #6538 and #5641 (comment) but these didn't resolve my issue.
I'm having the same problem as @ShadowJim was having originally. "Authentication failed. Some common reasons include:"
Version
GitHub Desktop: 2.1.0
Operating system: Windows 10 17134.885
I am a command line rookie, so although I've read the comments in the other authentication threads, I don't really know what to do, especially since my GitHub Desktop version is 2.1.x (not 1.5.x) and since my remote appears to be HTTPS, not SSH. Can anyone help me troubleshoot?
@danielfowler could you attach the full log files? The Help | Show Logs in Explorer menu items should open the logs folder, and inside those are the log files generated by day. This will provide some more information to help troubleshoot.
Thanks for the tips... I've logged out and back in before, but this time I did so by just copy/pasting the password from 1Password instead of using the Login with browser feature. Now I'm connected again... I wonder if the Login with browser was bugging with an old credential or something.
I'm having the same problem. Before I was using GitHub Desktop without any problems. Now I get an error about failed authentication. I'm using HTTPS remote. I tried all the steps in here. I also added git config --global core.sshCommand from here. I tried logging out and logging back in. I can push from the repository itself using the command line, but not from GitHub Desktop. Here are my logs:
2019-09-21T19:24:03.430Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: regapi - iloveip (has token)
2019-09-21T19:24:11.006Z - info: [ui] Executing push: git -c credential.helper= -c protocol.version=2 push origin master:master --progress (took 7.425s)
2019-09-21T19:24:22.656Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 8.256s)
2019-09-21T19:24:22.656Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/regapi.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:24:38.816Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: regapi - iloveip (has token)
2019-09-21T19:24:45.477Z - info: [ui] Executing push: git -c credential.helper= -c protocol.version=2 push origin master:master --progress (took 6.536s)
2019-09-21T19:41:11.002Z - info: [main] Received possible protocol arguments: 2
2019-09-21T19:41:11.002Z - error: [main] Malformed launch arguments received: C:\Users\Администратор.WIN-OBTQMT3318V\AppData\Local\GitHubDesktop\app-2.1.3\GitHubDesktop.exe,--squirrel-firstrun
2019-09-21T19:41:14.880Z - info: [ui] [AppStore] loading 6 repositories from store
2019-09-21T19:41:14.881Z - info: [ui] [AppStore] found account: iloveip (Svetlana Malakhova)
2019-09-21T19:41:15.137Z - info: [ui] [BranchPruner] Last prune took place in a day - skipping
2019-09-21T19:41:15.722Z - info: [ui] launching: 2.1.3 (Windows 10.0.14393)
2019-09-21T19:41:15.722Z - info: [ui] execPath: 'C:\Users\Администратор.WIN-OBTQMT3318V\AppData\Local\GitHubDesktop\app-2.1.3\GitHubDesktop.exe'
2019-09-21T19:41:20.311Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 4.834s)
2019-09-21T19:41:25.129Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: regapi - iloveip (has token)
2019-09-21T19:41:32.658Z - info: [ui] Executing push: git -c credential.helper= -c protocol.version=2 push origin master:master --progress (took 7.432s)
2019-09-21T19:41:45.297Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 7.146s)
2019-09-21T19:41:45.297Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/regapi.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:42:16.962Z - info: [ui] [AppStore] removing account iloveip (Svetlana Malakhova) from store
2019-09-21T19:42:37.025Z - info: [ui] [AppStore] adding account iloveip (Svetlana Malakhova) to store
2019-09-21T19:42:40.214Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: regapi - iloveip (has token)
2019-09-21T19:42:47.933Z - info: [ui] Executing push: git -c credential.helper= -c protocol.version=2 push origin master:master --progress (took 7.627s)
2019-09-21T19:43:15.633Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: payments - iloveip (has token)
2019-09-21T19:43:22.009Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 6.301s)
2019-09-21T19:43:22.009Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/payments.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:43:23.087Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: regapi - iloveip (has token)
2019-09-21T19:43:29.568Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 6.400s)
2019-09-21T19:43:29.568Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/regapi.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:43:30.714Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: usn_back - iloveip (has token)
2019-09-21T19:43:37.107Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 6.336s)
2019-09-21T19:43:37.107Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/usn_back.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:43:38.272Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: leads - iloveip (has token)
2019-09-21T19:43:43.860Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 5.513s)
2019-09-21T19:43:43.860Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/leads.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:43:45.800Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: tinkoff-orders - iloveip (has token)
2019-09-21T19:43:52.806Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 6.848s)
2019-09-21T19:43:52.806Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/tinkoff-orders.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:43:53.734Z - info: [ui] Background fetch for 6 repositories took 38.668sec
2019-09-21T19:47:26.642Z - info: [ui] [AppStore] loading 6 repositories from store
2019-09-21T19:47:26.642Z - info: [ui] [AppStore] found account: iloveip (Svetlana Malakhova)
2019-09-21T19:47:26.868Z - info: [ui] [BranchPruner] Last prune took place in a day - skipping
2019-09-21T19:47:27.229Z - info: [ui] launching: 2.1.3 (Windows 10.0.14393)
2019-09-21T19:47:27.230Z - info: [ui] execPath: 'C:\Users\Администратор.WIN-OBTQMT3318V\AppData\Local\GitHubDesktop\app-2.1.3\GitHubDesktop.exe'
2019-09-21T19:47:30.749Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 3.594s)
2019-09-21T19:47:33.037Z - info: [ui] [AppStore] removing account iloveip (Svetlana Malakhova) from store
2019-09-21T19:47:51.988Z - info: [ui] [AppStore] loading 6 repositories from store
2019-09-21T19:47:52.196Z - info: [ui] [BranchPruner] Last prune took place in a day - skipping
2019-09-21T19:47:52.305Z - info: [ui] launching: 2.1.3 (Windows 10.0.14393)
2019-09-21T19:47:52.306Z - info: [ui] execPath: 'C:\Users\Администратор.WIN-OBTQMT3318V\AppData\Local\GitHubDesktop\app-2.1.3\GitHubDesktop.exe'
2019-09-21T19:47:56.133Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 3.847s)
2019-09-21T19:48:09.007Z - info: [ui] [AppStore] adding account iloveip (Svetlana Malakhova) to store
2019-09-21T19:48:20.124Z - info: [ui] [BranchPruner] Last prune took place in a day - skipping
2019-09-21T19:48:27.821Z - info: [ui] Executing createCommit: git commit -F - (took 1.974s)
2019-09-21T19:48:28.948Z - info: [ui] [Timing] Action 'create commit' for 'iloveip/tinkoff-orders' took 3.379s
2019-09-21T19:48:30.480Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: tinkoff-orders - iloveip (has token)
2019-09-21T19:48:36.791Z - info: [ui] Executing push: git -c credential.helper= -c protocol.version=2 push origin master:master --progress (took 6.229s)
2019-09-21T19:49:52.643Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: payments - iloveip (has token)
2019-09-21T19:49:58.321Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 5.605s)
2019-09-21T19:49:58.337Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/payments.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:49:59.361Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: regapi - iloveip (has token)
2019-09-21T19:50:05.851Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 6.429s)
2019-09-21T19:50:05.866Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/regapi.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:50:07.186Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: usn_back - iloveip (has token)
2019-09-21T19:50:13.981Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 6.708s)
2019-09-21T19:50:13.981Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/usn_back.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:50:15.252Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: leads - iloveip (has token)
2019-09-21T19:50:22.408Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 7.086s)
2019-09-21T19:50:22.408Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/leads.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:50:24.328Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: tinkoff-orders - iloveip (has token)
2019-09-21T19:50:31.605Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 7.183s)
2019-09-21T19:50:31.608Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALY: meaningless REX prefix used
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/iloveip/tinkoff-orders.git/'
(The error was parsed as 3: Authentication failed. Some common reasons include:
- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
2019-09-21T19:50:32.451Z - info: [ui] Background fetch for 6 repositories took 40.413sec
Thank you very much for your reply! I closed GitHub Desktop, but I can't delete it from %LocalAppData% as it says that the program is already in use. Is there any way to force it to terminate?
@iloveip you may need to open Task Manager and check to see if there are any leftover processes running from GitHub Desktop. Restarting your machine would also work.
I am having the same issue as the author of the initial post. Tried all recommended steps (logged out/logged in, removed all files from AppData and LocalAppData, reinstalled, generated and activated new SSH key, used HTTPS and SSH), and still getting the same error. I can push/pull from the command line but not from GitHub Desktop. It worked fine a couple weeks ago (new update issue?)
more-info-neededThe submitter needs to provide more information about the issuesupportIssues likely related to one person's environment or configuration
Activity
outofambit commentedon Jul 18, 2019
Hi @ShadowJim I'm sorry you're having this issue. Thanks for reaching out.
What kind of remote repository server are you using? Is any kind of special network configuration required to access it? (Something like #2789, for example)
Any thoughts @desktop/support?
ShadowJim commentedon Jul 19, 2019
Hi @outofambit, there is no special network configuration required. We're just using SSH directly over the network; to a server on the same subnet as well. I installed the older GitHub GUI and it's working just fine. Everything seems to be working just as expected except for this new GitHub Desktop.
steveward commentedon Jul 19, 2019
@ShadowJim the older version of GitHub Desktop automatically sets up a separate SSH key for you, which is why it works without issue. My guess is that the wrong version of SSH is being used, which is causing the key not to get picked up. See #5641 (comment) for more details about this.
Let me know if that gets things working.
ShadowJim commentedon Jul 19, 2019
@steveward How could the older version be setting up an SSH key for me? I'm not adding anything additional to the authorized_users on the server and the only key in there is my public key I've been using with this for many, many years. Also, the only ssh installed on my Windows laptop is the ssh installed with GitHub Desktop.
Are you suggesting that in order to migrate from the old GitHub Desktop to the new one, people have to now install an external ssh?
steveward commentedon Jul 19, 2019
@ShadowJim Apologies, I missed the fact that you were not using GitHub. In that case the previous version of GitHub Desktop would not generate a key.
Just to verify -- does running something like
C:\Users\Jim\AppData\Local\GitHubDesktop\app-2.1.0\resources\app\git\cmd\git.exe fetchwork without issue from the command line?ShadowJim commentedon Jul 19, 2019
@steveward Yep, just tried and it worked fine. I tried it outside of the repository dir to make sure it errored, and it did with:
fatal: not a git repository (or any of the parent directories): .git
Then I did it in the repository dir and I got my server banner and back to the prompt. Started GitHub Desktop and it says "Last fetched just now".
So yes, it works from the prompt
ShadowJim commentedon Jul 19, 2019
Well, I'm dumbfounded. After running that cli command and checking the status in the GUI, it's now letting me push/fetch. The only change siince submitting this report was installing an old GitHub Desktop to test and the PC has been up since then so there was no reboot. I am going to reboot now to make sure it still works.
ShadowJim commentedon Jul 19, 2019
So after a reboot, GitHub Desktop is still working fine. I'm confused as to what the fix was but hopefully, it's permanent! I guess we can go ahead and close this. Thanks for the quick responses!
steveward commentedon Jul 19, 2019
@ShadowJim I'm glad to hear things are working for you now!
danielfowler commentedon Jul 21, 2019
I don't want to start yet another thread about this, so I'm commenting here. I saw other threads like #6538 and #5641 (comment) but these didn't resolve my issue.
I'm having the same problem as @ShadowJim was having originally. "Authentication failed. Some common reasons include:"
Version
GitHub Desktop: 2.1.0
Operating system: Windows 10 17134.885
Problem
Can't fetch/push/pull from remote GitHub at https://github.com/danielfowler/cast98
Sidenotes
I am a command line rookie, so although I've read the comments in the other authentication threads, I don't really know what to do, especially since my GitHub Desktop version is 2.1.x (not 1.5.x) and since my remote appears to be HTTPS, not SSH. Can anyone help me troubleshoot?
tierninho commentedon Jul 22, 2019
@desktop/support Any thoughts here ☝️ ? Thanks.
shiftkey commentedon Jul 22, 2019
@danielfowler could you attach the full log files? The Help | Show Logs in Explorer menu items should open the logs folder, and inside those are the log files generated by day. This will provide some more information to help troubleshoot.
2 remaining items
danielfowler commentedon Jul 25, 2019
Thanks for the tips... I've logged out and back in before, but this time I did so by just copy/pasting the password from 1Password instead of using the Login with browser feature. Now I'm connected again... I wonder if the Login with browser was bugging with an old credential or something.
svetlanapuro commentedon Sep 21, 2019
Hi there,
I'm having the same problem. Before I was using GitHub Desktop without any problems. Now I get an error about failed authentication. I'm using HTTPS remote. I tried all the steps in here. I also added
git config --global core.sshCommandfrom here. I tried logging out and logging back in. I can push from the repository itself using the command line, but not from GitHub Desktop. Here are my logs:I would appreciate your help.
tierninho commentedon Sep 30, 2019
@iloveip I spotted two errors:
stderr: fatal: unknown response to connect: [0x7FF8CBDC43A0] ANOMALYand
error: [main] Malformed launch arguments received: C:\Users\Администратор.WIN-OBTQMT3318V\AppData\Local\GitHubDesktop\app-2.1.3\GitHubDesktop.exe,--squirrel-firstrunNot sure what the first one is about, but the latter one looks like an install error.
@steveward have you seen either of these before?
naiiooofy12 commentedon Oct 1, 2019
naiiooofy12 commentedon Oct 1, 2019
svetlanapuro commentedon Oct 1, 2019
How can I uninstall GitHub Desktop and delete all files associated with it on Windows to reinstall it again later?
steveward commentedon Oct 1, 2019
@iloveip you can perform a full reinstall by following these steps:
%LocalAppData%and delete theGitHubDesktopdirectoryAppData%and delete theGitHub DesktopdirectoryLet us know if that helps.
svetlanapuro commentedon Oct 2, 2019
Thank you very much for your reply! I closed GitHub Desktop, but I can't delete it from
%LocalAppData%as it says that the program is already in use. Is there any way to force it to terminate?steveward commentedon Oct 2, 2019
@iloveip you may need to open
Task Managerand check to see if there are any leftover processes running from GitHub Desktop. Restarting your machine would also work.svetlanapuro commentedon Oct 23, 2019
@steveward Thank you very much! Everything is working now.
bartekrdz commentedon Apr 27, 2020
I am having the same issue as the author of the initial post. Tried all recommended steps (logged out/logged in, removed all files from AppData and LocalAppData, reinstalled, generated and activated new SSH key, used HTTPS and SSH), and still getting the same error. I can push/pull from the command line but not from GitHub Desktop. It worked fine a couple weeks ago (new update issue?)
My log file:
2020-04-27.desktop.production.log
Environment:
Windows 10 Home
Anything else I could try?
tierninho commentedon Apr 27, 2020
@bartek2101 I transferred your issue over to here: #9641 so we can address it separately. Thanks.
bartekrdz commentedon Apr 27, 2020
@tierninho thanks!
DAbidou commentedon Jul 25, 2021
This answer https://stackoverflow.com/a/29380765/2849383 saved my entire life
Please, write it everywhere to save as many lives as possible XD
Try the following