Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Crashes when Trying to Play Music Docker #29

Open
k37chup opened this issue May 26, 2022 · 2 comments
Open

Crashes when Trying to Play Music Docker #29

k37chup opened this issue May 26, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@k37chup
Copy link

k37chup commented May 26, 2022

I have A raspberry Pi 3B running this setup. If i run it via NPM it runs and wokrs fine but Ultimately i would like to run this via Docker so i don't have to keep a Session open. I'm Not great at docker but again running it via npm outside of docker works fine .. then i build the docker and i get the below. Thanks!

--------- Dodong is ready! ---------
/bot/node_modules/discord-player/node_modules/prism-media/src/util/loader.js:12
throw new Error(errorLog.join('\n'));
^

Error: Error: Cannot find module '/bot/node_modules/discord-player/node_modules/ @discordjs/opus/prebuild/node-v93-napi-v3-linux-arm-musl-1.2.2/opus.node'
Require stack:

  • /bot/node_modules/discord-player/node_modules/@discordjs/opus/lib/index.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/util/loader.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/opus/Opus.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/opus/index.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/index.js
  • /bot/node_modules/discord-player/dist/smoothVolume.js
  • /bot/node_modules/discord-player/dist/index.js
  • /bot/structures/client.js
  • /bot/index.js
    Error: Cannot find module 'node-opus'
    Require stack:
  • /bot/node_modules/discord-player/node_modules/prism-media/src/util/loader.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/opus/Opus.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/opus/index.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/index.js
  • /bot/node_modules/discord-player/dist/smoothVolume.js
  • /bot/node_modules/discord-player/dist/index.js
  • /bot/structures/client.js
  • /bot/index.js
    Error: Cannot find module 'opusscript'
    Require stack:
  • /bot/node_modules/discord-player/node_modules/prism-media/src/util/loader.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/opus/Opus.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/opus/index.js
  • /bot/node_modules/discord-player/node_modules/prism-media/src/index.js
  • /bot/node_modules/discord-player/dist/smoothVolume.js
  • /bot/node_modules/discord-player/dist/index.js
  • /bot/structures/client.js
  • /bot/index.js
    at Object.loader [as require] (/bot/node_modules/discord-player/node_modules /prism-media/src/util/loader.js:12:9)
    at loadOpus (/bot/node_modules/discord-player/node_modules/prism-media/src/o pus/Opus.js:17:17)
    at new OpusStream (/bot/node_modules/discord-player/node_modules/prism-media /src/opus/Opus.js:46:10)
    at new Encoder (/bot/node_modules/discord-player/node_modules/prism-media/sr c/opus/Opus.js:149:5)
    at Object.transformer (/bot/node_modules/discord-player/node_modules/@discor djs/voice/dist/index.js:8:13311)
    at /bot/node_modules/discord-player/node_modules/@discordjs/voice/dist/index .js:8:16735
    at Array.map ()
    at We (/bot/node_modules/discord-player/node_modules/@discordjs/voice/dist/i ndex.js:8:16726)
    at StreamDispatcher.createStream (/bot/node_modules/discord-player/dist/Voic eInterface/StreamDispatcher.js:116:62)
    at Queue. (/bot/node_modules/discord-player/dist/Structures/Queue .js:699:46)
@k37chup
Copy link
Author

k37chup commented May 26, 2022

I aparently have a newer version of the opus so the folder is different .. just copied the contents of the newer to node-v93-napi-v3-linux-arm-musl-1.2.2 and now it works .. not sure where i should have updated this in the code but its late so i didn't look too hard

@dotnize dotnize added the bug Something isn't working label May 27, 2022
@MangoD33
Copy link

Plays random songs although the trackStart event emits the correct song name and URL. It appears to be random so far but happens only with playlists.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants