muse icon indicating copy to clipboard operation
muse copied to clipboard

Music Player not working

Open techlvling opened this issue 4 months ago • 13 comments

What's happening? When i try to play frm yt it just stucks and shows this log

Logs

muse-bot | WARNING: @distube/ytdl-core is out of date! Update with "npm install @distube/ytdl-core@latest".
muse-bot | WARNING: Could not parse decipher function.
muse-bot | Stream URLs will be missing.
muse-bot | Please report this issue by uploading the "1754515788058-player-script.js" file on https://github.com/distubejs/ytdl-core/issues/144.
muse-bot | WARNING: Could not parse n transform function.
muse-bot | Please report this issue by uploading the "1754515788088-player-script.js" file on https://github.com/distubejs/ytdl-core/issues/144.

Screenshots If applicable, add screenshots to help explain your problem.

Image

Additional context Add any other context about the problem here.

Runtime I'm running Muse:

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

Versions

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

techlvling avatar Aug 06 '25 21:08 techlvling

Just upgrade ytdl-core to latest.

kuza11 avatar Aug 11 '25 21:08 kuza11

Just upgrade ytdl-core to latest.

Didn't work.

root@6d20d207b19e:/usr/app# npm install @distube/ytdl-core@latest
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/discord.js
npm error   discord.js@"14.11.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer discord.js@"^14.18.0" from [email protected]
npm error node_modules/pagination.djs
npm error   pagination.djs@"^4.0.10" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/discord.js
npm error   peer discord.js@"^14.18.0" from [email protected]
npm error   node_modules/pagination.djs
npm error     pagination.djs@"^4.0.10" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /root/.npm/_logs/2025-08-25T05_40_36_103Z-eresolve-report.txt
npm notice
npm notice New major version of npm available! 10.9.2 -> 11.5.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.5.2
npm notice To update run: npm install -g [email protected]
npm notice
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-08-25T05_40_36_103Z-debug-0.log

ThomasHineXYZ avatar Aug 25 '25 05:08 ThomasHineXYZ

This error has nothing to do with ytdl-core. Because according to package.json: '"discord.js": "14.11.0"' ( While resolving: [email protected] Found: [email protected] node_modules/discord.js discord.js@"14.11.0" from the root project ), but '[email protected]' needs: 'discord.js@"^14.18.0"' ( peer discord.js@"^14.18.0" from [email protected] ) So either downgrade pagination.djs to 4.0.10 or npm install @distube/ytdl-core@latest --legacy-peer-deps. Mine bot works with this unmet peer so far so I didn't downgrade.

kuza11 avatar Aug 25 '25 14:08 kuza11

Having same issue. Using "npm install @distube/ytdl-core@latest --legacy-peer-deps" also broke the docker container and it doesn't start anymore.

Kalidibus avatar Sep 01 '25 02:09 Kalidibus

Here is my package.json which works with the 2.11.1 release. If you use some older release it could be different and upgrading can cause issues of course.

