[Bug]: fw doctor Watchtower smoke test probes localhost, so all endpoints fail when Watchtower is bound to FW_HOST
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
Direzione di ricerca
Leggi bin/fw intorno alle righe 3649 e 3672, poi web/smoke_test.py intorno alle righe 116 e 184-187. Segui come fw doctor risolve _doctor_wt_url e passa gli argomenti al test smoke; il lavoro è completato quando il test smoke verifica quell’URL confermato e ha esito positivo quando Watchtower è associato a un valore di FW_HOST diverso da un indirizzo di loopback. Aggiungi o esegui test per l’argomento dell’URL di base del test smoke e per la chiamata a fw doctor.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Shell
- Stelle
- 16
- Fork
- 6
- Merge medio
- 6h 24m
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DimitriGeelen/agentic-engineering-framework
-
area:cli bug severity:low status:fixed-on-bleeding-edge triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DimitriGeelen/agentic-engineering-framework#100 · 5 commenti ·
-
area:context bug severity:low status:accepted triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DimitriGeelen/agentic-engineering-framework#96 · 3 commenti ·
-
area:cli bug severity:medium status:accepted triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DimitriGeelen/agentic-engineering-framework#95 · 3 commenti ·
-
area:watchtower bug severity:low status:released triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DimitriGeelen/agentic-engineering-framework#94 · 4 commenti ·
-
area:watchtower enhancement severity:low status:released triaged
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 75/100
DimitriGeelen/agentic-engineering-framework#91 · 5 commenti ·
Tutte le issue di DimitriGeelen/agentic-engineering-framework
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
bug github_actions security
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DewaldOosthuizen/tech-cheat-sheets-and-notes#388 ·
I maintainer di solito rispondono entro 1 giorno
-
priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
melodic-software/claude-code-plugins#8831 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Transparent bar text colour falls back to theme colour on animated GIFs and very dark backgroundsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 2 giorni