Dev version 3.3.3.dev - Audio not playing #3651
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#3651
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Command bugs
Playing a song - leaves it in the queue and does not start the audio
Command name
_play
What cog is this command from?
Audio
What were you expecting to happen?
Song to be queued and start playing.
What actually happened?
Song is queued and does not play at all.
How can we reproduce this issue?
Restarting the bot, trying to play music is intermittent if it will work or not.. on occasion there is a DeprecationWarning: Explicitly passing the loop will not work in Red 3.4+ warnings.warn ("Explicitly passing the loop will not work in Red 3.4+", DeprecationWarning).
From the lavalink logs:
Removing the log file and restarting the server once again, allows this to work:
It seems that there are intermittent times when the songs will queue but not start playing and a restart of the server can sometimes fix this (but not always) - have had to ctrl+c a running redbot and then restarted to get this sometimes to work.
The only current "fix" for a websocket related NPE as you have (kotlin.KotlinNullPointerException: null) is to restart the host that the Lavalink.jar is running on. If you feel so inclined, you can open an issue regarding what you posted in https://github.com/Cog-Creators/Red-DiscordBot/issues/3651#issuecomment-598215270 on the Lavalink repo and see if someone upstream has the time to address this.
If you have other tracebacks in the spring.log that are different in regards to https://github.com/Cog-Creators/Red-DiscordBot/issues/3651#issuecomment-598218344, you could join the Red Discord server and ask in the support channel.
After talking with a couple folks, another alternative you could try to see if it helps in this situation is updating your Java install from 8 to 11.
Okay- I think Java 8 is without requiring a commercial license, looks like Java 11 requires a commercial license. May have to track back to LavaLink to see what license is required if any to run this for a server now.
Our install guide includes info about installing dependencies. You should use AdoptOpenJDK 11 as said there.
Did you end up installing Java 11? How did that go?
Needed to uninstall Oracle JDE 8 first, then the AdoptOpenJDK install would apply. Seems to be working -)
Still receiving errors on the audio , can queue the playlist then refuses to start playing whats in the que... (log below) - this is with the Java 11 installed..
There was a connection issue your machine had 2h after when you stopped your bot from playing. If you haven't restarted your vps/server, do so. Otherwise if you get more errors like "Websocket to wss://eu-central788.discord.media/?v=4 closed with code 1001..." those are connection issues on your end.
I'm not on dev branch. Should I be if I am suffering constantly from audio being dropped? I am on Java 11 and if I leave a long queue running, audio eventually dies for everyone until I reload the module & restart the queue. I notice this is a later version than others have reported here, and the stack dump is subtly different:
The bot is running on my local Debian (buster) server & the client system is Win 10. Both systems are on the same LAN together via ethernet, and my link out to Youtube is via consumer grade fibre-to-the-home. That doesn't rule out network issues, but it's certainly unexpected that it happens so frequently for me (i.e. it is inevitable that audio will eventually drop after some dozens of tracks are played & I have to intervene - I haven't run the bot for a single day without having to do this several times before the end of the day).
From what I've been told, this is issue in Lavalink that can't be feasibly fixed on our side. If there's more questions, you should probably ask @Drapersniper about it.