InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

My build configuration is configured to work with a repository on github:
https://github.com/borismod/FluentTc

It used to work fine until today. Today it failes to retrieve the changes with the following exception:

[12:17:02] : Collecting changes in 1 VCS root
[12:17:02] :  [Collecting changes in 1 VCS root] VCS Root details
[12:17:02] :  [VCS Root details] "https://github.com/borismod/FluentTc.git" {instance id=394, parent internal id=310, parent id=Misc_Tryout_HttpsGithubComBorismodFluentTcGit, description: "https://github.com/borismod/FluentTc.git#refs/heads/master"}
[12:17:03]E: Failed to collect changes, error: List remote refs failed: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

VCS root is configured to authenticate usin username and password.

How can I fix it?

6 comments

Hi Boris,

Could you please attach screenshot of the affected VCS root and teamcity-vcs.log?

0

Thanks for the quick reply. It happened with all the VCS root that use github. Please find all the VCS logs attached and also screenshot of VCS root configuration.

After a day or two, build configurations that use these VCS roots started working, but "VCS problem: TeamCity_extensions_gitdetails " still appears on the build configuraiton level, see gitVcsScreenshot2.jpg

We are using TeamCity 9.1.2



Attachment(s):
gitVcsScreenshot2.jpg
gitVcsScreenshot.jpg
teamcity-vcs.log.zip
0

The firstly reported error ("the trustAnchors parameter must be non-empty") means that there were no valid certificate found or truststore couldn't be opened due to access permissions. If the issue is reproduced, please check that your certificates are valid and follow this link to configure JVM for authentication.
Do "VCS problem" messages disappear if you refresh the page? Did the build finish successsfully? Do test connection work for this VCS root?

0

I do not understand what certificates I should update on the TeamCity server and what has changed. We used these VCS roots that consume github repositories for a long time.

Do "VCS problem" messages disappear if you refresh the page? [Boris] No, it remains there all the time.

Did the build finish successsfully? [Boris] Builds of existing build configuration succeed, but the error "VCS problem: TeamCity_extensions_gitdetails »" remains all the time. New build configurations that use the same VCS root fail to start due to the same "VCS problem".

Do test connection work for this VCS root? [Boris] No, it does not.


Can you reproduce it by connecting to https://github.com/borismod/TeamCity-extensions.git ?

0

Alina,

We still experience this behavior and many build cannot start. Is there any progress on this issue? Should I open an oficial issue on youtrack?

0

Hi Boris,

Sorry for delay. I created a project in TeamCity using the link you provided and everything works as expected - the sources are checked out without any issues.
Could you please try to clone the same repository via command line on TeamCity server machine? Does it work?
According to the errors message there are some problems with the truststore. Please see the related post.

0

Please sign in to leave a comment.