[gerbil]: Never online sites default to listenPort 0 #152

Closed
opened 2026-04-05 17:01:38 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @LaurenceJJones on 3/5/2026

Sites push which port and address they are listening on to Pangolin, if the site never comes online the listenPort is not configured within the database so:

483d54a9f0/server/lib/rebuildClientAssociations.ts (L580-L583)

will default the or condition to 0 which then triggers a gerbil error since nothing can bind to port 0 gerbil correctly expects a listenPort > 0.

ERROR: 2026/03/05 11:10:51 Destination port must be a positive integer for destination 4
ERROR: 2026/03/05 11:10:52 Destination port must be a positive integer for destination 4

User deleted the never online site from discussion below and it fixed the intermediate problem for them but we need to ensure that either we filter the status of the site before mapping the destinations or we simply do not define a or condition of 0.

or if we do allow an or condition of 0 then gerbil can smartly ignore these entries.

Discussed in https://github.com/orgs/fosrl/discussions/2604

*Originally created by @LaurenceJJones on 3/5/2026* Sites push which port and address they are listening on to Pangolin, if the site never comes online the `listenPort` is not configured within the database so: https://github.com/fosrl/pangolin/blob/483d54a9f04572a13cbee4e49ac7006823a1c949/server/lib/rebuildClientAssociations.ts#L580-L583 will default the `or` condition to `0` which then triggers a gerbil error since nothing can bind to port `0` gerbil correctly expects a listenPort `> 0`. ``` ERROR: 2026/03/05 11:10:51 Destination port must be a positive integer for destination 4 ERROR: 2026/03/05 11:10:52 Destination port must be a positive integer for destination 4 ``` User deleted the never online site from discussion below and it fixed the intermediate problem for them but we need to ensure that either we filter the status of the site before mapping the destinations or we simply do not define a `or` condition of `0`. or if we do allow an or condition of `0` then gerbil can smartly ignore these entries. Discussed in https://github.com/orgs/fosrl/discussions/2604
MrUnknownDE added the needs investigatingneeds investigating labels 2026-04-05 17:01:38 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#152