Missing authentication for Git repo
Asked by Matt Reynolds:

Hi all,

I recently upgraded to Bamboo 5.8.1 and we've discovered that creating a new plan with Git as the repo no longer gives the option for authentication.

If I add a repo, select Git as the Host, the only fields are Display Name, Repository URL and Branch. If I select any of the other hosts, such as Bitbucket, the Username and Password fields appear.

When I try saving the repo anyway, I get an error saying "Failed to validate build configuration for the Git repository (com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git:git). Name is null".

Has something funky happened to the Git plugin? Anyone know what's going on, or suggestions on how to fix it?

Thanks!

Matt


Answers:
author: Matt Reynolds
body: Hi Sergii

My issue ended up being a table called CREDENTIALS wasn't created in the upgrade. Check if you have this table, and if not you'll need to create it with the follow query (note this is for MS SQL):

```
CREATE TABLE [dbo].[CREDENTIALS](	[CREDENTIALS_ID] [numeric](19, 0) NOT NULL,	[NAME] [nvarchar](255) NULL,	[XML] [ntext] NULL,PRIMARY KEY CLUSTERED (	[CREDENTIALS_ID] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
```


author: Bart Verwilst
body: I'm seeing the same issue with 5.9.7. I have a CREDENTIALS table:

\| CREDENTIALS \| CREATE TABLE \`CREDENTIALS\` (

\`CREDENTIALS_ID\` bigint(20) NOT NULL,

\`NAME\` varchar(255) COLLATE utf8_bin DEFAULT NULL,

\`XML\` longtext COLLATE utf8_bin,

\`PLUGIN_KEY\` varchar(255) COLLATE utf8_bin DEFAULT NULL,

PRIMARY KEY (\`CREDENTIALS_ID\`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin \|

We've upgraded from 5.7 or 5.8 to 5.9 a while ago.. Any ideas on how to fix this? It's a production system so I can't do a clean install.

Thanks!


author: sergii-diachenko
body: Hi Matt,

Thanks a lot for your feedback. Your advise helped to solve the issue.


author: sergii-diachenko
body: Experiencing the same issue after upgrade to Bamboo 5.8.2 build 5866  
If that possible to debug/troubleshoot the issue, as we can't use any git repository


author: Alexey Chystoprudov
body: Hello,

Can you try fresh installation of Bamboo 5.8.1, not upgrade. May be it's linked with upgrade or some plugin you had in 5.6


author: Matt Reynolds
body: Yep, cleared cached, tried FF, Chrome, IE. Tried on a completely different PC. The authentication type just won't appear. He's what I'm seeing:

Capture.PNG

As for any JS errors, all the console shows me are two warnings:

js.PNG

I've been through all the system settings hoping to find something obvious that might disable this, but nothing leaps out.  
[](https://community.atlassian.com/t5/Bamboo-questions/Missing-authentication-for-Git-repo/qaq-p/389250?attachment-id=12936){#link_11725a736b2816}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/12246/1/js.PNG){#display_11725a736b2816_0}  
[](https://community.atlassian.com/t5/Bamboo-questions/Missing-authentication-for-Git-repo/qaq-p/389250?attachment-id=12937){#link_11725a736b2816_0}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/12246/2/Capture.PNG){#display_11725a736b2816_2}


author: Alexey Chystoprudov
body: Hello,

Can you clear browser cache and check if there is any JS errors in browser console.

Just checked how it looks for Git repository at Bamboo 5.8.1Screen Shot 2015-06-03 at 10.42.15.png  
[](https://community.atlassian.com/t5/Bamboo-questions/Missing-authentication-for-Git-repo/qaq-p/389250?attachment-id=12709){#link_11725a79f6a00c}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/12245/1/Screen%20Shot%202015-06-03%20at%2010.42.15.png){#display_11725a79f6a00c_0}


Tags: bamboo-administration