DUXPLIMA Documentation

Troubleshooting

What to check when the plugin does not start, the bot stays offline, linking fails or a feature does nothing.

Start with the console: the plugin names most problems there, often with the fix. When it says nothing, set plugin.debug: true and error-handling.log-stack-traces: true in advanced.yml, run /dsadmin reload and try again.

The plugin does not start

Console saysFix
License key is not setSet plugin.license-key. No key yet: open a ticket in the UXPLIMA Discord
License validation failedThe key is wrong or not valid for this server. Ask UXPLIMA
these files have YAML errors, with a file and a lineFix that line, or delete the file to get a fresh one
plugin.server-name '...' may only contain lettersUse letters, digits, spaces, - and _ only
Failed to connect to database or Unknown database.typeCheck the database section. See Database
config.yml was written by uxmDiscordSync ...The files are from a newer version. Install that version or newer
runs uxmDiscordSync ..., newer than this server'sAnother server on the same database runs a newer version. Update this one
the multi-server settings need fixingEach server needs its own server-name, not main, and a shared database. See Multi-server

The bot stays offline

The console shows Failed to start Discord bot: and a reason.

Reason mentionsFix
token not configured, or the token is invalidCopy the token again from the Developer Portal into discord.token, then restart
Disallowed intentsTurn on both intents in the Developer Portal. See Creating the bot
Guild not founddiscord.guild-id is wrong, or the bot is not in that Discord server

Linking

ProblemCause and fix
No link message in the channelThe console names it: the channel id is wrong, or the bot lacks View Channel, Send Messages, Embed Links or Read Message History there
This interaction failed on the buttonAnother program is logged in with the same token: an old copy of the plugin, or a second server without multi-server mode. The console warns about it
The code is refusedIt expired, was already used, or the player asked for a newer one, which replaces it
Too many wrong codesWait the seconds it names
No linked rolesThe console says Cannot give the linked role: move the bot's role above it
No rewards for linkingThe player is told the account was linked before. Rewards are paid once per account

Rank and nickname sync

ProblemCause and fix
Nothing happensLuckPerms is missing (the console says so at startup), the role ids are placeholders, or the player is offline. Test with /dsadmin forcesync <player>
Cannot add the Discord roleMove the bot's role above that role, or give it Manage Roles
A player in default gets no roleThey were given a rank with parent set and are no longer in default. Map their rank
A role given by hand disappearsThat role is in rank-mappings and remove-old-roles is on
A nickname does not changeThe member is the owner or ranks above the bot. With skip-on-permission-error: true this is silent

Two-factor login

ProblemCause and fix
Nobody is askedOnly linked players are asked. Check require-permission, ip-whitelist and remembered sessions
Everyone skips itBehind a proxy without IP forwarding everyone shares one address. Remove it from ip-whitelist
The request never arrivesThe member blocks direct messages from server members. The console says Failed to open DM for 2FA
could not be checked right now on joiningWith several servers, Redis cannot be reached
The location shows UnknownThe GeoLite2 file is not where geoip-database points

Levels and boosts

ProblemCause and fix
No XPThe level system is off, the member is not linked while linked-only is on, or the channel is not listed. A thread has its own id
No voice XPThe member is deafened, alone, or in the AFK channel
/discordreward finds nothingOnly levels with an entry under rewards pay, and each once
/boostprize says not boostingThey boost another Discord server than discord.guild-id
/boostprize names another playerThe boost belongs to that account. See boostowner

Logs and Discord commands

ProblemCause and fix
Invalid ... webhook URLPaste a webhook URL starting with https://discord.com/api/webhooks/, not a channel link
Some chat is missing from the logIt was longer than max-length, started with an ignored prefix, or went past the limit per minute
A slash command is missingIts feature is off, its file name is not a valid command name, or the bot was invited without applications.commands
/servercommand is refusedYou are not in authorized-users on the server you named, or the channel is not allowed

Several servers

Console saysFix
Duplicate server-name ... this instance stays passiveTwo running servers share a name. Rename one
Redis unavailableCheck Redis. Discord actions wait until it is back
maxmemory-policy is ...Set maxmemory-policy noeviction in Redis
uses this database too, but multi-server mode is offTwo servers share the database and the bot without multi-server mode. Turn it on everywhere

Still stuck

Open a ticket in the UXPLIMA Discord with the plugin and server versions, the console from startup with debug on, and the settings you changed.