alibaba/nacos · error · PluginPersistenceException
Failed to delete plugin config: {pluginId}
Error message
Failed to delete plugin config: {pluginId} What it means
Error "Failed to delete plugin config: {pluginId}" thrown in alibaba/nacos.
Source
Thrown at core/src/main/java/com/alibaba/nacos/core/plugin/storage/FilePluginStatePersistenceImpl.java:220
}
}
/**
* Delete plugin configuration.
*
* @param pluginId plugin ID
*/
@Override
public void deleteConfig(String pluginId) {
synchronized (configLock) {
try {
Map<String, Map<String, String>> configs = loadAllConfigs();
configs.remove(pluginId);
writeJsonToFile(PLUGIN_CONFIG_FILE, configs);
LOGGER.debug("[FilePluginStatePersistenceImpl] Deleted plugin config for {}",
pluginId);
} catch (Exception e) {
throw new PluginPersistenceException("Failed to delete plugin config: " + pluginId,
e);
}
}
}
private <T> T readJsonFromFile(String fileName, TypeReference<T> typeRef) {
return readJsonFromFile(fileName, typeRef, false);
}
private <T> T readJsonFromFile(String fileName, TypeReference<T> typeRef,
boolean failOnError) {
Path filePath = Paths.get(dataDir, fileName);
if (!Files.exists(filePath)) {
return createEmptyMap(typeRef);
}
try {
String content = new String(Files.readAllBytes(filePath), StandardCharsets.UTF_8);View on GitHub (pinned to 9b989acdf1)
Solutions
- Inspect the server logs for the underlying cause, fix it, and retry the operation.
When it happens
Trigger: Thrown at core/src/main/java/com/alibaba/nacos/core/plugin/storage/FilePluginStatePersistenceImpl.java:220 when the library encounters an invalid state.
Common situations: Deleting a plugin config from disk failed.
AI-assisted analysis of alibaba/nacos@9b989acdf1 (2026-08-14).
Data as JSON: /api/errors/e7282f5addaf6346.
Report an issue: GitHub.