Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot joins, sends response embed, doesnt play (not even an error), disconnects #1173

Open
2 tasks
timurko-uwu opened this issue Dec 21, 2024 · 11 comments · May be fixed by #1180
Open
2 tasks

Bot joins, sends response embed, doesnt play (not even an error), disconnects #1173

timurko-uwu opened this issue Dec 21, 2024 · 11 comments · May be fixed by #1180
Labels

Comments

@timurko-uwu
Copy link

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
@SparksSkywere
Copy link

SparksSkywere commented Dec 27, 2024

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

image
OS: Windows Server 2019
image
Node.js: newest
image
ffmpeg: newest
image

@QuintenQVD0
Copy link

I am having the same, nodejs 20 on debian

@Codixer Codixer linked a pull request Dec 29, 2024 that will close this issue
1 task
@jtgamble
Copy link

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.

@thehackedone
Copy link

Same issue, sometimes it will play but other times it just joins and doesn't play anything

@b1uey
Copy link

b1uey commented Jan 22, 2025

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?

Image

@xxtensazenxx
Copy link

having the same issue, bot has been broken for months - would literally pay money for a fix

@Voroshilkin
Copy link

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.

@SL33PiNg
Copy link

fix #1196

@whytf
Copy link

whytf commented Jan 25, 2025

same issue

@PatPeter
Copy link

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

@SparksSkywere
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.