Repository navigation
Troubleshooting
Find your symptom, then the fix. Error text is quoted exactly as the bot prints it.
| Message | Cause | Fix |
|---|---|---|
Discord bot token is missing or not configured. Please set a valid TOKEN in your .env file. |
.env not found, or TOKEN empty |
Start the program from the folder that holds .env. Check the variable name is TOKEN
|
Permission denied |
The Linux or macOS file is not executable | chmod +x nationdex-bot-linux-x64 |
cannot execute binary file |
Wrong architecture | Use linux-x64 on Intel/AMD, linux-arm64 on ARM64 (Pi, phones). Check with uname -m
|
Windows blocks the .exe
|
SmartScreen | More info → Run anyway, after checking the hash |
Cannot find module or a missing .node file |
The .node files were moved away from the program |
Keep skia.*.node and gifsx.*.node in the same folder as the program |
| Port already in use | Another program uses 2222 or 3000
|
Change API_PORT or PANEL_PORT in .env
|
- Check that the
assets/folder sits next to the program, withcards,fontsandiconsinside. -
[ERROR] Configured path for 'spawn_art' does not exist on diskat start: createassets/spawn_artandassets/window_artand add your artwork. - Missing spawn art or window art means nations have no artwork yet. Upload it from the panel.
- Make sure the bot was invited with the
applications.commandsscope. - Slash commands for the home server appear after the bot is ready. Wait a minute and restart.
- A deleted command can linger. Restart the bot. From source, run
rm -rf dist/ && bun run buildfirst.
The command ran but did not reply. Report the command name and the time in the issue tracker.
Known issue: the /gift confirmation message tries to disable its buttons after one minute and fails with TypeError: comp.setDisabled is not a function. The gift still works or is refused by its checks, but the old buttons remain clickable until the message is used or dismissed.
The terminal app has no working DNS. See DNS problems in the proot. Other curl codes: (7) connection refused or blocked, (28) timeout (often IPv6 or MTU), (60) certificate or wrong clock.
Plain Termux (Android) cannot run them. Use Proot-Distro.
| Symptom | Fix |
|---|---|
| Blank page or no styling | Run bun run panel:build from source, or check that website/dist exists |
Sign-in fails with 429
|
Rate limit from Nginx: wait a minute |
Panel says it needs /access claim
|
Run /access claim once in the home server |
502 Bad Gateway |
The bot is not running, or Nginx points to the wrong port |
- Never copy
database/while the bot writes to it. Stop the bot first. - Two copies of the bot on the same
database/folder crash it. Run only one. - If the database is damaged, restore the latest backup from Hosting.
Open an issue at https://github.com/nationdex/bot/issues with: your system, the binary version, the exact error line, and what you did just before. Remove the token and any private IDs first.