ericyoondotcom / MinecraftManhunt

Minecraft Bukkit plugin to run Manhunt minigames, with Discord music integration
GNU General Public License v3.0
27 stars 7 forks source link

Track not playing: "Something broke when playing the track" SSL Error #9

Closed ericyoondotcom closed 3 years ago

ericyoondotcom commented 3 years ago

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"

References