Skip to content

M043_quarantine_display_summaries migration shows complete in migration_log but health check reports failure #125

Description

@unfall103-debug

Description:

After upgrading to v4.0.10, the daemon health check consistently reports migration_failures: ["M043_quarantine_display_summaries"] and the service never enters the ready state.

Steps to reproduce:

  1. Run slm db migrate --status — shows M043_quarantine_display_summaries: complete
  2. Query migration_log table — status is also complete
  3. Check /health endpoint — migrations: false, migration_failures contains M043_quarantine_display_summaries

Expected behavior:

When a migration is complete in migration_log, the health check should report migrations: true and the service should enter ready state.

Actual behavior:

The migration has clearly succeeded (confirmed both by slm db migrate --status and direct database query), but the health check falsely reports it as failed, keeping the service perpetually in not_ready state.

Environment:

  • Version: superlocalmemory 4.0.10
  • Database path: /root/.superlocalmemory/memory.db
  • Deployment: systemd service
  • OS: Ubuntu / Debian

Additional context:

  • migration_log query result:
    M043_quarantine_display_summaries|complete|2026-08-22T16:25:46.767075+00:00
    
  • /health output (key fields):
    "ready": false,
    "readiness": {
      "migrations": false,
      "migration_failures": ["M043_quarantine_display_summaries"]
    }
  • slm db migrate reports: Applied=0 Skipped=24 Failed=0
  • slm db migrate --status shows M043 as complete
  • systemctl restart slm does not resolve the issue
  • Clearing cache/state files (*.pid, *.sock, *.lock, *.db-shm, *.db-wal) does not resolve the issue

Suspected cause:

The health check logic appears to be reading from a separate failure marker (not migration_log) that is not being cleared when the migration actually succeeds. This may be a bug in the v4.0.10 migration verification logic.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions