[Audio/Lavalink] ValueError: I/O operation on closed pipe when shutdown/restart while using default Java executable (solution inside) #6523
Labels
Status: Needs Triage
This has not been labeled or discussed for handling yet.
Type: Bug
Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
What Red version are you using?
3.5.16
What were you trying to do?
Shutdown the bot to update from 3.5.15 to 3.5.16
What did you expect to happen?
Shutdown peacefully and then restart the bot and Lavalink
What actually happened?
It occurred to me that one of my RedBot instances was raising error at asyncio:
which failed to terminate java.exe and blocked the port, making it impossible to restart Lavalink.
How can we reproduce this error?
!llset java
to set to the default java executable. The default executable for me wasC:\Program Files\Common Files\Oracle\Java\javapath\java.EXE
!shutdown
or!restart
Anything else?
Temporary solution: Change your Java executable to Java 11.
This error did not happen on the instance that uses a different Java executable (jdk-11.0.16). No error occurred when shutting down/restarting while using this version of java.exe. I lost an hour and a half because I thought the problem was the port or the Lavalink.exe.
The text was updated successfully, but these errors were encountered: