config.yml not found#
The error is [ERROR] config.yml not found. The script reads config.yml from the folder of index.js.
Missing required configuration#
The error names the key, for example Missing required configuration: pterodactyl.clientApiKey. On Pterodactyl v1 the keys pterodactyl.url, pterodactyl.apiKey, pterodactyl.clientApiKey, portRange.start, portRange.end and motd.port are required. On Calagopus they are calagopus.url, calagopus.apiKey, portRange.start, portRange.end and motd.port.
Missing MOTD state#
The error is Missing MOTD state: <state>. Put offline, suspended, installing and starting under motd.states.
MOTD server error: address already in use#
The log shows MOTD server error (offline): listen EADDRINUSE .... Another program uses one of the four ports. Change motd.port to a range of four free ports.
iptables cannot be used#
The script stops at start with iptables cannot be used (...). Run it as root, on a Linux machine with iptables. Without them, no player can be redirected.
The API key was refused#
The log shows The application API key was refused (HTTP 401), The client API key was refused (HTTP 401) or The API key was refused (HTTP 401). Check the key in config.yml. A message with HTTP 403 means the key works but has no access:
- Pterodactyl v1: give the Application key read access to Servers and Nodes, and create the client key on an administrator account.
- Calagopus: give the key the admin permission
servers.read.
Found 0 servers#
Check that:
- The servers have a port inside
portRange. - The servers are not in an excluded egg.
- The servers run on the node that is watched. The log says which one at start. See Which node.
Error fetching server list#
The log shows Error fetching server list: .... For a message about SSL or wrong version number, the URL uses the wrong protocol. Use http:// for a panel without HTTPS and https:// for one with it.
While the server list cannot be read, the current redirects stay as they are.
A server keeps its old MOTD after it started#
When the script cannot read the state of a server, it keeps the last known state, so a running server is never sent to the offline MOTD by an API error. Look in the log for a refused key, or on Calagopus for Resources request for node <uuid> failed or Error fetching resources for node <uuid>. Fix the key or the connection to the panel, and the state updates on the next check.
The MOTD never shows#
- Look in the log for
iptables failed: .... The message after it comes fromiptables. - Run
sudo iptables -t nat -L PREROUTING -nwhile a test server is offline. You should see a rule for its port. - Check that the port of the server is between
portRange.startandportRange.end. - Check that the traffic to the game port passes through this machine and its
PREROUTINGchain. - Check the log with
logging.levelset todebug. A line such asRedirected port 25565 → 4001 (offline)shows that the rule was added.
The MOTD shows for the wrong server#
The script watches the servers of other nodes too. This happens with node: 'all', or when auto could not find this node and the log says it watches every node. Set node to the ID (Pterodactyl v1) or UUID (Calagopus) of this node.
The server icon does not show#
- Look in the log for
Server icon not loaded from .... A relative path inmotd.server-iconis relative to the folder ofindex.js. - Use a 64 by 64 PNG of at most 10 KB.
A change to a message does not show#
Restart the script. The file is read once at start. Then refresh the server list in Minecraft.
Rules are left after a crash#
Start the script again. At start it removes every redirect rule to one of its MOTD ports for a port in your range, also rules left behind by a crash. The log shows Removed <n> redirect rule(s) left over from an earlier run.