Open Console, press Start, and find the error line. It names the cause: a missing package, the wrong start file, a Java version mismatch, a bad token, or missing gateway intents. The table below matches each message to its fix. This page covers Node.js, Python, and Java bots on Discord bot hosting.
The settings named here (Language, Main File, Auto Update) are explained in Setting Up Your Discord Bot.
Read the console
- Open your server in the Game Control Panel and click Console in the sidebar.
- Press Start (or Restart if your bot is still running) and watch the output.
- Lines that start with
[WinterNode]come from us and say what happened. Everything else comes from your bot, its language, or its Discord library. The line[WinterNode] Starting your Node.js 24 bot (index.js)shows the language, version, and main file the panel launched, so check that they match what you set. After it, any line without that tag is your bot’s own output. - Find the error. For Node.js and Java, look for the first line with
ErrororException. For Python, read the last line of theTraceback, which names the error. A Java bot can print[WARN]lines about logging or cache flags first. Those are warnings, not the cause. If your bot ran for a while and then stopped, read the lines just above the crash notice.
When your bot stops on its own, the console shows that it crashed, with its exit code. That tells you that it stopped, not why. Server Crashed With an Exit Code explains each line.
Need to share the output? Click Upload logs beside the console for a link you can send. Check that the output doesn’t include your token before you share it.
After you fix something below, restart your bot, or press Start if it’s offline.
| The console shows | Likely cause |
|---|---|
Cannot find module, Cannot find package, ModuleNotFoundError, or NoClassDefFoundError | A missing package |
We couldn't find index.js. | The wrong start file |
UnsupportedClassVersionError | A Java version mismatch |
An invalid token was provided., Improper token has been passed., The provided token is invalid!, or Authentication failed | A bad token |
Used disallowed intents, PrivilegedIntentsRequired, or Disallowed intents | Missing gateway intents |
A crash notice with Out of Memory: true or exit code 137 | Out of Memory (OOM) Crashes |
A missing package
Node.js shows Error: Cannot find module 'package-name', or Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'package-name' if your bot uses import. Add the package under dependencies in package.json and restart, or press Start if your bot is offline. Packages install from package.json when your bot starts.
Python shows ModuleNotFoundError: No module named 'package_name'. Add the package to requirements.txt and restart, or press Start if your bot is offline. Use the name you’d install, which isn’t always the name you import: discord.py is discord.py in requirements.txt but import discord in your code.
The install output appears in the console before the Starting your ... bot line. If a package fails to install, it may not support the version you picked under Language. Check which versions the package supports, pick one of those, and restart, or press Start if your bot is offline.
Java gets nothing installed for you. A NoClassDefFoundError or ClassNotFoundException that names a library class usually means your .jar was built without its libraries. Build a .jar that includes them (often called a fat or shaded jar) and upload that.
The wrong start file
With Main File blank, your bot starts index.js (Node.js), main.py (Python), or your .jar (Java). If a Node.js bot’s index.js isn’t there, you’ll see a [WinterNode] line that says We couldn't find index.js. For any language, the [WinterNode] Starting your ... bot (...) line names the file the panel tried to run, so check it’s the one you meant.
- Your main file has a different name (like
bot.jsorbot.py): set Main File to it on Server Options and restart. - Your files ended up inside a folder: extracting a
.zipcan leave everything inside a folder (for examplemy-bot/index.js). Move the files up to your server’s top folder with the File Manager, then restart. - You have more than one
.jar: set Main File to the one you want to run. - Your GitHub repository didn’t download: it only downloads into an empty server folder (a
.envfile is fine). See Deploy from GitHub.
A Java version mismatch
Java shows UnsupportedClassVersionError when your .jar was built for a newer Java than the version you picked under Language. Pick the version your .jar was built for, or a newer one, on Server Options, then restart, or press Start if your bot is offline. If the version your bot was built for is older than the oldest on offer, pick the closest newer version and check the console for errors on the first start. Change your language or version lists the versions on offer.
A bad token
The token your bot sent isn’t accepted. The message depends on your library:
- discord.js:
DiscordjsError [TokenInvalid]: An invalid token was provided., orAuthentication failed - discord.py:
discord.errors.LoginFailure: Improper token has been passed., which follows a401 Unauthorizedline - JDA (Java):
net.dv8tion.jda.api.exceptions.InvalidTokenException: The provided token is invalid!
Discord’s own close code for a rejected token is 4004. After the crash the panel restarts your bot automatically, which runs it again with the same token, so the error can show up twice in a row. Fix the token, then restart, or press Start if your bot is offline.
Check these first:
- The token in
.envis your real token, not a placeholder likeyour-bot-token. - The token in
.envis complete, with no extra spaces or line breaks. - The name in
.envmatches the name your code reads (for exampleDISCORD_TOKEN). - If your code reads the token from
.envand the file isn’t being loaded, discord.js is handed an empty token and printsAn invalid token was provided.Check the file is named exactly.env, sits in your server’s top folder, and your code loads it. See Step 3 of Moving an Existing Discord Bot. - Nobody reset the token in the Developer Portal after you copied it.
If you’re not sure, get a new token:
- Open the Discord Developer Portal and select your app.
- Go to the Bot page.
- Under Token, click Reset Token and copy the new token. Discord only shows it once.
- Paste it into
.envin place of the old one and save. - Restart your bot, or press Start if it’s offline.
Missing gateway intents
Three intents are privileged: presence, server members, and message content. If your code asks for one that isn’t turned on for your app, Discord closes the connection with code 4014. discord.js shows Used disallowed intents, discord.py raises PrivilegedIntentsRequired, and JDA reports Disallowed intents.
- Open the Discord Developer Portal and select your app.
- Go to the Bot page.
- Under Privileged Gateway Intents, turn on the ones your code requests. Only turn on what your bot needs.
- Restart your bot, or press Start if it’s offline.
If your bot is in 100 or more servers, it needs to be verified, and Discord has to approve each privileged intent before it works.
Online but ignoring commands? If your bot starts fine but does nothing with prefix commands like !help, it’s probably missing message content. Without it, Discord sends your bot empty message text, except in DMs and messages that mention it. Turn it on as above and request it in your code.
What restarts your bot
If your bot keeps going offline or comes back with different behavior, one of these is usually why:
- The Restart button stops your bot, then starts it again. See Start & Manage Your Server.
- A schedule. Power actions in the Schedule Manager can start, restart, or stop your bot on a timer. Schedules run on UTC, so a stop at “midnight” may not be your midnight.
- A crash. The panel restarts your bot automatically after a crash. It runs with the same files and
.env, so a bot that fails on start can show the same error twice. If it crashes again within 60 seconds, the panel stops and printsAborting automatic reboot due to crash within the last 60 seconds.(what that means). Fix the error above it, then press Start. To see how often it’s crashing, open System > Audit Logs in the sidebar. - Running out of memory. The crash notice says
Out of Memory: true, or shows exit code 137. See Out of Memory (OOM) Crashes. - Auto Update. With Auto Update on, your bot pulls your latest GitHub code every time it starts, so a broken push shows up at the next start. Push a fix and restart. If you edit files on the server, turn Auto Update off so a restart doesn’t pull over your changes.
- A Language change takes effect the next time your bot starts. You don’t need to reinstall the server, and Node.js and Python packages reinstall on their own for the new version.
Discord can keep showing your bot online for a few minutes after its connection drops, so the status dot lags behind. Run a command to check, and look at the console for the real state. If the console looks fine and your bot still can’t connect, check Discord’s status page and ours.
Still not working?
Contact our support team with your Server UUID, your Upload logs link, and what you changed last.
Frequently Asked Questions
It's probably missing the Message Content intent. Without it, Discord sends your bot empty message text, except in DMs and messages that mention it. Turn it on under Privileged Gateway Intents on your app's Bot page in the Discord Developer Portal, request it in your code, and restart.
Yes, the panel restarts it automatically after a crash, so a bot that fails on start can show the same error twice. If it crashes again within a minute of its last crash, the panel stops restarting it and prints a notice in the console. Fix the error above that notice, then press Start.
Yes, when Auto Update is on. It pulls your latest code every time your bot starts, so a broken push shows up at the next start.





Discord Bots