diff --git a/scripts/verifyProxy.py b/scripts/verifyProxy.py index b22d109..13e7c90 100644 --- a/scripts/verifyProxy.py +++ b/scripts/verifyProxy.py @@ -236,7 +236,7 @@ def main() -> None: stderr=subprocess.PIPE, text=True, ) - deadline = time.monotonic() + 30 + deadline = time.monotonic() + 120 while time.monotonic() < deadline: if nginx.poll() is not None: raise RuntimeError(f"Nginx exited with code {nginx.returncode}") @@ -246,7 +246,13 @@ def main() -> None: except OSError: time.sleep(0.2) else: - raise RuntimeError("Nginx did not start listening") + nginx_logs = subprocess.run( + ["docker", "logs", nginx_name], capture_output=True, text=True, check=False + ) + raise RuntimeError( + f"Nginx did not start listening; logs=" + f"{(nginx_logs.stdout + nginx_logs.stderr)[-4000:]!r}" + ) try: wait_for_proxy(edge_port, 30)