#1136262 golang-github-xenolf-lego: flaky test FAIL: TestChallengeWithProxy/matching_Forwarded_(chain_value): [localhost:23457] acme: error presenting token: could not start HTTP server for challenge: listen tcp 127.0.0.1:23457: bind: address already in use

#1136262#5
Date:
2026-05-11 08:28:35 UTC
From:
To:
Hi.  This package sometimes fail debci/autopkgtest triggering testing
migration blocking.

https://ci.debian.net/packages/g/golang-github-xenolf-lego/testing/amd64/70978855/#L2819

/Simon

130s === RUN   TestChallengeWithProxy/matching_Forwarded_(chain_value)
130s 2026/05/10 10:11:46 [INFO] [localhost:23457] acme: Trying to solve HTTP-01
130s     http_challenge_test.go:367:
130s         	Error Trace:	/tmp/autopkgtest-lxc.3zgd0u_m/downtmp/autopkgtest_tmp/_build/src/github.com/go-acme/lego/challenge/http01/http_challenge_test.go:436
130s         	            				/tmp/autopkgtest-lxc.3zgd0u_m/downtmp/autopkgtest_tmp/_build/src/github.com/go-acme/lego/challenge/http01/http_challenge_test.go:367
130s         	Error:      	Received unexpected error:
130s         	            	[localhost:23457] acme: error presenting token: could not start HTTP server for challenge: listen tcp 127.0.0.1:23457: bind: address already in use
130s         	Test:       	TestChallengeWithProxy/matching_Forwarded_(chain_value)
130s === RUN   TestChallengeWithProxy/Forwarded_mismatch
130s 2026/05/10 10:11:46 [INFO] [localhost:23457] acme: Trying to solve HTTP-01
130s 2026/05/10 10:11:46 [WARN] Received request for domain localhost:23457 with method GET but the domain did not match any challenge. Please ensure you are passing the Forwarded header properly.
130s === RUN   TestChallengeWithProxy/Forwarded_mismatch_(missing_information)
130s 2026/05/10 10:11:46 [INFO] [localhost:23457] acme: Trying to solve HTTP-01
130s 2026/05/10 10:11:46 [WARN] Received request for domain localhost:23457 with method GET but the domain did not match any challenge. Please ensure you are passing the Forwarded header properly.
130s === RUN   TestChallengeWithProxy/Forwarded_mismatch_(multiple_fields)
130s 2026/05/10 10:11:46 [INFO] [localhost:23457] acme: Trying to solve HTTP-01
130s 2026/05/10 10:11:46 [WARN] Received request for domain localhost:23457 with method GET but the domain did not match any challenge. Please ensure you are passing the Forwarded header properly.
130s === RUN   TestChallengeWithProxy/Forwarded_mismatch_(chain_value)
130s 2026/05/10 10:11:46 [INFO] [localhost:23457] acme: Trying to solve HTTP-01
130s 2026/05/10 10:11:46 [WARN] Received request for domain localhost:23457 with method GET but the domain did not match any challenge. Please ensure you are passing the Forwarded header properly.
130s --- FAIL: TestChallengeWithProxy (0.70s)
130s     --- PASS: TestChallengeWithProxy/no_proxy (0.03s)
130s     --- PASS: TestChallengeWithProxy/empty_string (0.01s)
130s     --- PASS: TestChallengeWithProxy/empty_Host (0.01s)
130s     --- PASS: TestChallengeWithProxy/matching_Host (0.03s)
130s     --- PASS: TestChallengeWithProxy/Host_mismatch (0.03s)
130s     --- PASS: TestChallengeWithProxy/Host_mismatch_(ignoring_forwarding_header) (0.09s)
130s     --- PASS: TestChallengeWithProxy/matching_X-Forwarded-Host (0.02s)
130s     --- PASS: TestChallengeWithProxy/matching_X-Forwarded-Host_(multiple_fields) (0.01s)
130s     --- PASS: TestChallengeWithProxy/matching_X-Forwarded-Host_(chain_value) (0.04s)
130s     --- PASS: TestChallengeWithProxy/X-Forwarded-Host_mismatch (0.02s)
130s     --- PASS: TestChallengeWithProxy/X-Forwarded-Host_mismatch_(multiple_fields) (0.02s)
130s     --- PASS: TestChallengeWithProxy/matching_X-Something-Else (0.01s)
130s     --- PASS: TestChallengeWithProxy/matching_X-Something-Else_(multiple_fields) (0.03s)
130s     --- PASS: TestChallengeWithProxy/matching_X-Something-Else_(chain_value) (0.03s)
130s     --- PASS: TestChallengeWithProxy/X-Something-Else_mismatch (0.04s)
130s     --- PASS: TestChallengeWithProxy/X-Something-Else_mismatch_(multiple_fields) (0.04s)
130s     --- PASS: TestChallengeWithProxy/X-Something-Else_mismatch_(chain_value) (0.03s)
130s     --- PASS: TestChallengeWithProxy/matching_Forwarded (0.03s)
130s     --- PASS: TestChallengeWithProxy/matching_Forwarded_(multiple_fields) (0.09s)
130s     --- FAIL: TestChallengeWithProxy/matching_Forwarded_(chain_value) (0.02s)
130s     --- PASS: TestChallengeWithProxy/Forwarded_mismatch (0.03s)
130s     --- PASS: TestChallengeWithProxy/Forwarded_mismatch_(missing_information) (0.01s)
130s     --- PASS: TestChallengeWithProxy/Forwarded_mismatch_(multiple_fields) (0.04s)
130s     --- PASS: TestChallengeWithProxy/Forwarded_mismatch_(chain_value) (0.01s)
130s FAIL
130s FAIL	github.com/go-acme/lego/challenge/http01	0.807s