feat(gateway): handle launched-driver socket paths that exceed the Unix socket limit
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start where the gateway binds each launched driver's socket under $XDG_STATE_HOME/openshell/run/launch-XXXXXX/driver.sock, and compare it with the VM driver's existing over-long per-sandbox socket check. Decide between an explicit length error and a private /tmp/openshell-<uid> fallback, then add a unit test that uses a long base directory. Done means a long state directory no longer yields a bare SUN_LEN bind error and any fallback warning names the location.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
User Story
I use OpenShell with launched compute drivers (Docker, Podman, VM) and run the gateway under state directories of varying depth, including CI workspaces. I directly encountered the gateway failing to start a driver because its socket path was too long. This affects whether the gateway starts at all.
Problem Statement
The gateway binds each launched driver's Unix socket under $XDG_STATE_HOME/openshell/run/launch-XXXXXX/driver.sock. A Unix socket path is limited to about 104 bytes on Linux and macOS. When the state directory is deep, the driver fails to bind with path must be shorter than SUN_LEN and the gateway does not start. The gateway does not check the length and has no way to recover.
Impact / Why This Matters
Operators with long XDG_STATE_HOME values, such as CI workspaces or per-user directories on shared hosts, get an opaque bind error. Their workaround is to choose a shorter state directory. The VM driver already rejects over-long per-sandbox socket paths with an explicit error, so behaviour is inconsistent.
Desired Workflow
The gateway checks the socket path length before it starts a driver. When the path would be too long, it either names the cause and the fix in the error, or places the launch directory under a short private location such as /tmp/openshell-<uid> (owner-only, checked as the existing socket directory is) and logs a warning. Success: a long state directory never produces a bare SUN_LEN bind error.
Acceptance Criteria
- A state directory long enough to exceed the socket path limit does not produce a bare bind error.
- If a fallback location is used, it is private to the gateway's user and the warning names it.
- A unit test covers a long base directory.
Related: #5384, #5385. Deferred from the launcher PR to keep that change free of new behaviour.
- Ngôn ngữ chính
- Rust
- Star
- 21.5k
- Fork
- 2.1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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/OpenShell
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failureCó thể đã có người làm @TaylorMutch đã nhận 9 ngày trước. Đang mởstate:accepted state:pr-opened
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
state:triage-needed
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Tất cả issue của NVIDIA/OpenShell
Issue tương tự
-
Độ 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 2 ngày
-
autofixer: follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tursodatabase/turso#12531 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug help wanted ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
userFRM/egui-charts#4292 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CHANGELOG.md out of dateĐang mởIssue-Bug Need-Review
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
PowerShell/DSC#1832 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày