This page covers the most common issues encountered when deploying SudoBot, along with their causes and fixes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/onesoft-sudo/sudobot/llms.txt
Use this file to discover all available pages before exploring further.
The bot doesn’t come online
Symptoms: The process starts but the bot never appears online in Discord. Checklist:- Confirm
TOKENin your.envis the correct bot token from the Discord Developer Portal - Confirm the bot has been invited to your server with the correct permissions
- Check the logs for authentication errors:
pm2 logs sudobotordocker compose logs sudobot
Database connection errors
Symptoms: Startup fails withECONNREFUSED, connection refused, or password authentication failed.
Fixes:
- Make sure
DB_URLuses the correct host, port, user, password, and database name - If using Docker Compose, the database host should be
postgres(the service name), notlocalhost - If using Kubernetes, the host is injected automatically via
POSTGRES_SERVICE_SERVICE_HOST - Verify PostgreSQL is running and accepting connections on the expected port
Slash commands don’t appear
Symptoms: The bot is online but/commands don’t show up in Discord.
Fix: Register the commands with Discord’s API:
Global command registration can take up to an hour to propagate across Discord. Guild-specific commands appear instantly.
Heap out of memory during build
Symptoms:./blazew build fails with a JavaScript heap allocation error.
Fix: Increase Node.js heap size:
Missing or broken emojis in bot messages
Symptoms: Bot messages contain empty spaces or? where emojis should be.
Fix: Download and upload the custom emojis to your Home Guild:
- Download emojis from onesoftnet.eu.org/downloads/sudo/emojis
- Upload them to the guild specified in
HOME_GUILD_ID - Make sure the bot has access to that guild
Extensions not loading
Symptoms: Custom extension commands don’t appear after restart. Checklist:- Confirm
EXTENSIONS_DIRECTORYis set in.envand points to the correct path - Confirm the extension directory contains a valid
extension.json - Confirm the extension was built (
npm run buildinside the extension directory) - Check logs for extension-specific errors on startup
Config changes not taking effect
Symptoms: You editedconfig.json or system.json but the bot behaviour hasn’t changed.
Fix: SudoBot reads config files from SUDO_PREFIX/config/, not the repository’s config/ directory. Make sure you copied your edited files to the correct location and restart the bot.
Getting more help
If the issue isn’t covered here:- Open an issue on GitHub
- Join the Discord Server for community support
- Email: rakinar2@onesoftnet.eu.org
