Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty #312

Open
marverix opened this issue Jul 19, 2018 · 4 comments

Comments

@marverix
Copy link

I'm trying to run s3_website push on Ubuntu 18.04 with Ruby 2.5 and Java 8. But I'm getting this:

[wait] Failed to fetch an object listing (Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty). Trying again in 1 second.
[wait] Failed to fetch an object listing (Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty). Trying again in 2 seconds.
[wait] Failed to fetch an object listing (Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty). Trying again in 3 seconds.
[wait] Failed to fetch an object listing (Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty). Trying again in 5 seconds.
[wait] Failed to fetch an object listing (Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty). Trying again in 8 seconds.
[fail] Failed to fetch an object listing (Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty)
[info] Summary: 2 operations failed.

Any help?

@marverix marverix changed the title Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty Jul 19, 2018
@xaviershay
Copy link
Contributor

I am working through this, but I suspect sbt/sbt#2295 (comment) and following comments are relevant.

@xaviershay
Copy link
Contributor

xaviershay commented Jul 26, 2018

sbt/sbt#2295 (comment) led me to https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty/50103533#50103533 which workaround appears to have fixed this issue. I am expecting to run into other issues related to #300 however.

(tl;dr a fix for this is already in 18.10, and should be backported to 18.04 "soon")

@davidhamann
Copy link

Just had the same issue on macOS. I re-installed java via Homebrew and it immediately worked again.

In case it helps someone else on macOS:

brew tap caskroom/versions
brew cask install java8

@DJHoltkamp
Copy link

I slight change to what @davidhamann said. Leave out the 8

brew tap caskroom/versions
brew cask install java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants