jajuk-team / jajuk

Advanded jukebox for users with large or scattered music collections
49 stars 19 forks source link

Failed to get cover on Ubuntu 18.04 #2025

Closed gkerdal closed 4 years ago

gkerdal commented 6 years ago

On a fresh installation of Ubuntu 18.04, with the lastest stable version 11 of jajuk, I encounter an issue trying to get a cover for an album.

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

JRE : Oracle Java 8 or Open JDK 8 Jajuk : 1.10.9 or 11dev (lastest stable)

gkerdal commented 6 years ago

The solution which works for me comes from stack overflow, especially the "Ubuntu 18.04" response : https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty

# 1. Save an empty JKS file with the default 'changeit' password for Java cacerts.
#    Use 'printf' instead of 'echo' for Dockerfile RUN compatibility.
/usr/bin/printf '\xfe\xed\xfe\xed\x00\x00\x00\x02\x00\x00\x00\x00\xe2\x68\x6e\x45\xfb\x43\xdf\xa4\xd9\x92\xdd\x41\xce\xb6\xb2\x1c\x63\x30\xd7\x92' > /etc/ssl/certs/java/cacerts

# if you get a "permission denied" error with the lattest command, do  
# sudo chown <youruser> /etc/ss/certs/cacerts
# redo the command #1 
# sudo chown root /etc/ss/certs/cacerts

# 2. Re-add all the CA certs into the previously empty file.
/var/lib/dpkg/info/ca-certificates-java.postinst configure
bflorat commented 4 years ago

Maybe this should be added into the FAQ ?

gkerdal commented 4 years ago

Good idea. It's done.