Track Error Something broke when playing the track. #6639

Closed
opened 2025-12-04 18:26:39 +01:00 by Tucano06 · 8 comments
Tucano06 commented 2025-12-04 18:26:39 +01:00 (Migrated from github.com)

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:

[16:53:47] INFO     [discord.client] logging in using static token
[16:53:48] INFO     [red] Loading packages...
           INFO     [red] Loaded packages: audio
[16:53:49] INFO     [discord.gateway] Shard ID 0 has connected to Gateway (Session ID: [HIDDEN]).
           INFO     [red] Connected to Discord. Getting ready...

______         _           ______ _                       _  ______       _
| ___ \       | |          |  _  (_)                     | | | ___ \     | |
| |_/ /___  __| |  ______  | | | |_ ___  ___ ___  _ __ __| | | |_/ / ___ | |_
|    // _ \/ _` | |______| | | | | / __|/ __/ _ \| '__/ _` | | ___ \/ _ \| __|
| |\ \  __/ (_| |          | |/ /| \__ \ (_| (_) | | | (_| | | |_/ / (_) | |_
\_| \_\___|\__,_|          |___/ |_|___/\___\___/|_|  \__,_| \____/ \___/ \__|

╭─────────── Eregion ───────────╮ ╭────────────────────╮
│  Prefixes           │ ?       │ │  Shards       │ 1  │
│  Language           │ en-US   │ │  Servers      │ 1  │
│  Red version        │ 3.5.22  │ │  Unique Users │ 2  │
│  Discord.py version │ 2.6.3   │ ╰────────────────────╯
│  Storage type       │ JSON    │                       
╰───────────────────────────────╯                       
Loaded 3 cogs with 68 commands

Invite URL: [HIDDEN]
[16:53:51] INFO     [red.Audio.manager] Managed Lavalink node startup command: /usr/bin/java -Xms64M -Xmx3G -jar /home/debian/.local/share/Red-DiscordBot/data/Eregion/cogs/Audio/Lavalink.jar
           INFO     [red.Audio.manager] Managed Lavalink node started. PID: 5009
           INFO     [red.Audio.manager] Waiting for Managed Lavalink node to be ready
[16:53:57] INFO     [red.Audio.manager] Managed Lavalink node is ready to receive requests.
           INFO     [red.Audio.WS.LLNode] Lavalink WS connecting to ws://localhost:2333 with headers {'Authorization': 'youshallnotpass', 'User-Id': '[HIDDEN]', 'Num-Shards': '1', 'Client-Name': 'Red-Lavalink/0.11.0', 'Resume-Key': 'Red-Core-Audio-[HIDDEN]'}
           INFO     [red.Audio.WS.LLNode] Lavalink WS connected to ws://localhost:2333
[17:00:11] INFO     [discord.gateway] Shard ID 0 has successfully RESUMED session [HIDDEN].
[17:06:14] INFO     [discord.gateway] Shard ID 0 has successfully RESUMED session [HIDDEN].
[17:08:54] INFO     [discord.gateway] Shard ID 0 has successfully RESUMED session [HIDDEN].

If you need me to provide any extra info/logs please tell me.
Thanks!

How can we reproduce this error?

  1. Setup the bot
  2. Chose JSON instead of Postgres
  3. Load audio
  4. play a song

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!

### 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: ``` [16:53:47] INFO [discord.client] logging in using static token [16:53:48] INFO [red] Loading packages... INFO [red] Loaded packages: audio [16:53:49] INFO [discord.gateway] Shard ID 0 has connected to Gateway (Session ID: [HIDDEN]). INFO [red] Connected to Discord. Getting ready... ______ _ ______ _ _ ______ _ | ___ \ | | | _ (_) | | | ___ \ | | | |_/ /___ __| | ______ | | | |_ ___ ___ ___ _ __ __| | | |_/ / ___ | |_ | // _ \/ _` | |______| | | | | / __|/ __/ _ \| '__/ _` | | ___ \/ _ \| __| | |\ \ __/ (_| | | |/ /| \__ \ (_| (_) | | | (_| | | |_/ / (_) | |_ \_| \_\___|\__,_| |___/ |_|___/\___\___/|_| \__,_| \____/ \___/ \__| ╭─────────── Eregion ───────────╮ ╭────────────────────╮ │ Prefixes │ ? │ │ Shards │ 1 │ │ Language │ en-US │ │ Servers │ 1 │ │ Red version │ 3.5.22 │ │ Unique Users │ 2 │ │ Discord.py version │ 2.6.3 │ ╰────────────────────╯ │ Storage type │ JSON │ ╰───────────────────────────────╯ Loaded 3 cogs with 68 commands Invite URL: [HIDDEN] [16:53:51] INFO [red.Audio.manager] Managed Lavalink node startup command: /usr/bin/java -Xms64M -Xmx3G -jar /home/debian/.local/share/Red-DiscordBot/data/Eregion/cogs/Audio/Lavalink.jar INFO [red.Audio.manager] Managed Lavalink node started. PID: 5009 INFO [red.Audio.manager] Waiting for Managed Lavalink node to be ready [16:53:57] INFO [red.Audio.manager] Managed Lavalink node is ready to receive requests. INFO [red.Audio.WS.LLNode] Lavalink WS connecting to ws://localhost:2333 with headers {'Authorization': 'youshallnotpass', 'User-Id': '[HIDDEN]', 'Num-Shards': '1', 'Client-Name': 'Red-Lavalink/0.11.0', 'Resume-Key': 'Red-Core-Audio-[HIDDEN]'} INFO [red.Audio.WS.LLNode] Lavalink WS connected to ws://localhost:2333 [17:00:11] INFO [discord.gateway] Shard ID 0 has successfully RESUMED session [HIDDEN]. [17:06:14] INFO [discord.gateway] Shard ID 0 has successfully RESUMED session [HIDDEN]. [17:08:54] INFO [discord.gateway] Shard ID 0 has successfully RESUMED session [HIDDEN]. ``` If you need me to provide any extra info/logs please tell me. Thanks! ### How can we reproduce this error? 1. Setup the bot 2. Chose JSON instead of Postgres 3. Load audio 4. play a song ### 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!
Flame442 commented 2025-12-04 19:05:55 +01:00 (Migrated from github.com)

The spring.log file from the Lavalink server contains the information needed to diagnose this kind of issue. Since you are using a managed Lavalink server, [p]audioset logs can 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.

The `spring.log` file from the Lavalink server contains the information needed to diagnose this kind of issue. Since you are using a managed Lavalink server, `[p]audioset logs` can 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.
Tucano06 commented 2025-12-04 20:35:14 +01:00 (Migrated from github.com)

The spring.log file from the Lavalink server contains the information needed to diagnose this kind of issue. Since you are using a managed Lavalink server, [p]audioset logs can 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

> The `spring.log` file from the Lavalink server contains the information needed to diagnose this kind of issue. Since you are using a managed Lavalink server, `[p]audioset logs` can 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](https://github.com/user-attachments/files/23942048/spring.log)
Flame442 commented 2025-12-04 23:27:43 +01:00 (Migrated from github.com)

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.

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.
Tucano06 commented 2025-12-05 12:59:31 +01:00 (Migrated from github.com)

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

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
yamikaitou commented 2025-12-05 13:01:35 +01:00 (Migrated from github.com)

You must run Lavalink in an unmanaged/external mode in order to have control over the yml file.

You must run Lavalink in an unmanaged/external mode in order to have control over the yml file.
Tucano06 commented 2025-12-05 13:35:09 +01:00 (Migrated from github.com)

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

[Unit]
Description=lavalink
After=multi-user.target

[Service]
ExecStart=/usr/bin/java -Djdk.tls.client.protocols=TLSv1.2 -jar /home/debian/.local/share/Red-DiscordBot/data/Eregion/cogs/Audio/Lavalink.jar
WorkingDirectory=/home/debian/.local/share/Red-DiscordBot/data/Eregion/cogs/Audio/
User=debian
Group=debian
#ExecStartPre=/bin/bash <Lavalink path>/auto_update.sh # Comment this line out if you did not create the auto_update.sh
Type=idle
Restart=always
RestartSec=15

[Install]
WantedBy=multi-user.target

and this is the systemd lavalink logs

systemd-lavalink-logs.txt

> 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 ``` [Unit] Description=lavalink After=multi-user.target [Service] ExecStart=/usr/bin/java -Djdk.tls.client.protocols=TLSv1.2 -jar /home/debian/.local/share/Red-DiscordBot/data/Eregion/cogs/Audio/Lavalink.jar WorkingDirectory=/home/debian/.local/share/Red-DiscordBot/data/Eregion/cogs/Audio/ User=debian Group=debian #ExecStartPre=/bin/bash <Lavalink path>/auto_update.sh # Comment this line out if you did not create the auto_update.sh Type=idle Restart=always RestartSec=15 [Install] WantedBy=multi-user.target ``` and this is the systemd lavalink logs [systemd-lavalink-logs.txt](https://github.com/user-attachments/files/23961270/systemd-lavalink-logs.txt)
yamikaitou commented 2025-12-05 14:00:42 +01:00 (Migrated from github.com)

Update your youtube-source plugin and configure the cipher stuff

Update your youtube-source plugin and configure the cipher stuff
Tucano06 commented 2025-12-05 16:12:09 +01:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#6639
No description provided.