Plugin crashed while disabling (Error occurred while disabling)
- Platforms
- Paper · Purpur · single server
- Verified
- Verified
- Confidence
- Confidence 90%
What it looks like in the log
Any one of these lines is enough. The agent matches them locally, on your server.
logs/latest.log
[ERROR] while disabling
Symptoms
- When the server stops/restarts, the log shows an error while disabling a plugin
- After a restart, the plugin's most recent data changes may be lost (not saved on shutdown)
Cause
The plugin's onDisable method threw an exception. The plugin may not have saved its data (database, files) or closed its resources.
Possible causes
- A plugin bug when saving data on shutdown
- A resource is already unavailable at shutdown: the database is closed, a dependent plugin was disabled earlier, the jar was replaced while running
- Disabling via /reload or PlugMan, which the plugin does not support
How to fixLow risk
- Use the evidence to identify the plugin and the exception (the next line and
Caused by:). - After startup, check that this plugin's data is intact (recent changes, files in
plugins/<plugin>/, database tables). - Do not replace a plugin's jar while the server is running and do not use
/reload/PlugMan — stop the server completely. - Update the plugin; if the error recurs on a normal shutdown, report it to the author with the full trace.
Translated from the Russian original; log lines are quoted verbatim.