Authentication is required but no CredentialsProvider has been register

I am getting a new error when I start a new build in TeamCity 2020.2. I was still working a week ago. This is the error message:

[ERROR] Failed to perform fetch
org.eclipse.jgit.api.errors.TransportException:
 https://github.com/mycompany/myproduct:
 Authentication is required but no CredentialsProvider has been registered

at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:254)
at pl.project13.maven.git.JGitProvider.fetch (JGitProvider.java:352)

I did not change the anything with TeamCity, so this error surprised me. I cannot determine how and why it comes up now. Same TeamCity version & configuration. The login stayed the same. I tried git paths from Bitbucket & Github, but I get the same error with both, even though the login credentials are correct.

Also, TeamCity has no issue noticing that there were changes to the repo itself. Old builds fail now too. Also, locally Maven has no problems.

1
2 comments
Hi,

I have tested building the Maven project hosted privately on GitHub using the general access token authentication and could not reproduce this issue on the latest (2023.11) version of TeamCity. 

Please note that you use an outdated TeamCity version [that is no longer supported](https://www.jetbrains.com/help/teamcity/teamcity-release-cycle.html). We don't provide regular technical support for unsupported versions, and they are extremely unlikely to receive updates. Please consider upgrading to the latest version available. Since your version was released, there have been many fixes and improvements in various product areas, including [security](https://www.jetbrains.com/help/teamcity/security-notes.html). You can find release notes for particular releases on [this page](https://www.jetbrains.com/help/teamcity/previous-releases-downloads.html). A short summary of what's new in each release can be found on [this page](https://www.jetbrains.com/help/teamcity/what-s-new-in-teamcity.html).

Could you provide the following information? It may indicate possible causes of this error.
1. What authentication method are you using to authenticate TeamCity in GitHub for accessing your repository? Please provide the screenshot of the authentication settings in VCS Root properties.
2. Full build log of the failed build.
3. Screenshots of Maven build step settings (please show advanced settings as well).

You can upload the screenshots to https://uploads.jetbrains.com/ and share the upload ID here to share it privately.

Best regards,
Anton
0

Please sign in to leave a comment.