[Bug]: Container hub repeatedly refuses startup with unverified proxy ownership
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đá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
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bun, docker, kubernetes, typescript
Hướng nghiên cứu
Start with src/cli/start-owner-fence.ts and src/server/proxy-liveness.ts, then trace the startup recovery call in src/cli/index.ts. Reproduce or inspect the inconclusive liveness path using the reported PID and runtime-port state; the exact trigger is unknown. Done means startup recovers when the previous owner is proven absent while preserving ownership fencing.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Client or integration
Other
Area
Service lifecycle
Summary
In a Kubernetes hub deployment using the community image nordz0r/opencodex:2.100.0, the process failed repeatedly at recoverStartJournalAfterOwnerRecheck (src/cli/start-owner-fence.ts:14) with the following error. Persistent state included ocx.pid containing 1 and runtime-port.json recording PID 1. The exact cause of the inconclusive liveness observation has not been established; stale records and PID namespace reuse are hypotheses, not a proven mechanism.
Proxy ownership is unverified; startup refused. PID record and recovery journal were preserved. Retry when the owner can be verified.
The pod entered CrashLoopBackOff. The trigger that produced the stale state was not established, nor was the liveness observation kind recorded. The expected behavior is safe recovery when absence of the previous owner can be established, without compromising ownership fencing.
Reproduction
- Observe a Kubernetes hub pod running the community image
nordz0r/opencodex:2.100.0with a persistent state volume. In the observed incident it repeatedly exited with the error below; the trigger is unknown. - While the pod was stopped, its state directory contained
ocx.pidwith1andruntime-port.jsonwith PID 1, port 10100 and hostname0.0.0.0. Other ownership and journal files were present. - The operator stopped the workload and quarantined
ocx.pid,run/.c10100.lease,codex-home/opencodex-journal.jsonand.opencodex-owner.json; on restart the same error remained. - After additionally moving
runtime-port.jsonaside and restarting, the pod became ready and healthz returned 200. This recovery observation does not establish which file or liveness branch caused the failure. A minimaldocker killreproduction has not been verified.
Version
2.100.0 (crash observed); fence code identical in 2.100.2 (src/cli/start-owner-fence.ts, src/server/proxy-liveness.ts unchanged between the two tags).
Operating system
Debian (k3s container, linux/amd64); oven/bun image, proxy as container PID 1.
Provider and model
Not provider-specific.
Logs or error output
error: Proxy ownership is unverified; startup refused. PID record and recovery journal were preserved. Retry when the owner can be verified.
at recoverStartJournalAfterOwnerRecheck (/home/bun/app/src/cli/start-owner-fence.ts:15:15)
at recoverStartStateUnderOwnershipLease (/home/bun/app/src/cli/start-owner-fence.ts:45:23)
at async handleStart (/home/bun/app/src/cli/index.ts:446:41)
kubelet then reports CrashLoopBackOff for the pod on every restart.
Screenshots and supporting files
Observed stale state and recovery sequence are described above. Do not remove ownership records unless the previous owner has been independently proven absent; the exact failure mechanism requires further investigation.
Redacted configuration
{"runtimeRole":"hub","hostname":"0.0.0.0","port":10100}
Checks
- I searched existing issues and documentation.
- I removed secrets, tokens, account details, request credentials, and personal data.
- Ngôn ngữ chính
- TypeScript
- Star
- 16.9k
- Fork
- 1.3k
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 773
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 lidge-jun/opencodex
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
lidge-jun/opencodex#8386 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug install
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
lidge-jun/opencodex#8379 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ 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
-
Clarify when reset recovery publishes replacement headersCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
lidge-jun/opencodex#8347 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
account-pool enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
lidge-jun/opencodex#8554 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của lidge-jun/opencodex
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
g1331/phantom-circuit#93 ·
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 68/100
-
Độ 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
-
compiler
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
HerringtonDarkholme/hd-lang#1699 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
account bug communication lecture
Độ 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