GitLab Auth Error

gediminassukys July 12, 2024

Hello,

maybe you are not so interested, but SourceTree is not working with GitLab for a long time.

 

I'm testing with my credentials with Terminal from Mac - it works. 

Then I try to add same credentials to same computer on SourceTree, when choosed gitlab.com option - it Says incorrect password. Username is the same (sgediminas). Public key is the same. Everything is the same, and in the terminal works, SourceTree - not.

 

Tried to add Private Token, freshly created in GitLab. Also writes, wrong password, but password even not used to login with Pivate Token.

Source Tree v. 4.2.8
Mac OS 14.5

Thank you for your support!!

1 answer

0 votes
Misty Moore July 12, 2024

Hello,

I appreciate your patience, and I’m here to help! It can be frustrating when SourceTree doesn’t cooperate with GitLab. Let’s troubleshoot this issue together.

Here are a few steps you can try to resolve the problem:

SSH Key Configuration:
Make sure you have generated an SSH key for your GitLab account. If you haven’t, follow GitLab’s instructions to create one.
Add the SSH key to your keychain using the command ssh-add -K <ssh_generated_key_file.txt> in the terminal. This step ensures that SourceTree recognizes your key.
Restart SourceTree after adding the key to ensure it picks up the new configuration.
Cloning via URL:
Instead of setting up GitLab directly within SourceTree, try cloning a remote repository using the URL.
Click on “+ New Repository” > “Clone from URL.”
In the “Source URL” field, provide the GitLab repository URL followed by your username. Fo
GitLab User Name: zaid.pathan
Access Token:
If you’re using an access token, ensure that it has the necessary scopes (e.g., api, read_user, read_repository, write_repository).
Sometimes revoking an old access token and generating a new one with broader scopes can resolve authentication issues.   
Update Sourcetree:
Occasionally, updating SourceTree to the latest version can fix compatibility issues.
Also, consider clearing saved passwords from the system keychain.
Remember to replace the example URLs and usernames with your actual GitLab information. If you encounter any specific error messages, feel free to share them, and we’ll continue troubleshooting.  

Best Regards

misty569

securespend gift card

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events