Skip to content

fix: propagate P2P_PORT and QUIC_PORT as ENV in Dockerfile#61

Merged
nflaig merged 1 commit into
dappnode:mainfrom
lodekeeper:fix/quic-port-env
Mar 20, 2026
Merged

fix: propagate P2P_PORT and QUIC_PORT as ENV in Dockerfile#61
nflaig merged 1 commit into
dappnode:mainfrom
lodekeeper:fix/quic-port-env

Conversation

@lodekeeper
Copy link
Copy Markdown
Contributor

@lodekeeper lodekeeper commented Mar 20, 2026

Problem

CI is failing since QUIC PR #59 was merged. The beacon-chain container crash-loops and never starts, causing the attestation test to time out.

P2P_PORT and QUIC_PORT are defined as docker-compose build args but never declared as ARG/ENV in the Dockerfile, so they're unavailable at container runtime. This causes --quicPort= (empty) to be passed to Lodestar which crashes on startup.

Fix

Add ARG + ENV declarations for both P2P_PORT and QUIC_PORT in the Dockerfile, matching the pattern used by other consensus client packages (Lighthouse, Prysm, Teku).

CI Timeline

  • 97efa5d (v1.41.0 bump, 20:39 UTC) — passed, release created
  • f264edb (QUIC PR Enable quic #59, 21:12 UTC) — beacon container never starts
  • f530f69 (retry, 22:01 UTC) — same failure

@lodekeeper lodekeeper force-pushed the fix/quic-port-env branch 2 times, most recently from 1f19a40 to 0a9ffb9 Compare March 20, 2026 11:53
@lodekeeper lodekeeper changed the title fix: remove explicit --quicPort flag, use Lodestar default fix: drop explicit --quicPort, rely on Lodestar default (port + 1) Mar 20, 2026
Build args P2P_PORT and QUIC_PORT from docker-compose were not
declared as ARG/ENV in the Dockerfile, so they were unavailable at
container runtime. This caused --quicPort= to be passed as empty
which crashes Lodestar.

Add ARG + ENV declarations for both ports, matching the pattern
used by other consensus client packages (Lighthouse, Prysm, Teku).
@lodekeeper lodekeeper changed the title fix: drop explicit --quicPort, rely on Lodestar default (port + 1) fix: propagate P2P_PORT and QUIC_PORT as ENV in Dockerfile Mar 20, 2026
@nflaig nflaig merged commit 6bfa03f into dappnode:main Mar 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants