Skip to content

[Bug]: Embedding index rebuild fails with 500 Internal Server Error (ReMe instance is None) #7446

Description

@justsavo

QwenPaw Version

2.2.0b5 (Windows desktop installer, QwenPaw-Tauri-2.2.0b5-Windows-setup.exe)

Description

Clicking "Rebuild Memory Index" in the memory panel consistently returns:

HTTP 500 Internal Server Error

The underlying traceback shows the failure is caused by self._reme being None inside ReMe's light-memory integration — not by the embedding provider configuration.

Backtrace (from qwenpaw-desktop.log):

File "...\qwenpaw\app\routers\agents.py", line 1340, in rebuild_agent_memory_index
File "...\qwenpaw\agents\memory\reme_light_memory_manager.py", line 816, in rebuild_index
File "...\qwenpaw\agents\memory\reme_embedding.py", line 141, in rebuild_index
File "...\qwenpaw\utils\io_utils.py", line 142, in run_async_to_completion
File "...\qwenpaw\agents\memory\reme_embedding.py", line 210, in _prepare_embedding_reindex
File "...\qwenpaw\agents\memory\reme_light_memory_manager.py", line 390, in _require_embedding_rebuild
AttributeError: 'NoneType' object has no attribute 'update_component'

Related PR(s): #7441 (bumps ReMe to 0.4.1.11), #7133 (embedding reindex scoped)

Component(s) Affected

  • Core / Backend (app, agents, config, providers, utils, local_models)
  • Console (frontend web UI)
  • Channels (DingTalk, Feishu, QQ, Discord, iMessage, etc.)
  • Skills
  • CLI
  • Documentation (website)
  • Tests
  • CI/CD
  • Scripts / Deploy

Environment

  • QwenPaw version: 2.2.0b5
  • OS: Windows 10 (AMD64)
  • Install method: Windows desktop installer (.exe, Tauri)
  • Python version (if applicable): backend embeds Python 3.11 (PyInstaller one-dir)

Steps to Reproduce

  1. Install QwenPaw 2.2.0b5 on Windows via the setup exe.
  2. Open the console UI -> Memory panel.
  3. Click "Rebuild Memory Index" (or call POST /api/agents/default/memory/reindex).
  4. Observe the 500 Internal Server Error.

Expected: the embedding index is rebuilt successfully (or a meaningful message).

Actual vs Expected

  • Actual: 500 Internal Server ErrorAttributeError: 'NoneType' object has no attribute 'update_component' at reme_light_memory_manager.py:390.
  • Expected: Embedding index rebuild succeeds.

Observations (supporting the root cause)

  • POST /api/agents/default/memory/reindex -> 500.
  • GET /api/agents/default/memory/status -> 503 ("ReMe is not started or status reporting is unavailable").
  • GET /api/agents/default/memory/runtime-status -> worker: idle, auto_memory.enabled: true, but embedding_reindex_required: true.
  • Embedding config is valid and reachable (SiliconFlow OpenAI-compatible endpoint, BAAI/bge-m3, dim=1024). The failure is not a provider/network issue.
  • In the installed bundle, ...\qwenpaw-backend\_internal\reme\ contains only 17 resource files (config YAML, tokenizer stopwords, steps/.../*.yaml) and 0 .py/.pyd/.pyc files. This suggests the ReMe light-memory core (@_reme instance) is not initialized at runtime, which matches self._reme = None.

Note: This is a high-confidence inference (log evidence + _reme is None) but I could not fully confirm whether reme-ai is simply missing from the bundle vs. a contract/version mismatch (_REQUIRED_REME_VERSION). Maintainer confirmation would help.

Logs / Screenshots

File "...\qwenpaw\agents\memory\reme_light_memory_manager.py", line 390, in _require_embedding_rebuild
AttributeError: 'NoneType' object has no attribute 'update_component'

Additional Notes

  • Workaround: none found yet; memory index rebuild is blocked as long as self._reme is None.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions