GrepBoard/Manuals
605 manuals ·

Ceph MGR_MODULE_ERROR health warning: what to check

·Tested on Ceph Tentacle 20.2.5 · Squid 19.2.7 official docs and source · 2026-11·Test scope ↓·7 steps

Ceph MGR_MODULE_ERROR means an enabled mgr module failed. Tell a slow start from other causes, save logs and crash records, then fail over or disable it.

output
HEALTH_ERR 4 mgr modules have failed[ERR] MGR_MODULE_ERROR: 14 mgr modules have failed    Module 'rbd_support' has failed: Module failed to initialize.    Module 'status' has failed: Module failed to initialize.    Module 'telemetry' has failed: Module failed to initialize.    Module 'volumes' has failed: Module failed to initialize.

MGR_MODULE_ERROR is a HEALTH_ERR check saying an enabled module failed on the active mgr. If the detail line says Module failed to initialize., the module is still starting: wait, or run ceph mgr fail. Any other text has several possible causes, so save logs and crash records before you change anything. The block above is the official documentation example verbatim. Its first line says 4 and its second says 14. In the source that count equals the number of detail lines ([PyModuleRegistry.cc L471-L486](https://github.com/ceph/ceph/blob/v20.2.5/src/mgr/PyModuleRegistry.cc#L471-L486)), so trust the detail lines.

[1] Read the failed module names and messages. All read-only.

console
$ ceph health detail$ ceph mgr stat$ ceph mgr module ls > mgr-module-ls-before.txt$ ceph tell mgr mgr_status

Each line reads Module '<name>' has failed: <text>. Only the active mgr raises this check, so write down the active name and standby list from ceph mgr stat. In the module ls table, always-on modules show as on (always on) (source). Keep the table in a file for step [6].

[2] Pick the branch from the text.

Detail lineWhat it means in the sourceGo to
Module failed to initialize.The module is still starting (pending)[3]
Other text, exception at runtimeserve() ended with an unhandled exception. A traceback and crash record exist[4]
Other text, load failureAn enabled module did not load. There may be no serve() tracebackLogs in [4], then [7]
Not found or unloadableAn always-on module is missing from the list. There may be no crash recordDocs do not explain it. [7]
Code is MGR_MODULE_DEPENDENCYDependency check failed (WARN). The docs' example is a missing packageRead the detail text; install a package and restart the mgr only if it names one

The first three rows come from source L420-L433 and the fourth from L437-L450. The text alone may not settle which row applies, so confirm with the logs in [4].

[3] For a slow start, wait and watch whether pending_modules shrinks. The documentation says it appears when some modules take too long to initialize after a mgr failover, and that it may clear on its own as initialization continues in the background. If it stays, the documented step is ceph mgr fail (read the warning in [5] first). If it still persists, report it to the tracker's mgr project. That ceph tell reaches mgr_status follows the docs' example and was not checked here.

[4] Read the cause and save it to a file. When a module's serve() raises, the cluster log gets Unhandled exception from module '<name>' while running on mgr.<id>: …, the full traceback goes to the active mgr's log, and the module is marked failed (source).

console
$ ceph log last 100$ ceph crash ls$ ceph crash info <crash-id> > crash-<crash-id>.json

On a cephadm deployment, read the mgr log with cephadm logs --name mgr.<id> on the host that runs that mgr. From another host, add --fsid <fsid> (the ID shown by ceph status) (docs). A runtime exception also becomes a crash record with mgr_module and mgr_python_exception fields (source), which is why RECENT_MGR_MODULE_CRASH shows up too. For its archive order, follow Ceph "daemons have recently crashed" warning. Load failures and missing modules may leave no crash record, so if ceph crash ls is empty, read the logs first.

[5] If the error looks transient, hand the active mgr to another daemon. The docs suggest restarting the mgr or running ceph mgr fail on the active one.

console
# ceph mgr fail$ ceph mgr stat$ ceph health detail

There is no command to undo it. Compare the new ceph mgr stat with the record from [1]. If the same module fails the same way, the check returns; do not repeat the failover, take the records from [4] to [7].

[6] Disabling a module means giving up what it provides. Consider it only for a module you do not use that keeps failing.

console
# ceph mgr module disable <module># ceph mgr module enable <module>

disable refuses always-on modules (crash, status, progress, balancer, devicehealth, orchestrator, rbd_support, volumes, pg_autoscaler, telemetry) (source). Do not use ceph mgr module force disable --yes-i-really-mean-it; its confirmation text warns that commands other Ceph tools expect will disappear. If enable refuses, do not add --force to undo your change. Fix the cause named in the refusal first.

[7] If it looks like a bug, report it to the tracker. Attach crash-<id>.json, the Unhandled exception line from the cluster log (if any), the active mgr log and the output of ceph versions, with internal addresses and host names replaced. The Module failed to initialize section exists in the v19.2.7 and v20.2.5 docs but not in v19.2.3 or v18.2.7.

For other health codes, see Reading ceph health detail and HEALTH_WARN codes. For the monitor-side warning, see Ceph MON_NETSPLIT health warning.

#ceph#mgr#mgr-module-error#health-check#crash