Skip to content

core: kraken: Startup loop hides the reason for an incompatible extension and any job lookup error #4885

Todo

Description

@joaoantoniocardoso

Bug description

Two handlers in kraken.py drop the error they catch. Impact is low. Both follow one rule: a handler must keep the reason.

  1. init_dead_extensions catches IncompatibleExtension and logs "is not compatible anymore" with no error text (kraken.py#L71-L72). The extension then starts anyway with no digest. The log does not say why it is incompatible.
  2. is_install_default_ext_job_created catches Exception and returns False (kraken.py#L96-L101). JobsManager.get_by_identifier raises only JobNotFound today. A later change that raises something else would create a duplicate job with no log.

Fix: bind the error in item 1 and add it to the log line. Catch JobNotFound only in item 2.

Steps to reproduce

  1. Item 1: make fetch_extension_version raise IncompatibleExtension("needs core 1.5") for a dead extension. (from code reading, not run)
  2. Run init_dead_extensions.
  3. The log says only "is not compatible anymore".
  4. Item 2: no run. A code check shows the catch is wider than the one error that can happen.

Primary pain point(s)

A maintainer cannot see why an extension is incompatible from the log. Workaround: none known.

Additional context

Environment: code reading only. Code: bluerobotics/BlueOS 1.4-dev at fa7614a (measured).
Found by the swallowed-errors audit (rows 28 and 32). Duplicate check (state all): "swallow error kraken", "incompatible extension log". No issue covers it.

Evidence

Audit: DEV/efforts/kraken-4313/swallowed-errors-audit.md, rows 28 and 32.

Activity

  1. added
    bug
    core
    triage
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcorekrakentriage

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions