Why do I keep getting a "Repository authentication failed, check credentials. Make sure the user has both read and write access" error message when I create a branch in studio signed in as system admin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2017 06:21 AM
I am working on the NeedIt tutorial in the New to Service Now trainings. Although I was able to do the previous steps I am unable to create a branch in the studio. The instructions say:
Create a Branch from a Tag
- In Studio, open the Source Control menu and select the Create Branch menu item.
- Configure the Branch. Branch Name CreateNeedItApp Create from Tag: LoadForCreateNIAppModule
- Click the Create Branch button.
- Click the Close Dialog button.
- After the branch is created, the branch name appears in the Studio status bar (bottom right corner).
When I try to run this in studio it fails with the error message "Repository authentication failed, check credentials. Make sure the user has both read and write access' I have tried to sign in as various users that have read and write access but can't get it to work. Can anyone tell me what I'm doing wrong?
- Labels:
-
Studio
- 26,949 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 02:20 PM
I followed the steps in the article and still get the same error. I used the web-based tool from the article as well as the Git ssh tool. None of the key pairs work. Connecting to source control ought to be a very simple thing. I've spent most of the day trying to get this to work. Many forums, Git Docs, ServiceNow docs, all to no avail. Very frustrating. This is all new since upgrading to San Diego. I never had issues with source control in Quebec.
The logs show many errors stemming from "Failure getting key from the KMF". Typically followed by HMAC validation failures.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2022 02:48 PM
Same issue... Not working with personal access token. or SSH private key...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 02:04 PM
exactly same for me , worked fine before with username and password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 02:03 PM
Yeah, same for me. I had source control working about 6 months ago with basicAuth (username and password) but now getting error:-
'Repository authentication failed, check credentials. Make sure the user has both read and write access'
Im using GitLab and I have tried https (with generated access token) and ssh using Tim's instructions with certificate based authentication, but cant get it to work at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 05:09 AM
Hi. Tried everything mentioned on this forum, including everything from this link you have posted. Nothing works. Till end of July, everything was working fine with personal access token. Then I had a gap of a few days due to some other commitments, and that required me to restore my PDI from the backup. Since then, I have this authentication issue. Neither am I able to commit, nor able to import a branch from the repository.