[Bug] Newt agent registration fails with "HTTP error! status: undefined" #1351

Closed
opened 2026-04-05 19:08:40 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @lionfish2 on 6/14/2025

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.

  1. Networking between the pangolin and crowdsec containers is working.
  2. A curl -v http://crowdsec:8080/v1/health from inside the pangolin container results in a 404 Not Found.
  3. However, the CrowdSec LAPI is functional. The Traefik bouncer connects successfully, and a manually registered test-bouncer using cscli bouncers add also validates successfully, showing a ✔️ in cscli bouncers list.

This proves the LAPI is working for standard bouncers, but the Pangolin application fails when it tries to communicate with it during Newt registration.

*Originally created by @lionfish2 on 6/14/2025* 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. 1. Networking between the pangolin and crowdsec containers is working. 2. A curl -v http://crowdsec:8080/v1/health from inside the pangolin container results in a 404 Not Found. 3. However, the CrowdSec LAPI is functional. The Traefik bouncer connects successfully, and a manually registered test-bouncer using cscli bouncers add also validates successfully, showing a ✔️ in cscli bouncers list. This proves the LAPI is working for standard bouncers, but the Pangolin application fails when it tries to communicate with it during Newt registration.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1351