Track not playing: "Something broke when playing the track" SSL Error
ericyoondotcom opened this issue ยท 0 comments
Found the following bug when setting up the plugin on a Google Compute Engine virtual machine. The solution is below.
Describe the bug
The following errors would appear in the console:
[MinecraftManhunt] Started track with a result of true
[MinecraftManhunt] Audio track exception: Something broke when playing the track.
[MinecraftManhunt] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
...
Caused by: java.security.cert.CertificateNotYetValidException: NotBefore: [some date/time]
Solution
LavaPlayer could not establish an SSL connection to Youtube. Make sure your system's date/time clock is correct. If it is too far in the past, music will not work.
Either use your system OS, or the shell command:
date --set="YOUR CORRECTED TIME STRING"