{
  "name": "muse",
  "version": "2.11.1",
  "description": "🎧 a self-hosted Discord music bot that doesn't suck ",
  "repository": "[email protected]:museofficial/muse.git",
  "author": "Max Isom <[email protected]>",
  "license": "MIT",
  "private": true,
  "types": "dts/types",
  "type": "module",
  "engines": {
    "node": ">=18.17.0"
  },
  "files": [
    "src"
  ],
  "scripts": {
    "lint": "eslint \"src/**/*.{ts,tsx}\"",
    "lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
    "typecheck": "tsc --noEmit",
    "test": "npm run lint",
    "start": "npm run env:set-database-url -- tsx src/scripts/migrate-and-start.ts",
    "cache:clear-key-value": "npm run env:set-database-url tsx src/scripts/cache-clear-key-value.ts",
    "dev": "npm run env:set-database-url -- tsx watch src/scripts/start.ts",
    "migrations:generate": "npm run prisma:with-env migrate dev",
    "migrations:run": "npm run prisma:with-env migrate deploy",
    "prisma:with-env": "npm run env:set-database-url prisma",
    "prisma:generate": "prisma generate",
    "env:set-database-url": "tsx src/scripts/run-with-database-url.ts",
    "release": "release-it",
    "build": "tsc",
    "postinstall": "patch-package"
  },
  "devDependencies": {
    "@release-it/keep-a-changelog": "^2.3.0",
    "@types/bluebird": "^3.5.35",
    "@types/debug": "^4.1.5",
    "@types/fluent-ffmpeg": "^2.1.17",
    "@types/fs-capacitor": "^2.0.0",
    "@types/ms": "0.7.34",
    "@types/node": "^17.0.0",
    "@types/node-emoji": "^1.8.1",
    "@types/spotify-web-api-node": "^5.0.2",
    "@types/validator": "^13.12.2",
    "@types/ws": "8.5.4",
    "@typescript-eslint/eslint-plugin": "^4.31.1",
    "@typescript-eslint/parser": "^4.31.1",
    "eslint": "^7.32.0",
    "eslint-config-xo": "^0.39.0",
    "eslint-config-xo-typescript": "^0.44.0",
    "eslint-plugin-import": "2.29.1",
    "husky": "^4.3.8",
    "prisma": "5.21.1",
    "release-it": "^14.11.8",
    "type-fest": "^2.12.0",
    "typescript": "^4.6.4"
  },
  "eslintConfig": {
    "extends": [
      "xo",
      "xo-typescript/space"
    ],
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
      "project": "./tsconfig.json"
    },
    "plugins": [
      "import"
    ],
    "rules": {
      "new-cap": "off",
      "@typescript-eslint/no-unused-vars": "off",
      "@typescript-eslint/no-unused-vars-experimental": "error",
      "@typescript-eslint/prefer-readonly-parameter-types": "off",
      "@typescript-eslint/no-implicit-any-catch": "off",
      "import/extensions": [
        "error",
        "ignorePackages"
      ]
    }
  },
  "husky": {
    "hooks": {
      "pre-commit": "npm test"
    }
  },
  "dependencies": {
    "@discordjs/builders": "1.1.0",
    "@discordjs/opus": "^0.10.0",
    "@discordjs/rest": "1.0.1",
    "@discordjs/voice": "0.18.0",
    "@distube/ytdl-core": "^4.16.12",
    "@distube/ytsr": "^2.0.4",
    "@prisma/client": "4.16.0",
    "@types/libsodium-wrappers": "^0.7.9",
    "array-shuffle": "^3.0.0",
    "debug": "^4.3.3",
    "delay": "^5.0.0",
    "discord-api-types": "0.32.1",
    "discord.js": "14.11.0",
    "dotenv": "^16.4.5",
    "execa": "^6.1.0",
    "fluent-ffmpeg": "^2.1.3",
    "fs-capacitor": "^7.0.1",
    "get-youtube-id": "^1.0.1",
    "got": "^12.0.2",
    "hasha": "^5.2.2",
    "inversify": "^6.0.1",
    "iso8601-duration": "^2.1.2",
    "libsodium-wrappers": "^0.7.9",
    "make-dir": "^3.1.0",
    "node-emoji": "^1.10.0",
    "nodesplash": "^0.1.1",
    "ora": "^8.1.0",
    "p-event": "^5.0.1",
    "p-limit": "^6.1.0",
    "p-queue": "8.1.0",
    "p-retry": "6.2.0",
    "pagination.djs": "^4.0.10",
    "parse-duration": "1.0.2",
    "patch-package": "^8.0.0",
    "postinstall-postinstall": "^2.1.0",
    "read-pkg": "7.1.0",
    "reflect-metadata": "^0.2.2",
    "sponsorblock-api": "^0.2.4",
    "spotify-uri": "^3.0.2",
    "spotify-web-api-node": "^5.0.2",
    "sync-fetch": "^0.3.1",
    "tsx": "3.8.2",
    "xbytes": "^1.7.0",
    "ytsr": "^3.8.4"
  },
  "resolutions": {
    "@types/ws": "8.5.4"
  },
  "packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}

