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

Music doesn't play through bot. when requested but says the song is active in the /now-playing command #955

Open
2 tasks
sarayuuki opened this issue Jul 18, 2023 · 6 comments
Labels

Comments

@sarayuuki
Copy link

What's happening?
filled in .env. went to google cloud activated youtube data api v3. got api key. but refuses to work. as in /play works but doesnt play audio at all.

Logs
Don't know how to turn on debug mode.


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:Repo Latest
  • Docker (if applicable):
  • OS:
  • Node.js: LTS 18.X
  • ffmpeg: 6.0
@codetheweb
Copy link
Owner

Please fill in the logs as requested. A description of your host machine would also be useful. There's not enough information to help.

@definedlegend
Copy link

definedlegend commented Aug 20, 2023

I'm getting this same issue. I just installed it on my webserver, added it to discord, and have been trying to get it to play audio for the last couple of hours with no luck. I look in the logs for the bot when telling it to play audio and it doesn't show anything in the logs. I even tried adding a port to the docker compose and the forwarded that port on my firewall but it didn't make a difference(mapped to external port 8293 going to internal port 80, as external port 80 is already mapped to another application so I can't map that port). Is there anything special I need to do if I run my webserver behind Nginx Reverse Proxy?

I can run the commands to pull settings for the bot so it communicates. It acts like it is "playing" but no audio actually plays for any Spotify or YouTube request.

I am running it in Docker under Debian 11, Node.JS v16.20.2 as v16.x is recommended. Also running ffmpeg v4.3.6(newest version for Debian 11) . I installed it via the docker compose.

@codetheweb
Copy link
Owner

You don't need to forward any ports. Is it possible the permissions on your Discord guild are preventing Muse from transmitting voice? Does the same Discord bot token work with a different self-hosted music bot?

@definedlegend
Copy link

definedlegend commented Aug 23, 2023 via email

@GrantBirki
Copy link

👋 Hey @definedlegend! I just stumbled across your comment and I'm having the exact same issue as you.

I have the following setup:

  • Linux VPS
  • The bot is running in Docker (via docker-compose)
  • It works fine on my local machine
  • It does not work on my Linux VPS (production)

I use ufw for my Linux firewall and I'm having a hard time following the steps that you took in order to configure my firewall to get this bot to run.

Can you please provide some steps as to what I need to do so that my bot can play music correctly? I would really appreciate it, thank you in advance! ❤️

@GrantBirki
Copy link

GrantBirki commented Dec 3, 2023

Update: It was indeed somewhat related to my cloud provider's network layer firewall. I fixed it and documented what was happening here

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

No branches or pull requests

4 participants