[Bug]: fw doctor Watchtower smoke test probes localhost, so all endpoints fail when Watchtower is bound to FW_HOST
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
Đọc bin/fw quanh dòng 3649 và 3672, sau đó đọc web/smoke_test.py quanh dòng 116 và 184-187. Theo dõi cách fw doctor phân giải _doctor_wt_url và truyền các đối số cho smoke test; công việc hoàn tất khi smoke test kiểm tra URL đã xác minh đó và chạy thành công khi Watchtower được liên kết với một giá trị FW_HOST không phải địa chỉ loopback. Thêm hoặc chạy kiểm thử cho đối số URL cơ sở của smoke test và lời gọi fw doctor.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Description
fw doctor first finds Watchtower at its real address: bin/fw:3649 resolves _watchtower_url (identity-verified) and checks ${_doctor_wt_url}/health. It then runs the smoke test with the port only:
bin/fw:3672:python3 "$FRAMEWORK_ROOT/web/smoke_test.py" --port "$_doctor_wt_port" --jsonweb/smoke_test.py:116:base = f"http://localhost:{port}"web/smoke_test.py:184-187: the only arguments are--port,--test-clientand--json; there is no way to pass a host.
When Watchtower is started with FW_HOST=<a non-loopback address> (as documented, to avoid listening on 0.0.0.0), it does not listen on localhost, so every probe is refused while the health check just passed.
Steps to Reproduce
FW_HOST=<a LAN or VPN address of the host> fw watchtower start --port 3010curl -s -o /dev/null -w '%{http_code}' http://<that address>:3010/returns 200.fw doctorprintsWARN Watchtower smoke: 53/53 endpoints failed, each with<urlopen error [Errno 111] Connection refused>.python3 web/smoke_test.py --port 3010 --jsongives the same 53 failures.
Expected Behavior
The smoke test probes the same base URL that fw doctor has just verified (for example a --base-url argument fed with $_doctor_wt_url, defaulting to localhost when absent).
Actual Behavior
WARN Watchtower smoke: 53/53 endpoints failed on every fw doctor run, while all pages answer 200 at the real address. A permanent false warning hides a real smoke failure.
fw doctor output
AI Agent
Claude Code
Operating System
Linux
Additional Context
1.8.11 (e42aa41bf), vendored consumer, Linux (Ubuntu 20.04, systemd 245), Claude Code. Watchtower started with FW_HOST set to a VPN address, as the operator's rule requires.
- Ngôn ngữ chính
- Shell
- Star
- 16
- Fork
- 6
- Merge trung bình
- 6 giờ 24 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không 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 DimitriGeelen/agentic-engineering-framework
-
area:cli bug severity:low status:fixed-on-bleeding-edge triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DimitriGeelen/agentic-engineering-framework#100 · 5 bình luận ·
-
area:context bug severity:low status:accepted triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
DimitriGeelen/agentic-engineering-framework#96 · 3 bình luận ·
-
area:cli bug severity:medium status:accepted triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
DimitriGeelen/agentic-engineering-framework#95 · 3 bình luận ·
-
area:watchtower bug severity:low status:released triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
DimitriGeelen/agentic-engineering-framework#94 · 4 bình luận ·
-
area:watchtower enhancement severity:low status:released triaged
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 75/100
DimitriGeelen/agentic-engineering-framework#91 · 5 bình luận ·
Tất cả issue của DimitriGeelen/agentic-engineering-framework
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug github_actions security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
DewaldOosthuizen/tech-cheat-sheets-and-notes#388 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
melodic-software/claude-code-plugins#8831 · 1 bình luận ·
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 72/100
-
Transparent bar text colour falls back to theme colour on animated GIFs and very dark backgroundsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 2 ngày