\muse> docker compose up -d --build [+] Building 168.8s (22/22) FINISHED docker:desktop-linux => [muse2 internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.67kB 0.0s => [muse2 internal] load metadata for docker.io/library/node:22-bookworm-slim 1.6s => [muse2 internal] load .dockerignore 0.0s => => transferring context: 89B 0.0s => [muse2 internal] load build context 4.1s => => transferring context: 108.60MB 4.1s => [muse2 base 1/2] FROM docker.io/library/node:22-bookworm-slim@sha256:0ae9e80c8c7e7a8fea5bc8e8762e4fd09a7a68c2 5.6s => => resolve docker.io/library/node:22-bookworm-slim@sha256:0ae9e80c8c7e7a8fea5bc8e8762e4fd09a7a68c251abf8cf44e 0.0s => => sha256:4e06c1a47e17a8b62c4f581dfdec846741e13dbf17aacd62f8afa6d668d3da31 1.71MB / 1.71MB 0.4s => => sha256:2403c8b76caca8d2d0a53ca1ee2475bbaece39b293a49cfba277b01186986bb8 450B / 450B 0.4s => => sha256:291fc5dbbd39fe685232627c96a45e68110c8aa46cb7b065f3a72e72cb22c31d 3.31kB / 3.31kB 0.5s => => sha256:b1badc6e50664185acfaa0ca255d8076061c2a9d881cecaaad281ae11af000ce 28.23MB / 28.23MB 2.3s => => sha256:2561d51a4c67aeb839775fbbf9f06e9b8f865499c3974f3b15d8748dcb0760a1 49.01MB / 49.01MB 3.0s => => extracting sha256:b1badc6e50664185acfaa0ca255d8076061c2a9d881cecaaad281ae11af000ce 1.6s => => extracting sha256:291fc5dbbd39fe685232627c96a45e68110c8aa46cb7b065f3a72e72cb22c31d 0.0s => => extracting sha256:2561d51a4c67aeb839775fbbf9f06e9b8f865499c3974f3b15d8748dcb0760a1 1.2s => => extracting sha256:4e06c1a47e17a8b62c4f581dfdec846741e13dbf17aacd62f8afa6d668d3da31 0.1s => => extracting sha256:2403c8b76caca8d2d0a53ca1ee2475bbaece39b293a49cfba277b01186986bb8 0.0s => [muse2 base 2/2] RUN apt-get update && apt-get install --no-install-recommends -y ffmpeg tini 47.4s => [muse2 dependencies 1/7] WORKDIR /usr/app 0.1s => [muse2 dependencies 2/7] RUN apt-get update && apt-get install --no-install-recommends -y python3 18.3s => [muse2 dependencies 3/7] COPY package.json . 0.1s => [muse2 dependencies 4/7] COPY yarn.lock . 0.1s => [muse2 dependencies 5/7] RUN yarn install --prod 51.8s => [muse2 dependencies 6/7] RUN cp -R node_modules /usr/app/prod_node_modules 2.5s => [muse2 dependencies 7/7] RUN yarn install 4.2s => [muse2 builder 1/3] COPY . . 0.4s => [muse2 builder 2/3] RUN yarn prisma generate 2.3s => [muse2 builder 3/3] RUN yarn build 2.9s => [muse2 runner 2/5] COPY --from=builder /usr/app/dist ./dist 0.1s => [muse2 runner 3/5] COPY --from=dependencies /usr/app/prod_node_modules node_modules 6.3s => [muse2 runner 4/5] COPY --from=builder /usr/app/node_modules/.prisma/client ./node_modules/.prisma/client 0.3s => [muse2 runner 5/5] COPY . . 0.6s => [muse2] exporting to image 22.6s => => exporting layers 16.2s => => exporting manifest sha256:3d45dfb1798118e3ab666a9f1d45c1aca87af260275f7eaba28978a4092b8b86 0.0s => => exporting config sha256:c3bc6b756472b039d3f6af34a68b4bf72dc6c771f6411c18c4592b683d09feca 0.0s => => exporting attestation manifest sha256:a8c759f178757f5bc3202c27d762eb8615f9b74f41a4da30878b0cf8b190cb4d 0.0s => => exporting manifest list sha256:a8a93697ca14414763fd8f45756b9048810a08fdacf1d665f429ffae53800321 0.0s => => naming to docker.io/library/muse-muse2:latest 0.0s => => unpacking to docker.io/library/muse-muse2:latest 6.2s => [muse2] resolving provenance for metadata file 0.0s [+] Running 2/2 ✔ muse Built 0.0s ✔ Container muse Started 2.6s

kuza11 avatar Sep 01 '25 20:09 kuza11

For example according to release 2.11.0 changelog

Release v2.11.0 Updated ytdl-core to 4.16.5 distubejs/[email protected] which includes https://github.com/distubejs/ytdl-core/commit/1f57d78 fixing the sig parsing ytdl-core dropped node 18 support https://github.com/distubejs/ytdl-core/commit/60f0ab1 so updated to latest Node LTS 22 Updated to @discordjs/opus v0.10.0 for Node 22 support Updated to @discordjs/voice v0.18.0 to remove support for depricated encryption https://github.com/discordjs/discord.js/releases/tag/%40discordjs%2Fvoice%400.18.0

releases prior to 2.11.0 used node 18 and ytdl-core dropped support for it, so upgrading it could cause your container to not start. Moreover distubejs/ytdl-core was archived on Aug 16, 2025.

kuza11 avatar Sep 01 '25 20:09 kuza11

same here, is broken. It will join the voice chat but nothing plays and leaves

jiwidi avatar Sep 10 '25 09:09 jiwidi

I'm also having the same problem.

Pohaku08 avatar Sep 11 '25 06:09 Pohaku08

Same here, hoping for a fix soon!

candroid-man avatar Sep 14 '25 22:09 candroid-man

Same issue here, bot joins but never starts playing anything. Using PR 1278 by BigFatherJesus fixes the issue, hopefully we can get those changes pushed to master at some point.

Running version 2.11.1 built on 11/4/2024 (commit 716d6d9f4f2cd1a6872e463e9877203a259478a3)

  • Applying database migrations... ✔ Database migrations applied.
  • 📡 connecting to Discord... ✔ Ready! Invite the bot with CENSORED WARNING: @distube/ytdl-core is out of date! Update with "npm install @distube/ytdl-core@latest". WARNING: Could not parse decipher function. Stream URLs will be missing. Please report this issue by uploading the "1758238981698-player-script.js" file on https://github.com/distubejs/ytdl-core/issues/144. WARNING: Could not parse n transform function. Please report this issue by uploading the "1758238981706-player-script.js" file on https://github.com/distubejs/ytdl-core/issues/144.

dube920 avatar Sep 18 '25 23:09 dube920

Same issue here, bot joins but never starts playing anything. Using PR 1278 by BigFatherJesus fixes the issue, hopefully we can get those changes pushed to master at some point.

Running version 2.11.1 built on 11/4/2024 (commit 716d6d9)

  • Applying database migrations... ✔ Database migrations applied.
  • 📡 connecting to Discord... ✔ Ready! Invite the bot with CENSORED WARNING: @distube/ytdl-core is out of date! Update with "npm install @distube/ytdl-core@latest". WARNING: Could not parse decipher function. Stream URLs will be missing. Please report this issue by uploading the "1758238981698-player-script.js" file on WARNING: Could not parse *** function distubejs/ytdl-core#144. WARNING: Could not parse n transform function. Please report this issue by uploading the "1758238981706-player-script.js" file on WARNING: Could not parse *** function distubejs/ytdl-core#144.

even using PR 1278 the issue persists.

WARNING: Could not parse decipher function. Stream URLs will be missing. Please report this issue by uploading the "1759439926968-player-script.js" file on https://github.com/distubejs/ytdl-core/issues/144. WARNING: Could not parse n transform function. Please report this issue by uploading the "1759439926979-player-script.js" file on https://github.com/distubejs/ytdl-core/issues/144.

trevorgeiger avatar Oct 02 '25 21:10 trevorgeiger

After switching to PR 1278, I am still unable to play any music. The queue stays empty, even though it finds the song (and thus connecting to the internet).

I do /play maybe so kid cudi, it responds with u betcha, Kid Cudi - Maybe So (Visualizer) added to the queue

And then you do /queue, you will see that ope: queue is empty

/stop says ope: not currently playing

candroid-man avatar Nov 13 '25 09:11 candroid-man

Hello @candroid-man - after searching some closed issues, tried pr-1256 and it seems to work for me (Had the exact same issue as you.) You should give it a shot.

IssAero avatar Dec 09 '25 11:12 IssAero