muse icon indicating copy to clipboard operation
muse copied to clipboard

Muse does not function

Open slaapkopamy opened this issue 7 months ago • 18 comments

What's happening? I recently setup a clean installation of muse using docker compose file pulling the latest version (2.11.1), I inserted the api keys for youtube and spotify in the bot with ofcourse my bot token. started the bot up and invited the bot in my server. now i wanted to test the functionality of the bot by adding a spotify url in the play command to findout it's getting errored with ope: song not found, tried with a different url.. same thing. tried with just searching... guess what... same thing... if i try with a youtube url i get 403 forbidden (probably something on google side since i cant access the api key on my pc either)

Logs For some reason, there are no logs being produced in the docker container. if i run docker compose logs -f the only last thing i see is the discord invite url for the bot.

Screenshots discord: https://slaapkopamy.com/sc/images/lJoRssyXbJ8FXjBr8SY4z.png docker: https://slaapkopamy.com/sc/images/Y3NrZ4SoFvrCgdysphmkC.png

Additional context Add any other context about the problem here.

Runtime I'm running Muse:

  • [ ] Directly from the cloned repository
  • [x ] Inside a Docker container
  • [ ] Something else (please elaborate)

Versions

  • Muse: 2.11.1
  • Docker (if applicable): 28.0.4 build v8034c0
  • OS: ubuntu 20.4.6 lts
  • Node.js: (if running outside the Docker container)
  • ffmpeg: (if running outside the Docker container, 4.1 or later is required)

slaapkopamy avatar Apr 27 '25 12:04 slaapkopamy

try #1255

melzyy avatar Apr 28 '25 04:04 melzyy

try #1255

Sadly tried and same issue, also the docker container does not produce any logs

slaapkopamy avatar Apr 29 '25 09:04 slaapkopamy

Got the same issue. Looks like YT changed something, again...

a-sitarz avatar Apr 29 '25 10:04 a-sitarz

Got the same issue. Looks like YT changed something, again...

maybe but i also have an issue with spotify which is not liked with google if i'm not wrong

slaapkopamy avatar Apr 29 '25 11:04 slaapkopamy

Are we done for? Do any self hosted music bots still work?

nealhead avatar May 01 '25 02:05 nealhead

Dirty fix while waiting for this pull request to be merged.

If you're using Docker, mount /usr/ as a volume:

services:
  muse:
    image: 'ghcr.io/museofficial/muse:pr-1256'
    restart: always
    volumes:
      - 'bot-data-muse:/data'
      - 'bot-datanode-muse:/usr/'
    environment:
      - DISCORD_TOKEN=xxx
      - YOUTUBE_API_KEY=xxx
      - SPOTIFY_CLIENT_ID=xxx
      - SPOTIFY_CLIENT_SECRET=xxx
volumes:
  bot-data-muse: null
  bot-datanode-muse: null

Next, edit /app/node_modules/@distube/ytdl-core/lib/sig.js inside the container and replace its contents with the code from:

https://raw.githubusercontent.com/distubejs/ytdl-core/ba7516dd4f5ad125f9ee8a41ebea486442533f82/lib/sig.js

Save the file, restart your container, and it should work.

JordiBrisbois avatar May 01 '25 02:05 JordiBrisbois

ghcr.io/museofficial/muse:pr-1256 can be used without the dirty fixed as of now ^_^

rexyness avatar May 02 '25 00:05 rexyness

ghcr.io/museofficial/muse:pr-1256 can be used without the dirty fixed as of now ^_^

working for me

ChrisTecha avatar May 02 '25 19:05 ChrisTecha

ghcr.io/museofficial/muse:pr-1256 can be used without the dirty fixed as of now ^_^

Working for me for Youtube search results/links. Spotify playlist links gives me a no songs found error. Single Spotify links works.

Maikel1990 avatar May 05 '25 08:05 Maikel1990

@Maikel1990 , that seems like a separate issue - I just loaded a custom spotify playlist with no issues using branch pr-1256.

Image

DejaVuMan avatar May 15 '25 03:05 DejaVuMan

@slaapkopamy Since the fix has been merged, you should close this issue unless you can still reproduce the issue in latest version

Mubelotix avatar May 22 '25 13:05 Mubelotix

@slaapkopamy Since the fix has been merged, you should close this issue unless you can still reproduce the issue in latest version

I still have the same issue,

pulled the pr1261 image. rechecked the api keys and secrets if they are still valid (they are). loaded up the bot via docker compose up -d, checked after that the logs to see if there are any errors (none). did /play in the discord with a random query, got the same error as explained earlier. tried with a spotify url, same issue and tried with youtube url, same issue.

If my server ip is blocked I should receive a different error right? then only ope 403 on youtube and ope on spotify?

slaapkopamy avatar May 22 '25 13:05 slaapkopamy

Maybe you could try running it with yarn outside of docker after cloning the repository. Either it would work, or that would give us logs with more information

Mubelotix avatar May 22 '25 14:05 Mubelotix

Maybe you could try running it with yarn outside of docker after cloning the repository. Either it would work, or that would give us logs with more information

I can use nodejs 24 for it? Currently on the machine 14 is installed

slaapkopamy avatar May 22 '25 16:05 slaapkopamy

Running latest still shows the same issue (stream error) but using pr-1256 solves the issue, has pr-1256 been updated since being merged??

Happyllama25 avatar May 29 '25 05:05 Happyllama25

@slaapkopamy Since the fix has been merged, you should close this issue unless you can still reproduce the issue in latest version

Has it been merged? I cannot find evidence of this happening

https://github.com/museofficial/muse/releases/tag/v2.11.0 v2.11.0 updated to ytdl-core to 4.16.5 but muse remains broken

https://github.com/museofficial/muse/pull/1256 pr-1256 bumps it up to 4.16.9 making muse usable

Happyllama25 avatar May 29 '25 05:05 Happyllama25

Running latest still shows the same issue (stream error) but using pr-1256 solves the issue, has pr-1256 been updated since being merged??

I can confirm that latest release still has the issue but pr-1256 is fixed.

carlosomarpabon avatar Aug 08 '25 19:08 carlosomarpabon

https://github.com/museofficial/muse/pull/1256 is also broken for me now, unfortunately. Since https://github.com/distubejs/ytdl-core is no longer being maintained, there's no fix in sight - the project should really be switched over to https://github.com/LuanRT/YouTube.js.

flo333 avatar Aug 23 '25 12:08 flo333