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
Unable to authenticated in a Self Hosted GitLab Instance #18588
@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.
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.
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.
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.
@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.
Activity
sergiou87 commentedon May 9, 2024
@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.
Raitorick commentedon May 9, 2024
2024-05-09.desktop.production.log
Sure, this is my log from today.
sergiou87 commentedon May 9, 2024
Also if you could tell us the output of
git remote -v(or a screenshot of theRepository->Repository Settings…dialog, in theRemotetab) after redacting anything you need, that'd be very useful.Thank you and sorry about this!
Raitorick commentedon May 9, 2024
origin http://192.168.2.128:8082/DiegoRivera1998/proyecto-en-blanco.git (fetch)
origin http://192.168.2.128:8082/DiegoRivera1998/proyecto-en-blanco.git (push)
sergiou87 commentedon May 9, 2024
Thank you, we will investigate 🙏
Raitorick commentedon May 9, 2024
Thanks, I aprreciate it.
I will keep in touch
niik commentedon May 9, 2024
Hey @Raitorick, we've identified a problem with
http(vshttps) 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.128and delete it by right clicking and selecting delete.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.
Raitorick commentedon May 9, 2024
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
niik commentedon May 9, 2024
@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.
Raitorick commentedon May 9, 2024
Thanks for all.
Take care!
Sign in to other Git hosts and show their pull requests