Connection Issues
Node Connection Failed
Check if your Lavalink server is running and accessible.- Verify Lavalink server is running:
java -jar Lavalink.jar - Check if the port is correct in your configuration
- Ensure firewall isn’t blocking the connection
- Verify the password matches in both
application.ymland your bot config
Voice Channel Issues
Ensure your bot has proper permissions to join voice channels.- Grant “Connect” and “Speak” permissions to your bot
- Check if the voice channel has user limits
- Verify the user is in a voice channel before creating connection
- Ensure the bot isn’t already in another voice channel
Authentication Failed
If you’re getting authentication errors with Lavalink:- Double-check the password in your
application.ymlfile - Restart the Lavalink server after changing configuration
- Ensure you’re using the correct host and port
Common Errors
Error: No available nodes
Error: No available nodes
Cause: Lavalink node is disconnectedSolution:
- Check node configuration and ensure Lavalink server is running
- Verify network connectivity between bot and Lavalink server
- Check Lavalink server logs for connection errors
- Restart both Lavalink server and your bot
Error: Track load failed
Error: Track load failed
Cause: Track couldn’t be loaded or playedSolution:
- Check if the track URL is valid and accessible
- Verify your Lavalink server has the required audio sources enabled
- Try searching with different platforms (YouTube, SoundCloud, etc.)
- Check your internet connection and DNS resolution
Error: Player not found
Error: Player not found
Cause: Trying to control a non-existent playerSolution:
- Create a player connection first before controlling playback
- Check if the player was destroyed or disconnected
- Verify you’re using the correct guild ID
AttributeError: 'NoneType' object has no attribute 'voice'
AttributeError: 'NoneType' object has no attribute 'voice'
Cause: User is not in a voice channelSolution:
- Always check if the user is in a voice channel before creating connections
Error: Missing Access
Error: Missing Access
Cause: Bot doesn’t have permission to join the voice channelSolution:
- Check bot permissions in the specific voice channel
- Ensure the voice channel isn’t full
- Verify the channel isn’t restricted to certain roles
Error: Player destroyed
Error: Player destroyed
Cause: Attempting to use a destroyed playerSolution:
- Check if player is destroyed before using it
- Create a new player if the old one was destroyed
Search Issues
No Search Results
If searches aren’t returning results:- Use correct source:
ytsearch,ytmsearch,scsearch - Check if the search sources are enabled in Lavalink
- Try simpler search terms
- Verify internet connectivity
Search Timeout
Handle Empty Results
Performance Issues
High Memory Usage
Monitor and limit concurrent connections:Audio Lag or Stuttering
Solutions:- Increase buffer size in Lavalink configuration
- Use a dedicated server for Lavalink
- Check network bandwidth and latency
- Ensure your bot has enough CPU and memory resources
Import Errors
ModuleNotFoundError
Missing Dependencies
Discord.py Issues
Intents Not Enabled
- Go to your application settings
- Navigate to “Bot” section
- Enable “Message Content Intent”
- Enable “Server Members Intent” if needed
Voice Connection Issues
Debug Mode
Enable debug logging to troubleshoot issues:Common Async Issues
RuntimeWarning: coroutine was never awaited
Event Loop Issues
State Management Issues
Players Not Restoring After Restart
Solution: Enable state management:Player State Corruption
Solution: Clear saved states:Getting Help
If you’re still experiencing issues:- Check the logs - Both your bot logs and Lavalink server logs
- Update dependencies - Ensure you’re using the latest version of Salada
- Test with minimal code - Create a simple reproduction case
- Join our Discord - Get help from the community
- Open an issue - Report bugs on GitHub with detailed information
When reporting issues, always include:
- Salada version
- Python version
- discord.py version
- Lavalink version
- Complete error messages and traceback
- Minimal reproduction code
Checklist for Common Setup Issues
- Lavalink server is running
- Correct host, port, and password in configuration
- Bot has Connect and Speak permissions
- Discord intents are enabled (voice_states, guilds)
- User is in a voice channel before connecting
- Node is connected before creating players
- All async functions are properly awaited
- Error handling is implemented for search and playback