hello, I have a music system in my bot, and it works perfectly locally (windows), but when I upload it to a hosting (linux) for some strange reason it stops working. The system works fine, it searches for the song and everything, but when it joins the voice chat, it leaves after 1 second, it's something weird that happens and I can't find the error. I use @discordjs/voice and ffmpeg
#bot leaves channel immediately
14 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
bot leaves channel immediately
@vivid fractal node modules.
You need to reinstall them again
If ur using another os
The node_modules folder did not exist, I have done an npm i from 0 when uploading the bot, at no time have I uploaded the modules
Ugh maybe one of ur modules does not support linux?
@vivid fractal Check this .MD out from my friend. He also had problems with FFmpeg on Linux. The whole thing is based on Oracle Linux 8, but I think some steps might be helpful still.
https://github.com/ka0sdev/Public/blob/Production/Guides/Oracle Cloud/FFmpeg/FFmpeg-OL8.md
okey, i will try it!
@rotund bone how i can install dnf on ubuntu?
or any version for ubuntu of this md?
You need another way to fix the FFmpeg issue on ubuntu:
npm uninstall ffmpeg-static
npm ci --no-optional
npm update
It should be fixed if npm ls ffmpeg-static returns (empty)
After that install FFmpeg
this helped me, thanks a lot