Constant rejoin loop #956
-
Bug DescriptionWhen trying to play music the bot will join the voice channel, immediately leave, then rejoin, leave... in an endless loop. I noticed that this only occurs when I run the bot on my Linux server, after downloading the same files (jar file and config) to my windows machine it started working. Steps to Reproduce
Expected ResultThe bot to stay and start playing music Debug OutputSystem Properties:
java.version = 1.8.0_292
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.version = 1.8
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 1.8.0_292-b10
java.specification.version = 1.8
os.arch = amd64
os.name = Linux
JMusicBot Information:
Version = 0.3.6
Owner = 142310000977510400
Prefix = @mention
AltPrefix = _
MaxSeconds = 0
NPImages = false
SongInStatus = true
StayInChannel = false
UseEval = false
UpdateAlerts = true
Dependency Information:
JDA Version = 4.3.0_324
JDA-Utilities Version = 3.0.5
Lavaplayer Version = 1.3.78
Runtime Information:
Total Memory = 192
Used Memory = 34
Discord Information:
ID = 894670509403406366
Guilds = 1
Users = 4 Additional InfoThe debug output on my windows machine
The log on the windows machine:
The log on the linux machine:
As a final question: could this be related to firewall settings on the linux machine? I have them set fairly strict but I'd expect no websocket connection to be opened at all in that case. Checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Voice connections use a WebSocket & UDP connection to Note that the voice domain can change at any time. Firewalls generally have logging capabilities, so you can check which connections are being blocked & whitelist domains appropriately if you encounter issues. |
Beta Was this translation helpful? Give feedback.
-
ive been trying to fix this problem since today. i don't have much knowledge with this sort of things. do i just need to create a firewall outbound/inbound rule for the jar file? |
Beta Was this translation helpful? Give feedback.
Voice connections use a WebSocket & UDP connection to
*.discord.media
(for exampleeurope123.discord.media
). Ensure that*.discord.media
is whitelisted in your Firewall for both TCP (for the voice websocket) & UDP (for the actual voice data).Note that the voice domain can change at any time. Firewalls generally have logging capabilities, so you can check which connections are being blocked & whitelist domains appropriately if you encounter issues.