mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-14 01:21:03 -05:00
[GH-ISSUE #911] [Bug] Newt agent registration fails with "HTTP error! status: undefined" #1688
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lionfish2 on GitHub (Jun 14, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/911
After successfully installing and connecting a fosrl/newt agent to a Pangolin v1.5.1 instance, the agent remains "Offline" in the UI. The Pangolin logs show an HTTP error! status: undefined immediately after handling the agent's registration message.
Versions:
Pangolin: fosrl/pangolin:1.5.1
Newt Agent: fosrl/newt:latest
CrowdSec: crowdsecurity/crowdsec:latest (v1.6.8)
Traefik: v3.4.1
Pangolin Log Error:
INFO: WebSocket connection established - Newt ID: [REDACTED]
INFO: Handling register message!
INFO: Public key mismatch. Deleting old peer...
ERROR: Message handling error: HTTP error! status: undefined
Stack: Error: HTTP error! status: undefined
at bo (file:///app/dist/server.mjs:25:32177)
Troubleshooting Steps Performed:
I have confirmed that the issue is not with the CrowdSec LAPI itself.
This proves the LAPI is working for standard bouncers, but the Pangolin application fails when it tries to communicate with it during Newt registration.
@oschwartz10612 commented on GitHub (Jun 15, 2025):
Hi! Thanks for posting your troubleshooting and logs!
This is caused by Pangolin not being able to address the Gerbil container actually. When newt connects it needs to add a peer to the wireguard server. Can you make sure you have deployed Gerbil and it is reachable from Pangolin within the docker network at the --reachableAt flag? If you need help feel free to post your docker compose.
I updated this error in ddd2924 to make it easier for people to know what is going on.
@github-actions[bot] commented on GitHub (Jun 30, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@github-actions[bot] commented on GitHub (Jul 14, 2025):
This issue has been automatically closed due to inactivity. If you believe this is still relevant, please open a new issue with up-to-date information.