Skip to content

Troubleshooting

arielaram edited this page Nov 17, 2026 · 3 revisions

Troubleshooting

Find your symptom, then the fix. Error text is quoted exactly as the bot prints it.

The bot does not start

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

Cards or images are broken

  • Check that the assets/ folder sits next to the program, with cards, fonts and icons inside.
  • [ERROR] Configured path for 'spawn_art' does not exist on disk at start: create assets/spawn_art and assets/window_art and add your artwork.
  • Missing spawn art or window art means nations have no artwork yet. Upload it from the panel.

Commands do not appear in Discord

  • Make sure the bot was invited with the applications.commands scope.
  • 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 build first.

Discord says "The application did not respond"

The command ran but did not reply. Report the command name and the time in the issue tracker.

Buttons stay clickable after the timeout

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.

curl: (6) Could not resolve host on a phone

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.

Platforms that cannot run the binaries

Plain Termux (Android) cannot run them. Use Proot-Distro.

Panel

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

Database

  • 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.

Getting help

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.

Clone this wiki locally