Track Error Something broke when playing the track. #6639
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#6639
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?
What Red version are you using?
3.5.22
Cog name
Audio
Command name
play
What did you expect to happen?
I expected the bot to play music normally by using the play command, using links or titles
What actually happened?
Hello There!, So the title kinda explains it, Whenever I try to play anything it says
"Track Error Something broke when playing the track."I Tried using links and titles to play but it didnt work, however only 1 song was actually played, ironically its the "Never Gonna Give You Up" song.
Extra Info:
I didn't choose to use a database, I chose JSON,
I use a VPS based in Germany, If that makes a difference,
I Setup the Spotify Client ID, Secret and Setup the YouTube API key by following the (audioset) command for both Spotify and YouTube.
The server logs:
If you need me to provide any extra info/logs please tell me.
Thanks!
How can we reproduce this error?
Anything else?
I provided most of the information I had in the
What actually happened?section, as I said if you need any extra information or logs please tell me, Thanks!The
spring.logfile from the Lavalink server contains the information needed to diagnose this kind of issue. Since you are using a managed Lavalink server,[p]audioset logscan be used to easily retrieve the logs.It may be easier to post your logs in the #support channel of our support server at https://discord.gg/red.
this is my spring.log file spring.log
YT frequently changes their cipher signature, which breaks Lavalink. If you are getting that error, it means that the one Youtube is serving you is one Lavalink does not know how to handle. The fix for right now requires running/connecting to an external service to decipher the new sigs. you either host yourself or use a public one. Some instructions can be found here.
https://github.com/lavalink-devs/youtube-source?tab=readme-ov-file#using-a-remote-cipher-server
When/if there is a better solution from upstream, we will implement it.
I tried using the yt-cipher, But whenever I add it to the application.yml (~/.local/share/Red-DiscordBot/data/MyBot/cogs/Audio) , it gets removed as soon as I start the bot again
You must run Lavalink in an unmanaged/external mode in order to have control over the yml file.
Tried to do this, And it still didnt work, my current lavalink.service
and this is the systemd lavalink logs
systemd-lavalink-logs.txt
Update your youtube-source plugin and configure the cipher stuff
Updating and adding the cipher stuff to the application.yml still didnt fix the issue.
However since the issue is not caused by Red bot nor related to it and is purely caused by something within lavalink or youtube-source, I will close the issue.
Thanks for all the help.