Error displayed instead of a Status when peer has been removed #186

Closed
opened 2025-11-20 05:07:37 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @braginini on GitHub (Sep 10, 2022).

Steps to reproduce.

  1. Enroll a peer
  2. Make sure it is connected to the management service
  3. Remove peer from the management service
  4. run netbird status command

Output:

netbird status
Error: status failed: provided peer with the key wgPubKey hOCcdJixg7waW5WxbHSxy5KnYEkvdJVP9H/F423CvjY= is not registered and no setup key or jwt was provided, remote addr is 127.0.0.1:57582

Expected something like that or other Status, e.g. Idle

Daemon version: development
CLI version: development
Daemon status: Idle
Management: Disconnected
Signal:  Disconnected
NetBird IP: N/A
Interface type: N/A
Peers count: 0/0 Connected

P.S. I think that is worth adding a new field ErrorMessage to StatusResponse. Along with status, it will show the latest error received.

Originally created by @braginini on GitHub (Sep 10, 2022). Steps to reproduce. 1. Enroll a peer 2. Make sure it is connected to the management service 3. Remove peer from the management service 4. run `netbird status` command Output: ``` netbird status Error: status failed: provided peer with the key wgPubKey hOCcdJixg7waW5WxbHSxy5KnYEkvdJVP9H/F423CvjY= is not registered and no setup key or jwt was provided, remote addr is 127.0.0.1:57582 ``` Expected something like that or other Status, e.g. Idle ``` Daemon version: development CLI version: development Daemon status: Idle Management: Disconnected Signal: Disconnected NetBird IP: N/A Interface type: N/A Peers count: 0/0 Connected ``` P.S. I think that is worth adding a new field ErrorMessage to StatusResponse. Along with status, it will show the latest error received.
saavagebueno added the bugagent labels 2025-11-20 05:07:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#186