InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

My build configuration is configured to work with a repository on github:

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] "" {instance id=394, parent internal id=310, parent id=Misc_Tryout_HttpsGithubComBorismodFluentTcGit, description: ""}
[12:17:03]E: Failed to collect changes, error: List remote refs failed: java.lang.RuntimeException: Unexpected error: the trustAnchors parameter must be non-empty

VCS root is configured to authenticate usin username and password.

How can I fix it?


Hi Boris,

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


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


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?


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 ?



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?


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.


Please sign in to leave a comment.