Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: fw doctor Watchtower smoke test probes localhost, so all endpoints fail when Watchtower is bound to FW_HOST

Aperta Adatta ai principianti
#97 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, shell
Ambito
cli, testing

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

area:cli bug severity:medium status:fixed-on-bleeding-edge triaged
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" --json
  • web/smoke_test.py:116: base = f"http://localhost:{port}"
  • web/smoke_test.py:184-187: the only arguments are --port, --test-client and --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
  1. FW_HOST=<a LAN or VPN address of the host> fw watchtower start --port 3010
  2. curl -s -o /dev/null -w '%{http_code}' http://<that address>:3010/ returns 200.
  3. fw doctor prints WARN Watchtower smoke: 53/53 endpoints failed, each with <urlopen error [Errno 111] Connection refused>.
  4. python3 web/smoke_test.py --port 3010 --json gives 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DimitriGeelen/agentic-engineering-framework

Tutte le issue di DimitriGeelen/agentic-engineering-framework

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.