s3_website icon indicating copy to clipboard operation
s3_website copied to clipboard

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

Open marverix opened this issue 6 years ago • 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?

marverix avatar Jul 19 '18 15:07 marverix

I am working through this, but I suspect https://github.com/sbt/sbt/issues/2295#issuecomment-394490499 and following comments are relevant.

xaviershay avatar Jul 26 '18 16:07 xaviershay

https://github.com/sbt/sbt/issues/2295#issuecomment-394490499 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 https://github.com/laurilehmijoki/s3_website/issues/300 however.

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

xaviershay avatar Jul 26 '18 16:07 xaviershay

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

davidhamann avatar Aug 17 '18 23:08 davidhamann

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

brew tap caskroom/versions
brew cask install java

DJHoltkamp avatar Aug 06 '19 18:08 DJHoltkamp