Skip to content

Authentication Failure with GitHub Desktop #8860

Closed

Description

@parthe

I am unable to pull, push for a private repository through the GitHub Desktop interface. However, the commands and work perfectly fine when I run them through the command prompt i.e.(Repository -> Open in Command Prompt)

A clear and concise description of what the bug is.
When I try "Fetch Origin" or "Push" from the GUI of the GitHub Desktop, it shows me the following
github_authentication_failure
I have ruled out the possibility of all the 5 error messages the interface shows me.

Furthermore, if I uninstall GitHub Desktop and reinstall it, the installation interface does not ask me for any login, i.e., it does not completely delete all files during uninstallation (and perhaps uses some old credentials).

I tried removing all files in the GitHub folder where the installation was done and then reinstalling the GitHub Desktop app, but saw the same behavior.

It is not clear what the backend is for commands clicked via the GitHub Desktop GUI

Version & OS

GitHub Desktop 2.2.4 on Windows 10 Pro

Activity

  1. steveward commented on Jan 6, 2020

    @steveward
    Contributor

    @parthe thanks for contributing. Could you upload the log file from GitHub Desktop so that I could get some more information about this error? To access the log files go to the file menu in GitHub Desktop and select Help > Show Logs in Finder (macOS) or Explorer (Windows).

    The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue.

  2. added
    more-info-needed
    on Jan 6, 2020
  3. jcornelius commented on Jan 10, 2020

    @jcornelius

    Maybe I've missed something in all the other discussion in other issues like #6538 and #7982 , but nothing here seems to address the issue for me.

    Environment

    Mac OS Catalina 10.15.2
    Github Desktop 2.2.4

    Fresh upgrade from legacy version of Github Desktop where everything worked fine. The authentication issue has been the same no matter what I've tried.

    Sequence of things I've done.

    • I first added the repo from my hard drive as that seemed the easiest way to go.
    • Logged out and logged in again using username/password in the app
    • Logged out and logged in using the browser
    • Deleted old SSH Key from my profile on https://github.com/settings/keys
    • Deleted local copy of repo and attempted to clone new copy from Github
    • Restarted the computer
    • Logged out & in again using both authentication methods
    • Tried to clone both public and private repos

    Nothing changes. I get this message every time.

    Screenshot 2020-01-10 13 26 22

    Here's what's in the log from the last attempt. It's the same message regardless of which repo I attempt to clone.

    2020-01-10T18:15:24.525Z - info: [ui] [AppStore.getAccountForRemoteURL] account found for remote: https://github.com/ninelabs/loopsbook.git - jcornelius (has token)
    2020-01-10T18:15:25.034Z - error: [ui] `git -c credential.helper= -c protocol.version=2 clone --recursive --progress -- https://github.com/ninelabs/loopsbook.git /Users/jc/Web Projects/loopsbook` exited with an unexpected code: 128.
    stderr:
    Cloning into '/Users/jc/Web Projects/loopsbook'...
    [email protected]: Permission denied (publickey).
    fatal: Could not read from remote repository.
    

    Anyone have ideas on how to resolve this?

  4. ignis-sec commented on Jan 10, 2020

    @ignis-sec

    Maybe I've missed something in all the other discussion in other issues like #6538 6538 and #7982 , but nothing here seems to address the issue for me.

    I'm here because i got notified from the 6538.
    6538 was about issue using ssh keys with github desktop where we were trying to pull/push to a remote with the address like ssh://user@domain:/dir/to/project, but ssh key's passphrase was being a problem.

    Maybe #8041 or #5291 can be helpful?

  5. tierninho commented on Jan 10, 2020

    @tierninho
    Contributor
  6. jcornelius commented on Jan 10, 2020

    @jcornelius

    @tierninho I didn't since the app didn't seem to want one. Now I have created a new SSH key and added to my profile on Github. The app still throws the same error.

    FWIW: I can use the command line to clone and push.

  7. jcornelius commented on Jan 10, 2020

    @jcornelius

    Update:

    • I uninstalled Github Desktop,
    • deleted all the local repos,
    • restarted the computer to clear out any lingering processes,
    • reinstalled Github Desktop
    • signed in using the native app authentication (including 2FA)
    • attempted to clone a repo

    It still doesn't work. Here's the log:

    2020-01-10T20:34:29.846Z - info: [ui] [AppStore] loading 0 repositories from store
    2020-01-10T20:34:30.057Z - info: [ui] Opt in reported.
    2020-01-10T20:34:30.174Z - info: [ui] [Welcome] no sign in step found. ignoring...
    2020-01-10T20:34:30.437Z - info: [ui] [Welcome] no sign in step found. ignoring...
    2020-01-10T20:34:30.927Z - info: [ui] launching: 2.2.4 (Mac OS 10.15.2)
    2020-01-10T20:34:30.938Z - info: [ui] execPath: '/Applications/GitHub Desktop.app/Contents/Frameworks/GitHub Desktop Helper.app/Contents/MacOS/GitHub Desktop Helper'
    2020-01-10T20:34:30.952Z - info: [ui] [Welcome] no sign in step found. ignoring...
    2020-01-10T20:34:31.032Z - info: [ui] [Welcome] no sign in step found. ignoring...
    2020-01-10T20:34:32.609Z - info: [ui] [Welcome] advancing to step: SignInToDotCom
    2020-01-10T20:34:32.614Z - info: [ui] [Welcome] current sign in state not found. ignoring...
    2020-01-10T20:34:48.562Z - info: [ui] [Welcome] kind Authentication is the same as Authentication. ignoring...
    2020-01-10T20:34:52.197Z - info: [ui] [Welcome] kind Authentication is the same as Authentication. ignoring...
    2020-01-10T20:34:55.155Z - info: [ui] [Welcome] kind Authentication is the same as Authentication. ignoring...
    2020-01-10T20:35:02.149Z - info: [ui] [Welcome] kind TwoFactorAuthentication is the same as TwoFactorAuthentication. ignoring...
    2020-01-10T20:35:02.848Z - info: [ui] [AppStore] adding account jcornelius (J Cornelius) to store
    2020-01-10T20:35:02.865Z - info: [ui] [Welcome] advancing to step: ConfigureGit
    2020-01-10T20:35:02.965Z - info: [ui] [Welcome] no sign in step found. ignoring...
    2020-01-10T20:35:03.047Z - info: [ui] [Welcome] no sign in step found. ignoring...
    2020-01-10T20:35:03.591Z - info: [ui] [Welcome] no sign in step found. ignoring...
    2020-01-10T20:35:07.876Z - info: [ui] [Welcome] advancing to step: UsageOptOut
    2020-01-10T20:35:09.591Z - info: [ui] Opt in reported.
    2020-01-10T20:35:09.597Z - info: [ui] [Welcome] no sign in step found. ignoring...
    2020-01-10T20:36:53.101Z - info: [ui] [AppStore.getAccountForRemoteURL] account found for remote: https://github.com/jcornelius/jcornelius.com.git - jcornelius (has token)
    2020-01-10T20:36:53.637Z - error: [ui] `git -c credential.helper= -c protocol.version=2 clone --recursive --progress -- https://github.com/jcornelius/jcornelius.com.git /Users/jc/Web Projects/jcornelius.com` exited with an unexpected code: 128.
    stderr:
    Cloning into '/Users/jc/Web Projects/jcornelius.com'...
    [email protected]: Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
    (The error was parsed as 2: Authentication failed. Some common reasons include:
    
    - You are not logged in to your account: see GitHub Desktop > Preferences.
    - 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.)
    
  8. tierninho commented on Jan 10, 2020

    @tierninho
    Contributor

    I attempted to clone the same repo, and did so successfully. 🤔

    Can you run ssh -T [email protected] which may require your password and report back.

    cc @steveward for any ideas here

  9. jcornelius commented on Jan 10, 2020

    @jcornelius

    Can you run ssh -T [email protected] which may require your password and report back.

    $ ssh -T [email protected]
    Enter passphrase for key '/Users/jc/.ssh/id_rsa': 
    Hi jcornelius! You've successfully authenticated, but GitHub does not provide shell access.
    

    /cc @tierninho

  10. tierninho commented on Jan 10, 2020

    @tierninho
    Contributor

    GitHub still isn't able to authenticate you despite just setting up the SSH keys on your account. You can also use the HTTPS instead, but SSH should still work ideally.

    GitHub has a help page specifically for that error message here which might help. Could also be the SSH agent or the git remote.

  11. jcornelius commented on Jan 10, 2020

    @jcornelius

    For whatever strange reason, running ssh-add /path/to/key solved it. Thanks, @tierninho.

  12. tierninho commented on Jan 10, 2020

    @tierninho
    Contributor

    Awesome, thanks for the confirmation!

  13. damien-mattei commented on Mar 8, 2020

    @damien-mattei

    my password was good in github desktop preferences but wrong in the .git/config file

    for me the only working solution was to manually edit the file:
    .git/config

    that contains this line:
    url = https://user:[email protected]/user/repo.git

    change password to the GOOD password because it was an older one for me

  14. Boehm92 commented on May 28, 2020

    @Boehm92

    I had the same Problem as @jcornelius. When i tried to clone my repos, the access at my gitlab-server was denied. But i used github desktop on a diffrent pc with this server bevor.
    I solved it, with cloning a repo with visual studio code and added the local repo. I updated the branch with the "fetch origin button" and just then github deskop asked me the first time for my account credentials for gitlab. I tipped them in and now its working!
    Hopefully this is helpfull.

  15. 20 remaining items

  16. rijarobinson commented on Apr 27, 2023

    @rijarobinson

    The above worked for me as well.

  17. HamzaNasry commented on May 26, 2023

    @HamzaNasry

    Just sign out of the GitHub desktop and then sign in again with the browser. :/ - Worked for me.

  18. 0xumarfarooq commented on Jun 5, 2023

    @0xumarfarooq

    1-sign out
    2-sing in
    you good to go

  19. brownberrytechnologies commented on Jun 7, 2023

    @brownberrytechnologies

    Re-clone the repo worked for me

  20. brenoperucchi commented on Oct 4, 2023

    @brenoperucchi
    ~/Devs/signalforex on master *2 ❯ git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin
    
    Warning: the ECDSA host key for 'github.com' differs from the key for the IP address '140.82.112.3'
    Offending key for IP in /Users/brenoperucchi/.ssh/known_hosts:10
    Matching host key in /Users/brenoperucchi/.ssh/known_hosts:33
    Are you sure you want to continue connecting (yes/no)? 
    

    Delete line /Users/brenoperucchi/.ssh/known_hosts:10

    ❯git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin
    

    Now everything should be fine

  21. HamzaNasry commented on Nov 8, 2023

    @HamzaNasry

    I keep getting random emails from this months later, its so weird.

  22. SantiagoGaonaC commented on Nov 26, 2023

    @SantiagoGaonaC

    For commit in organizations:
    go to https://github.com/organizations/NAME-ORG/settings/oauth_application_policy
    Remove Third-party application access policy, it should look something like this:
    image
    worked for me

  23. alfatahnesab commented on Jan 8, 2024

    @alfatahnesab
    I was facing same issue.

    Reason: Old SSH auth key was removed,

    Solution: Worked for me.

    Only remove local cloned repo. (Skip if you are choosing new clone location)

    Download and install SourceTree

    Login GitHub Account using
    Host Github Auth Type: OAuth Protocol: SSH

    Then, Click on Connect Account.

    Copy generated SSH Key value to click on Copy to Clipboard button

    Add New SSH Key

    In the "Access" section of the sidebar, click SSH and GPG keys.

    Click New SSH key or Add SSH key.

    In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal laptop, you might call this key "Personal laptop".

    Select the type of key, either authentication or signing. For more information about commit signing, see "About commit signature verification."

    In the "Key" field, paste your public key.

    Click Add SSH key.

    And, Go back to SourceTree app to save details.

    You good to go!

  24. stack-wuh commented on May 5, 2024

    @stack-wuh

    maybe use proxy tools, change proxy node its work

  25. justingolden21 commented on Jun 3, 2024

    @justingolden21

    I use github desktop to connect to gitlab account repos and it's worked fine for a few years. Confirmed my secret key still has several months left before it expires.

    image

    I haven't changed anything and now I can't seem to push. I'm not signed in under options to github (since it's a gitlab account) and there's no option to sign in to gitlab under options or repo specific.

    Today's Log ``` 2024-06-03T16:08:49.669Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2} 2024-06-03T16:08:50.448Z - info: [ui] [AppStore] loading 7 repositories from store 2024-06-03T16:08:50.768Z - info: [ui] launching: 3.3.18 (Windows 10.0.19045) 2024-06-03T16:08:50.771Z - info: [ui] execPath: 'C:\Users\First.Last\AppData\Local\GitHubDesktop\app-3.3.18\GitHubDesktop.exe' 2024-06-03T16:08:51.191Z - info: [ui] Stats reported. 2024-06-03T16:08:51.537Z - info: [ui] Executing getRemotes: git remote -v (took 1.008s) 2024-06-03T16:08:53.379Z - info: [ui] Executing getConfigValueInPath: git config -z --local user.email (took 1.864s) 2024-06-03T16:08:53.453Z - info: [ui] Executing getCommits: git log fa109c9ef5a33cb3c2cf98895f12a2e4a191c3e3 --date=raw --max-count=1 -z --format=%H%x00%h%x00%s%x00%b%x00%an <%ae> %ad%x00%cn <%ce> %cd%x00%P%x00%(trailers:unfold,only)%x00%D --no-show-signature --no-color -- (took 1.322s) 2024-06-03T16:08:53.983Z - info: [ui] Executing getCommits: git log fa109c9ef5a33cb3c2cf98895f12a2e4a191c3e3 --date=raw --max-count=1 -z --format=%H%x00%h%x00%s%x00%b%x00%an <%ae> %ad%x00%cn <%ce> %cd%x00%P%x00%(trailers:unfold,only)%x00%D --no-show-signature --no-color -- (took 2.001s) 2024-06-03T16:08:54.725Z - info: [ui] Executing getRemotes: git remote -v (took 1.259s) 2024-06-03T16:08:55.902Z - info: [ui] Executing getRemotes: git remote -v (took 1.895s) 2024-06-03T16:08:56.108Z - info: [ui] Executing getBranches: git for-each-ref --format=%00%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(symref)%00 refs/heads refs/remotes (took 1.382s) 2024-06-03T16:08:56.724Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 1.988s) 2024-06-03T16:08:58.122Z - info: [ui] Executing getSymbolicRef: git symbolic-ref -q refs/remotes/origin/HEAD (took 1.394s) 2024-06-03T16:08:58.222Z - info: [ui] Executing getSymbolicRef: git symbolic-ref -q refs/remotes/origin/HEAD (took 1.265s) 2024-06-03T16:08:59.149Z - info: [ui] Executing getConfigValueInPath: git config -z pull.rebase (took 1.026s) 2024-06-03T16:08:59.776Z - info: [ui] Executing getConfigValueInPath: git config -z pull.rebase (took 1.601s) 2024-06-03T16:09:00.512Z - info: [ui] Executing getAuthorIdentity: git var GIT_AUTHOR_IDENT (took 1.344s) 2024-06-03T16:09:00.708Z - info: [ui] Executing getStashEntries: git log -g -z --format=%gD%x00%H%x00%gs%x00%T%x00%P refs/stash (took 1.549s) 2024-06-03T16:09:00.877Z - info: [ui] Executing getCommits: git log origin/main..main --date=raw --max-count=100 -z --format=%H%x00%h%x00%s%x00%b%x00%an <%ae> %ad%x00%cn <%ce> %cd%x00%P%x00%(trailers:unfold,only)%x00%D --no-show-signature --no-color -- (took 1.727s) 2024-06-03T16:09:00.975Z - info: [ui] Executing getStashEntries: git log -g -z --format=%gD%x00%H%x00%gs%x00%T%x00%P refs/stash (took 1.101s) 2024-06-03T16:09:01.229Z - info: [ui] Executing getCommits: git log origin/main..main --date=raw --max-count=100 -z --format=%H%x00%h%x00%s%x00%b%x00%an <%ae> %ad%x00%cn <%ce> %cd%x00%P%x00%(trailers:unfold,only)%x00%D --no-show-signature --no-color -- (took 1.453s) 2024-06-03T16:09:01.303Z - info: [ui] Executing getAuthorIdentity: git var GIT_AUTHOR_IDENT (took 1.504s) 2024-06-03T16:09:02.053Z - info: [ui] Executing getConfigValueInPath: git config -z --local user.name (took 1.536s) 2024-06-03T16:09:02.599Z - info: [ui] Executing getAllTags: git show-ref --tags -d (took 1.721s) 2024-06-03T16:09:02.663Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 11.859s) 2024-06-03T16:09:02.702Z - info: [ui] Executing getAllTags: git show-ref --tags -d (took 1.401s) 2024-06-03T16:09:03.126Z - info: [ui] Executing getConfigValueInPath: git config -z --local user.email (took 1.072s) 2024-06-03T16:09:04.154Z - info: [ui] Executing getCommits: git log HEAD --date=raw --max-count=100 --skip=0 -z --format=%H%x00%h%x00%s%x00%b%x00%an <%ae> %ad%x00%cn <%ce> %cd%x00%P%x00%(trailers:unfold,only)%x00%D --no-show-signature --no-color -- (took 1.554s) 2024-06-03T16:09:05.523Z - info: [ui] Executing getChangesFiles: git log fa109c9ef5a33cb3c2cf98895f12a2e4a191c3e3 -C -M -m -1 --no-show-signature --first-parent --raw --format=format: --numstat -z -- (took 1.367s) 2024-06-03T16:10:59.285Z - error: [ui] `git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin` exited with an unexpected code: 128. stderr: remote: Invalid credentials fatal: Authentication failed for 'https://bitbucket.org/company/company-marketing-website.git/'

    (The error was parsed as 4: 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.
    • If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
    • If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
      2024-06-03T16:11:00.842Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 1.122s)
      2024-06-03T16:11:00.843Z - error: [ui] git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin exited with an unexpected code: 128.
      stderr:
      remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
      fatal: Authentication failed for 'https://gitlab.com/d3258/marketing/company.com-2023-wordpress-theme.git/'

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: 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.
    • If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
    • If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
      2024-06-03T16:11:04.070Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 6 repositories took 6.0s of which 0.0s paused, total 6.0s
      2024-06-03T16:26:06.838Z - error: [ui] git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin exited with an unexpected code: 128.
      stderr:
      remote: Invalid credentials
      fatal: Authentication failed for 'https://bitbucket.org/company/company-marketing-website.git/'

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: 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.
    • If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
    • If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
      2024-06-03T16:26:10.748Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 6 repositories took 5.0s of which 0.0s paused, total 5.0s
      2024-06-03T16:31:36.141Z - info: [ui] askPassHandler: no account found for gitlab.com
      2024-06-03T16:31:37.816Z - info: [ui] askPassHandler: user cancelled generic git authentication
      2024-06-03T16:32:51.984Z - info: [ui] Executing push: git -c credential.helper= push origin main:main --progress (took 76.275s)
      2024-06-03T16:33:52.259Z - info: [ui] askPassHandler: no account found for gitlab.com
      2024-06-03T16:34:00.433Z - info: [ui] askPassHandler: user cancelled generic git authentication
      2024-06-03T18:32:12.342Z - info: [ui] Executing push: git -c credential.helper= push origin main:main --progress (took 7100.597s)
      2024-06-03T18:32:13.331Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 1.087s)
      2024-06-03T18:32:13.331Z - error: [ui] git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin exited with an unexpected code: 128.
      stderr:
      remote: Invalid credentials
      fatal: Authentication failed for 'https://bitbucket.org/company/company-marketing-website.git/'

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: 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.
    • If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
    • If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
      2024-06-03T18:32:18.484Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 6 repositories took 6.4s of which 0.0s paused, total 6.4s
      2024-06-03T18:32:18.574Z - info: [ui] askPassHandler: user cancelled generic git authentication
      2024-06-03T18:32:24.411Z - info: [ui] Executing push: git -c credential.helper= push origin main:main --progress (took 9.704s)
      2024-06-03T18:59:15.088Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 1.164s)
      2024-06-03T18:59:15.089Z - error: [ui] git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin exited with an unexpected code: 128.
      stderr:
      remote: Invalid credentials
      fatal: Authentication failed for 'https://bitbucket.org/company/company-marketing-website.git/'

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: 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.
    • If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
    • If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
      2024-06-03T18:59:19.838Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 6 repositories took 6.1s of which 0.0s paused, total 6.1s
      2024-06-03T18:59:19.939Z - info: [ui] askPassHandler: no account found for gitlab.com
      2024-06-03T18:59:49.707Z - info: [ui] askPassHandler: acquired generic credentials for gitlab.com
      2024-06-03T18:59:49.939Z - info: [ui] Executing push: git -c credential.helper= push origin main:main --progress (took 30.581s)
      2024-06-03T19:15:21.969Z - error: [ui] git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin exited with an unexpected code: 128.
      stderr:
      remote: Invalid credentials
      fatal: Authentication failed for 'https://bitbucket.org/company/company-marketing-website.git/'

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: Authentication failed. Some common reasons include:

    (The error was parsed as 4: 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.
    • If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
    • If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
      2024-06-03T19:15:25.870Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 6 repositories took 5.0s of which 0.0s paused, total 5.0s
    </details>
    
  26. justingolden21 commented on Jun 3, 2024

    @justingolden21

    Figured it out. I needed to sign in with my gitlab email and PAT (personal access token). I have no idea why after years of being signed in, github desktop decided to sign me out without mentioning and then show in the UI that I was signed in. The PAT also remained unchanged.

  27. shaznishiraz commented on Jul 6, 2024

    @shaznishiraz

    Go to credential manager and remove

    image

  28. DiegoDevGarcia commented on Aug 14, 2024

    @DiegoDevGarcia

    Eu desmarquei a chave SSH e marquei use Git credencial Manager e funcionou. espero que ajude.

    Captura de tela 2024-08-14 194511

  29. sergiowjr commented on Dec 25, 2024

    @sergiowjr

    I corrected it as follows:

    1. In the C:Users directory, I deleted the .gitconfig file;

    2. As a precaution, I also deleted the .ssh folder.

  30. yingnierxiao commented on Oct 29, 2025

    @yingnierxiao

    Eu desmarquei a chave SSH e marquei use Git credencial Manager e funcionou. espero que ajude.

    Captura de tela 2024-08-14 194511

    it is work

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

    more-info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions