Skip to content

Troubleshooting EN

sqkl520 edited this page Nov 28, 2026 · 3 revisions

Troubleshooting

简体中文 | English

Find your symptom below. Restarting first destroys the evidence, so read the log before you touch anything.

1. The plugin won't load

Symptom: no [LetsLearnEnglish] line in the console after startup, or a wall of red errors.

Check in order:

1.1 Java version

java -version

If you see 1.8.0 or 17.x, that's it. You need Java 21 (Java 25 for 26.x servers). Download from Adoptium.

1.2 The server isn't Paper

version

Must be Paper 1.21.4+. Spigot fails immediately with NoSuchMethodError — the code uses Paper-exclusive Adventure APIs.

1.3 Wrong JAR

See the build-selection table in Installation. Installing -mc26 on 1.21.x is refused outright (api-version exceeds the server version).

1.4 Incomplete JAR

A healthy JAR is about 3.4 MB (including the shaded MySQL driver). If it is only around 1 MB, the download was truncated or the shade step didn't run.

unzip -l "Let's Learn English!-1.0.7.jar" | grep -c "com/mysql/"

Greater than 0 means the driver is inside.

1.5 Read the full log

grep -i "letslearnenglish" logs/latest.log | tail -50

2. GUI won't open / clicks do nothing

Possible cause Fix
Server isn't Paper 1.21.4+ Upgrade the server
Another GUI plugin conflicts (DeluxeMenus, etc.) Disable temporarily to isolate
The player is mid-quiz Finish or stop the current session before returning to the menu
An anticheat / item-protection plugin blocks it Check whether such a plugin intercepts GUI interaction

3. Quiz misbehaves

Symptom: timer repeats, no feedback on correct answers, can't answer in chat after closing the GUI.

Check the module switch

With word-system.enabled: false, every entry point is refused with module.disabled.

Check the caps

Cap Default When reached
word-system.daily-limit 50 Answers still work, but no more coins
money.daily-cap 500 Same — coins stop, learning unaffected

Check chat-filter plugins

Plugins like ChatControl can intercept answer input. Add the quiz channel to their whitelist.

Turn on debug

The quiz section has no separate debug switch. Scoring errors, word bank loading, and config audits use fixed WARNING logs that ignore config switches. ai-chat.debug only covers the AI conversation path:

ai-chat:
  debug: true

Then /lea reload and watch the console.

general.debug is obsolete; changing it does nothing.

4. Achievements won't unlock

  1. Check the achievement is enabled: true in achievements-config.yml
  2. If time-limit.enabled: true, confirm the current time falls inside the window
  3. Look for WARNING / SEVERE in the console
  4. Run /lea reload to clear the achievement cache, then retry

5. MySQL won't connect

Symptom: CommunicationsException / Access denied for user / ClassNotFoundException: com.mysql.cj.jdbc.Driver, then the plugin gets disabled.

Note: DatabaseManager.initialize() throws RuntimeException on SQLException, aborting onEnable, and Paper marks the plugin as failed to enable.

After fixing the config you must restart the server — database.* is not covered by /lea reload.

Check each item

database:
  type: "mysql"
  mysql:
    host: "localhost"
    port: 3306
    database: "letslearnenglish"   # must be created manually; the plugin won't create it
    username: "root"
    password: "correct_password"
  1. Is MySQL running?
  2. Are the credentials right?
  3. Does the letslearnenglish database exist?
  4. Is port 3306 open in the firewall?
  5. ClassNotFoundException: com.mysql.cj.jdbc.Driver → confirm you're using an official release JAR; if you built it yourself, check that maven-shade-plugin's shade-mysql-driver execution ran

6. Corrupted database file

Symptom: database disk image is malformed

Recovery

  1. Stop the server
  2. Find the newest backup in plugins/LetsLearnEnglish/backups/
  3. Delete the -wal / -shm sidecar files first, then overwrite the main file:
rm -f playerdata.db-wal playerdata.db-shm
cp backups/playerdata.db.20260601-143022.bak playerdata.db
  1. Start the server

Why step 3 is mandatory

At startup the plugin switches SQLite to journal_mode=WAL. In WAL mode the database is more than one file — unmerged transactions sit in playerdata.db-wal.

If you overwrite only .db and leave the old -wal, SQLite replays that old WAL into your freshly restored database. "Restored to the backup point" then fails silently: the data you wanted to roll back reappears, with no error at all.

The safer approach (lets SQLite handle WAL):

sqlite3 playerdata.db ".backup 'playerdata.db.restored'"

The plugin's own backups are safe

Backups produced by the plugin use VACUUM INTO (WAL-safe, yielding a self-consistent snapshot), followed by PRAGMA quick_check. A check that explicitly reports corruption (malformed / not a database / corrupt) deletes that backup and logs a warning; if the check itself cannot run (SQLITE_BUSY, disk I/O error, etc.), it only logs SEVERE and keeps the file. So the backup directory may contain unconfirmed files — run PRAGMA quick_check yourself before restoring.

7. Out of memory

Symptom: OutOfMemoryError

The plugin itself uses only 15–30 MB; OOM is usually not caused by it. To rule it out anyway:

  1. Raise general.auto-save-interval from 5 minutes to 10–15
  2. Disable automatic backups: general.backup.enabled: false
  3. PlaceholderAPI results are cached for 30 seconds — no adjustment needed

database.mysql.pool-size is a dead key — the plugin uses a single connection with no pool, so changing it does nothing.

8. Rank is blank on the scoreboard

This is by design, not a bug. %lle_rank% and %lle_coins_earned% use async backfill: the first read returns an empty string, and the value fills in after the background query completes — a rank query takes 2.5 seconds at 50,000 players, and running it on the main thread would stall ticks. It fills in within seconds.

If it stays blank, see the caching and async-backfill section of Placeholders.

9. What to include in a bug report

  1. Set ai-chat.debug: true, then /lea reload
  2. Reproduce the problem
  3. Collect the log:
# from the server console
pastebin upload logs/latest.log
  1. Include the output of /lea info

Do not paste the entire latest.log (thousands of lines) — the relevant few dozen lines are enough.

Clone this wiki locally