Skip to content

Unable to authenticated in a Self Hosted GitLab Instance #18588

Closed

Description

@Raitorick

The problem

Hi Team.

Today after my GitHub Deskop get an update ,i have a problem when i was trying to fetch my branch.

image

First show me a form to prompt my credentials again, and when i put it show me the next screen.

image

Before today i was worked correctly for more than 2 years

Thanks

Release version

3.3.17( (x64)

Operating system

Windows 10

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

image

image

Additional context

No response

Activity

  1. sergiou87 commented on May 9, 2024

    @sergiou87
    Member

    @Raitorick 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.
    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 May 9, 2024
  3. Raitorick commented on May 9, 2024

    @Raitorick
    Author

    2024-05-09.desktop.production.log

    Sure, this is my log from today.

  4. removed
    more-info-needed
    on May 9, 2024
  5. sergiou87 commented on May 9, 2024

    @sergiou87
    Member

    Also if you could tell us the output of git remote -v (or a screenshot of the Repository -> Repository Settings… dialog, in the Remote tab) after redacting anything you need, that'd be very useful.

    Thank you and sorry about this!

  6. sergiou87 commented on May 9, 2024

    @sergiou87
    Member

    Thank you, we will investigate 🙏

  7. added
    bug
    priority-1
    on May 9, 2024
  8. Raitorick commented on May 9, 2024

    @Raitorick
    Author

    Thanks, I aprreciate it.

    I will keep in touch

  9. niik commented on May 9, 2024

    @niik
    Member

    Hey @Raitorick, we've identified a problem with http (vs https) remotes where instead of prompting you for a new set of credentials when the request fails we keep using the old ones. We'll get onto finding a proper fix for that but in the meantime we'd really like your help to troubleshoot this a bit further.

    First off you're going to have to clear the stored credentials for your host by opening DevTools (View menu -> Toggle Developer Tools). Then go to the Applications tab, click on Local Storage in the sidebar and locate the entry called genericGitAuth/username/192.168.2.128 and delete it by right clicking and selecting delete.

    Image

    Once you've deleted that you should get a new prompt for username and password on your next attempt to fetch, push, or pull.

    While I'm not familiar with self hosted GitLab instances I know that the hosted version requires you to use an access token. Username and password is no longer valid. Please make sure that you enter your username and access token in the prompt dialog and let us know how that goes.

    If you're still getting errors after having enterer username + PAT please make sure that you can clone on the command line using the same username and PAT.

  10. Raitorick commented on May 9, 2024

    @Raitorick
    Author

    Thank you very much.

    I Delete the credential like you told me, and when i put i again in the prompt, it works correctly.

    Thanks

  11. niik commented on May 9, 2024

    @niik
    Member

    @Raitorick I'm so glad that resolved your issue and I'm very grateful that you were able to test it out and respond so quickly. Much appreciated! I've opened #18589 to fix the underlying issue and we'll get that into the next production release.

  12. Raitorick commented on May 9, 2024

    @Raitorick
    Author

    Thanks for all.

    Take care!

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

    bugpriority-1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions