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?

5vetlana
Tera Contributor

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

  1. In Studio, open the Source Control menu and select the Create Branch menu item.
  2. Configure the Branch.               Branch Name CreateNeedItApp               Create from Tag: LoadForCreateNIAppModule
  3. Click the Create Branch button.
  4. Click the Close Dialog button.
  5. After the branch is created, the branch name appears in the Studio status bar (bottom right corner).The branch name appears in the status bar on the lower 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?

71 REPLIES 71

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.

Same issue... Not working with personal access token. or SSH private key...

exactly same for me , worked fine before with username and password

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.

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.