Plugin status shows an error after reloading plugins that are already loaded

Open
#2,059 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Wikid82 is already working on this.

Since Nov 25, 2026.

Assessment

This issue has not been assessed yet.

Description

backend bug

What: POST /api/v1/admin/plugins/reload while a DNS provider plugin is already loaded sets that plugin's status in the plugin list to error: failed to register plugin: dns provider already registered, although the plugin stays registered and usable.

Where: backend/internal/services/plugin_loader.go, LoadPlugin (~line 183) registers the provider again without checking loadedPlugins for the same path. Same code on development.

Evidence: found by QA on the branch for #2058 (container check: load a plugin, call reload, read the plugin list).

Severity: low (misleading status only).

Suggested approach: skip a plugin whose path is already loaded, or unregister and re-register it, and keep the status as loaded. Add a test that reloads twice.

Found while working on #2058.

Dominant language
Go
Stars
17
Forks
2
Avg merge
1h 42m
Merged PRs (30d)
173

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Wikid82/Charon

All issues in Wikid82/Charon

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.