Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
marverix opened this issue · 4 comments
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?
I am working through this, but I suspect sbt/sbt#2295 (comment) and following comments are relevant.
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")
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
I slight change to what @davidhamann said. Leave out the 8
brew tap caskroom/versions
brew cask install java