Find Anything becomes unavailable when first of two virtual AI Keys goes offline

Open
#141 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
ollama, postgresql, python

Research direction

Start by reproducing the issue with both AI Keys online and stopping the first-adopted Key, while checking the per-device search WebSocket and capability registration described in the report. Trace Protect’s search-host selection, PostgreSQL connectivity, and failover behavior to determine whether the limitation belongs to Protect or Keystone interoperability. The change is done when Find Anything stays enabled and uses the surviving eligible Key after the other Key goes offline.

Written by the indexing model from the issue text.

Description

needs-triage
Environment

Environment: Keystone v0.1.5, native Debian 13 installations, UNVR with Protect 7.4.114. Tested on a multilingual-search fork at 0daad0cba2e86db6041fc44df09bd562524e4276, based on upstream 48d1168b07867032c4ba684c56f02d048ec8a9ea. Not yet reproduced on an unmodified current upstream checkout.

Two independently adopted AI Keys with distinct MACs and separate PostgreSQL databases: Intel i5-1220P (LXC, CLIP FP32, vision disabled) and i5-4250U (bare metal, CLIP FP32, Ollama Qwen 3.5 2B). Both receive live recognition jobs and have independently received NL_PARSE requests.

Reproduction
  1. With both Keys online, Find Anything is available.
  2. Stop Keystone on the first-adopted Key (i5-1220P). The second Key remains online in Protect, but Find Anything displays “Edge AI is temporarily unavailable” and disables the input.
  3. Restart the first Key: search becomes available again.
  4. Stop the second Key instead: search remains available.
Expected

If supported, search should remain available through the surviving eligible Key.

Notes

A source review found no peer election in Keystone; the search WebSocket and capabilities are registered per device. The actual Protect search-host selection, PostgreSQL connectivity and failover rules are not verified. Could this be a Protect limitation or a Keystone interoperability issue? No routing changes have been attempted.

Dominant language
Python
Stars
1k
Forks
114
Avg merge
1h
Merged PRs (30d)
115

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 seeARMS/keystone

All issues in seeARMS/keystone

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.