OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

Recurring crash after watchdog restart: 1934 dies immediately after loading RAGFS

Open braincat opened this issue 1 month ago • 2 comments

Environment

  • OpenViking: 0.4.23 (Windows x64, Python 3.14)
  • llama-cpp-python: 0.3.36
  • Host: Windows 10 workstation, RTX 3060

Symptom

Server starts, loads RAGFS Rust binding, then becomes unresponsive. curl http://127.0.0.1:1934/health returns connection refused. Watchdog restarts it every 5 minutes, but it dies within seconds of starting.

Timeline (2026-11-03)

  • 12:51:38 watchdog restart
  • 12:57:38 watchdog restart
  • 13:03:38 watchdog restart
  • 13:09:38 watchdog restart
  • 13:15:38 watchdog restart
  • 13:21:21 watchdog restart

6 restarts in 30 minutes. Health check still returns 000.

Related upstream issue

  • #5528 (GGML_ASSERT crash in embedding path) was reported and closed as fixed in v0.5.0 via #5548
  • However, this is a different failure mode: not a GGML_ASSERT, but immediate death after RAGFS load
  • llama-cpp-python 0.3.36 is the latest available version; cannot upgrade to 0.5.0+ yet

Log excerpt

2026-11-03 13:23:06,569 - openviking.pyagfs - INFO - Loaded RAGFS Rust binding
2026-11-03 13:23:31,064 - openviking.server.auth.plugins.ldap - WARNING - LDAP library not available.

Then no further startup logs. Server process exits or hangs.

Workaround

Watchdog keeps restarting, but this creates instability for all dependent services (Hermes, DSH).

Request

Please investigate why 0.4.23 on Python 3.14 dies after RAGFS load, or provide a 0.5.x Windows wheel that includes the embedding path fix from #5548.

braincat avatar Nov 03 '26 05:11 braincat

Hey, quick heads-up on this:

  1. The 0.5.x Windows wheel is already live on PyPI: You can install openviking-0.5.3-cp310-abi3-win_amd64.whl directly via:
pip install -U "openviking[local-embed]==0.5.3"

This includes the embedding lock / native concurrency fix from #5548.

  1. Version clarification: v0.5.0 / v0.5.3 refers to the OpenViking release, not llama-cpp-python. llama-cpp-python 0.3.36 is indeed the latest upstream release and is fully compatible with OpenViking 0.5.x.
  2. Python 3.14 on Windows: In OpenViking's startup sequence, right after the LDAP warning, Uvicorn's lifespan starts and initializes LocalDenseEmbedder, loading llama.dll. Because Python 3.14 is still pre-release, native C++/CUDA extensions on Windows frequently hit unhandled Access Violations (0xC0000005) that kill the process silently before port 1934 can open. If upgrading to 0.5.3 still dies silently on your machine, try running it under Python 3.11 or 3.12 (standard stable versions for Windows CUDA/C++ bindings), or launch with below command to capture the faulting native DLL in your terminal.
python -X faulthandler -m openviking.server.bootstrap --port 1934

mohitdixit02 avatar Nov 03 '26 14:11 mohitdixit02

One correction to the previous reply: CPython 3.14.0 has been a stable release since October 7, 2025, so Python 3.14 itself is not a pre-release. That does not establish compatibility of the specific Windows native-extension combination in this report. https://www.python.org/downloads/release/python-3140/

PyPI lists the openviking-0.5.3-cp310-abi3-win_amd64.whl artifact. If 0.5.3 has already been tested and the failure remains, could you confirm the exact Python build and OpenViking version, whether the process exits or hangs, and (if it exits) the exit code and Windows Event Viewer faulting module/exception code? The current log does not identify the failing native component. Running the exact tested interpreter with -X faulthandler may also capture useful Python-side frames. https://pypi.org/project/openviking/0.5.3/

r266-tech avatar Nov 04 '26 04:11 r266-tech