Bot joins, sends response embed, doesnt play (not even an error), disconnects
What's happening? When I do /play and query, it makes the bot join the voice channel, then it also sends the embed correctly, but in the queue it shows nothing, and after a while it makes the bot leave
Logs
root@ns111808:~/muse# npm run start
> [email protected] start
> npm run env:set-database-url -- tsx src/scripts/migrate-and-start.ts
> [email protected] env:set-database-url
> tsx src/scripts/run-with-database-url.ts tsx src/scripts/migrate-and-start.ts
(node:4165485) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///root/muse/node_modules/tsx/dist/loader.js", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:4165508) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///root/muse/node_modules/tsx/dist/loader.js", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
========================================
========================================
================= muse =================
========================================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
========================================
Running version 2.10.0 built on unknown date (commit unknown)
🔧 Need help? https://github.com/codetheweb/muse/discussions/new
🐛 Bug? https://github.com/codetheweb/muse/issues/new
✨ New feature? https://github.com/codetheweb/muse/issues/new
☕ Discussion? https://github.com/codetheweb/muse/discussions/new
💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb
✔ Database migrations applied.
✔ Ready! Invite the bot with https://discordapp.com/oauth2/authorize?client_id=709473942569484289&scope=bot%20applications.commands&permissions=36700160
(node:4165508) TimeoutNegativeWarning: -13 is a negative number.
Timeout duration was set to 1.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Runtime I'm running Muse:
- [*] Directly from the cloned repository
- [ ] Inside a Docker container
- [ ] Something else (please elaborate)
Versions
- Muse: newest
- Docker (if applicable):
- OS: Debian
- Node.js: (if running outside the Docker container) newest
- ffmpeg: (if running outside the Docker container, 4.1 or later is required) newest
Having similar issues, here is my log
> [email protected] start
> npm run env:set-database-url -- tsx src/scripts/migrate-and-start.ts
> [email protected] env:set-database-url
> tsx src/scripts/run-with-database-url.ts tsx src/scripts/migrate-and-start.ts
(node:18804) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///C%3A/*/Discord/Bots/muse/node_modules/tsx/dist/loader.js", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:20792) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///C%3A/*/Discord/Bots/muse/node_modules/tsx/dist/loader.js", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
========================================
========================================
================= muse =================
========================================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
========================================
Running version 2.10.0 built on unknown date (commit unknown)
🔧 Need help? https://github.com/codetheweb/muse/discussions/new
🐛 Bug? https://github.com/codetheweb/muse/issues/new
✨ New feature? https://github.com/codetheweb/muse/issues/new
☕ Discussion? https://github.com/codetheweb/muse/discussions/new
💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb
√ Database migrations applied.
√ Ready! Invite the bot with *****
Muse: newest
OS: Windows Server 2019
Node.js: newest
ffmpeg: newest
I am having the same, nodejs 20 on debian
I'm having the same issue. Running in Docker, manually updated the ytdl-core to latest. Only happens with SOME YT videos. Others play as expected. Nothing in the logs. Had to disable sponsorblock to get anything to play.
Same issue, sometimes it will play but other times it just joins and doesn't play anything
I'm having the same issue, bot joins, doesn't play anything, and quits a few seconds later. Was working up until a week or so ago fine, any ideas?
having the same issue, bot has been broken for months - would literally pay money for a fix
I've also found interesting behavior. The bot will not play music itself, probably because of warning shown on a screen above.
yet, if we play some stream - it will be totally fine. I am not sure how youtube api is working, probbly gonna check these days to see if it's related to youtube logic, or techical issue.
fix #1196
same issue
Stop using the newest version of ffmpeg. muse only supports versions 5.0 and lower, ideally 4.2. If one old version doesn't work for you, try another version:
https://github.com/GyanD/codexffmpeg/releases?page=2
I GOT IT TO PLAY! (COPY)
I went and gone through my home PC for any old codex's I had, now I had a copy of ffmpeg from 2021 for some old copies of my teamspeak and audacity files with these .exe files, after that I made a new folder and inputted all the usual install scripts but did a full upgrade with forcing any and all to upgrade, after doing so it worked!
PS C:\Users\%USERNAME%\Documents\servers\discord\bots\muse> npm install @distube/ytdl-core@latest
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: '[email protected]',
npm warn EBADENGINE required: { node: '^20.9.0 || >=22.0.0' },
npm warn EBADENGINE current: { node: 'v18.20.6', npm: '10.8.2' }
npm warn EBADENGINE }
changed 1 package, and audited 725 packages in 4s
235 packages are looking for funding
run `npm fund` for details
3 vulnerabilities (2 moderate, 1 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
PS C:\Users\%USERNAME%\Documents\servers\discord\bots\muse> npm audit fix --force
npm warn using --force Recommended protections disabled.
npm warn audit Updating @discordjs/opus to 0.10.0, which is a SemVer major change.
added 2 packages, removed 1 package, changed 7 packages, and audited 726 packages in 11s
235 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
"ffmpeg version n4.4-78-g031c0cb0b4-20210718 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10-win32 (GCC) 20210408"
I then re-upgraded the ffmpeg back to the latest copy I had and it still worked! My only guess was something to do with the npm modules? But either way I have it all working now :D
Update:
I have done further experiments, the 2021 version of ffmpeg I have works better than the latest
Update:
I have done further experiments, the 2021 version of ffmpeg I have works better than the latest
I'm so happy for you! Now do you want to share how the rest of us are supposed to obtain ffmpeg from 2021?
Update: I have done further experiments, the 2021 version of ffmpeg I have works better than the latest
I'm so happy for you! Now do you want to share how the rest of us are supposed to obtain ffmpeg from 2021?
I don't think I am allowed to redistribute the software (would need to check the ffmpeg terms and conditions), but also if I handed out an .exe to everyone here, you sure this would go down well?
Here is a link to the archives which "4.1" looks to be the closest to the version I had: https://ffmpeg.org/olddownload.html
"ffmpeg version n4.4-78-g031c0cb0b4-20210718 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10-win32 (GCC) 20210408"
im having this issue with the docker version. ffmpeg is packaged in right