This guide provides solutions to common issues you might encounter when running PlexBot.
- Connection Issues
- Audio Problems
- Visual Player Issues
- Command Problems
- Docker-Specific Issues
- Lavalink Issues
Symptoms:
- Bot shows offline in Discord
- Logs show connection errors
Solutions:
-
Check Discord Token:
# Verify your token is correct in .env DISCORD_TOKEN=your_discord_token_here
-
Verify Network Connectivity:
# Test connection to Discord ping discord.com
-
Check Discord API Status: Visit Discord Status to see if there are any ongoing API issues.
-
Review Bot Permissions: Ensure your bot has the correct OAuth2 scopes and permissions.
Symptoms:
- Bot joins voice channel but doesn't play audio
- Commands seem to work but no music plays
Solutions:
-
Check Lavalink Connection:
# In Docker: docker-compose logs lavalink # Look for successful connection messages
-
Verify Voice Channel Permissions:
- Ensure bot has "Connect" and "Speak" permissions in the voice channel
-
Test with Different Audio Sources:
- Try YouTube links
- Try Spotify links
- Try direct file playback
-
Check Volume Settings:
/volume 100
Symptoms:
- Audio plays but frequently stutters or cuts out
Solutions:
-
Check Server Resources:
# Check CPU and memory usage top
-
Optimize Lavalink: Adjust Lavalink buffer settings in
application.yml
-
Network Bandwidth: Ensure your server has sufficient upload bandwidth
Symptoms:
- Player image shows but has no text overlay
- Background image appears without track information
Solutions:
-
Verify Font Packages in Docker:
# Check if fonts are installed docker exec -it plexbot_plexbot_1 fc-list # If empty or error, rebuild with fonts docker-compose up -d --build
-
Check Logs for Font Errors:
docker-compose logs | grep -i font
-
Manual Font Installation:
# If using Docker, modify Dockerfile to include: RUN apt-get update && apt-get install -y \ fontconfig \ fonts-dejavu \ fonts-liberation \ fonts-noto
Symptoms:
- No album art or player image appears
- Only text information is displayed
Solutions:
-
Check Network Access: Ensure the bot can access external URLs for album art
-
Enable Visual Player Mode:
# In .env file PLAYER_STYLE_VISUAL=true
-
Check ImageSharp Errors: Look for image processing errors in logs
Symptoms:
- Bot is online but doesn't respond to commands
- No error messages appear
Solutions:
-
Verify Command Registration: Check if slash commands are registered with Discord
-
Check Bot Permissions: Ensure "Use Application Commands" permission is granted
-
Server-Specific Issues: Try the bot in a different server or channel
-
Restart the Bot:
docker-compose restart plexbot
Symptoms:
- Commands return syntax errors
- "Unknown command" messages
Solutions:
-
Review Command Documentation: Use
/help
to see correct command syntax -
Check for Updates: Your bot version might be outdated
Symptoms:
- Docker container exits shortly after starting
- Logs show initialization errors
Solutions:
-
Check Environment Variables: Ensure all required variables are set in
.env
-
Increase Container Resources: Allocate more CPU/memory to the container
-
File Permissions: Check permissions on mounted volumes
-
Clean Rebuild:
docker-compose down docker system prune -a docker-compose up -d --build
Symptoms:
- Data doesn't persist between restarts
- Configuration changes don't take effect
Solutions:
-
Check Volume Paths: Ensure paths in
docker-compose.yml
are correct -
Verify File Ownership: Files should be owned by the user inside the container
Symptoms:
- Errors about "Unable to connect to Lavalink node"
- Audio commands fail with connection errors
Solutions:
-
Check Lavalink Availability:
# Test if Lavalink is accessible curl -I http://lavalink:2333
-
Verify Lavalink Configuration:
# In .env LAVALINK_HOST=lavalink LAVALINK_PORT=2333 LAVALINK_PASSWORD=youshallnotpass
-
Lavalink Log Analysis:
docker-compose logs lavalink
-
Restart Lavalink:
docker-compose restart lavalink
If you've tried the solutions above and are still experiencing problems:
-
Check Full Logs:
docker-compose logs > plexbot-logs.txt
-
Open an Issue: Submit the logs and a detailed description of your issue on our GitHub repository
-
Discord Support: Join our support server for real-time assistance