[Bug]: manual nodes are persisted only by the desktop app, so a headless nvpair-tui node loses them on every restart
Maintainer thường phản hồi trong vòng 5 ngày
@sylvesterkaczmarek đang làm issue này rồi.
Từ ngày 10/9/2026.
- #60 của @sylvesterkaczmarek — đang mở
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, typescript
Hướng nghiên cứu
Bắt đầu với services/nvpair-ui-broker/manualnodes.go và services/nvpair-tui/ui/manualnodes.go, sau đó đối chiếu chúng với desktop/src/electron/service-bridge/manual-nodes-store.ts và hành vi replay của supervisor. Tái hiện việc khởi động lại bằng lệnh systemctl đã được tài liệu hóa và kiểm tra README của node-settings để xác định đường dẫn dữ liệu theo từng người dùng. Được xem là hoàn tất khi các node thủ công được lưu bền vững và replay sau ready cho các front end TUI, desktop và service-mode.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
PAIR version or commit
Debian package nvpair 0.1.1-463 (amd64). nvpair-ui-broker --version reports 0.40.2.
Affected component
Discovery or pairing
Environment
OS: Ubuntu 26.04 LTS, x86_64
Front end: nvpair-tui only (started by a `systemd --user` unit inside tmux, linger enabled).
The Electron desktop app is not installed on these nodes.
GPU / driver: consumer NVIDIA GPUs, driver 595.91.07
Engine: Ollama 0.33.3, adopted by PAIR as the node engine
Cluster size: 5 nodes joined to one cluster, split across two routed subnets
Steps to reproduce
- On a node whose only front end is
nvpair-tui, open the Manual tab, pressa, enter a peer address, press Enter. - Confirm the entry is listed as
OLLAMA yes / NODE yes, and that the peer appears in Proxies -> Ollama upstreams. - Restart the front end and its broker:
systemctl --user restart nvpair-tui. - Open the Manual tab again.
Expected behavior
The manual node list survives a restart on any supported front end.
This matters because on a cluster split across routed subnets, manual nodes are the only way to
pair peers at all (mDNS does not cross subnets, and #1 additionally prevents reflectors from
relaying the records). Losing the list on every restart makes such a cluster impractical to
operate without the desktop app.
Actual behavior
After the restart the Manual tab shows No manual nodes. and the peer is gone from
Ollama upstreams. Nothing was written to disk: configs/manual-nodes.json never appears
in the per-user data dir, and the configs/ directory is not created.
Reading the source, the durable list appears to be implemented only in the Electron app:
desktop/src/electron/service-bridge/manual-nodes-store.tsreads and writes
<userData>/configs/manual-nodes.jsonwith entries{ id, address, name }.desktop/src/electron/service-bridge/modular-supervisor.tsnotes that
"PAIR UI owns the durable list (manual-nodes.json) and replays it once".services/nvpair-ui-broker/manualnodes.goperforms no file I/O, and
services/nvpair-tui/ui/manualnodes.goneither reads nor writes that file.services/nvpair-manual-nodesis stateless by design — its README documents
node/add,node/remove,nodes/listand no state or config-path flag.
So the replay is desktop-only, even though services/nvpair-node-settings/README.md already
describes manual-nodes.json as living in the per-user data dir, "same directory as
settings.json" — which reads as if the file is meant to be a per-node artifact rather than a
private detail of the desktop app.
Suggested fix
Move ownership of the durable list, and the one-shot replay after ready, into
nvpair-ui-broker. The broker already supervises nvpair-manual-nodes over JSON-RPC and
already has node/add available, so every front end — desktop, TUI, and any future
service mode (cf. #49, #32) — would inherit persistence without its own copy of the logic.
Sanitized logs
Manual tab, immediately after adding the entry:
ID ADDRESS OLLAMA NODE
manual:peer-a.… peer-a.example.internal yes yes
Per-user data dir at the same moment (no configs/ directory is created):
$ ls "$HOME/.config/Nvidia Corporation/Personal AI Router/configs/"
ls: cannot access '.../configs/': No such file or directory
After systemctl --user restart nvpair-tui:
No manual nodes. Press a to add one by address.
a add node • r remove node • tab next • shift+tab prev • ? help • q quit
$ ls "$HOME/.config/Nvidia Corporation/Personal AI Router/configs/"
ls: cannot access '.../configs/': No such file or directory
Related
- #1 — mDNS answers sent from an ephemeral source port, so reflectors never relay node records
across subnets. Together with this issue, a routed multi-subnet cluster cannot be kept paired
from a headless node. - #49 — Build a service version on Linux.
- #32 — Run a services-only PAIR node as a container or Kubernetes pod.
Confirmations
- I searched existing issues for duplicates.
- This is not a security vulnerability.
- I agree to follow the Code of Conduct.
- Ngôn ngữ chính
- Go
- Star
- 1.6k
- Fork
- 266
- Merge trung bình
- 3 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/Personal-AI-Router
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
NVIDIA/Personal-AI-Router#165 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 46/100
NVIDIA/Personal-AI-Router#164 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
enhancement
Độ khó 4/5 Hơn một tuần Mức phù hợp với người mới 12/100
NVIDIA/Personal-AI-Router#162 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
NVIDIA/Personal-AI-Router#154 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Feature]: [Ollama] Alert the user about model pull failuresCó thể đã có người làm @ckelseynv đã nhận 3 ngày trước. Đang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
NVIDIA/Personal-AI-Router#152 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của NVIDIA/Personal-AI-Router
Issue tương tự
-
automation models
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/TypeScript#64758 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
SocialGouv/iterion#2369 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
daemon/cluster: imageWithDigestString returns the mirror error even when upstream resolves the tagĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ci bug priority/p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày