Skip to content

Clone from Azure DevOps works fine, but authentication fails when I try to push #16023

@adremeaux

Description

@adremeaux

The problem

I cloned my Azure DevOps repo from the instructions on this page: https://github.com/desktop/desktop/blob/development/docs/integrations/azure-devops.md

The clone had some issues with GitLFS but once I sorted that it worked fine. I've tried to make a commit and push it and am getting an auth error. If I try to push via the command line I have to sign into my Microsoft account but then it works fine.

Here is the relevant bit from the logs:

023-01-27T18:19:15.253Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: Plants_Game - adremeaux (has token)
2023-01-27T18:19:31.074Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2023-01-27T18:19:31.622Z - info: [ui] [AppStore] loading 7 repositories from store
2023-01-27T18:19:31.622Z - info: [ui] [AppStore] found account: adremeaux (adremeaux)
2023-01-27T18:19:31.673Z - info: [ui] [BranchPruner] Last prune took place 3 minutes ago - skipping
2023-01-27T18:19:31.769Z - info: [ui] launching: 3.1.4 (Windows 10.0.22621)
2023-01-27T18:19:31.773Z - info: [ui] execPath: 'C:\Users\adrem\AppData\Local\GitHubDesktop\app-3.1.4\GitHubDesktop.exe'
2023-01-27T18:19:32.213Z - info: [ui] Subscribed 'adremeaux' to Alive channel
2023-01-27T18:19:34.948Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: Plants_Game - adremeaux (has token)
2023-01-27T18:20:00.259Z - error: [ui] git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin exited with an unexpected code: 128.
stderr:
fatal: Authentication failed for '[redacted for privacy]'

(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.
  • 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.)

Release version

3.1.4

Operating system

Windows 11

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions