[GH-ISSUE #5429] Cannot delete peer previously used in a reverse proxy service #11398

Open
opened 2026-08-05 01:29:34 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @polaroidkidd on GitHub (Feb 24, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5429

Describe the problem

I cannot delete a peer.

To Reproduce

Steps to reproduce the behavior:

  1. Create a peer
  2. Set up a service (reverse proxy) with that peer
  3. Delete the service
  4. Delete peer
  5. Error message Code 412: Peer d6ecpl8ku9ql8lqo0kb0 is in use by proxy d6ecpuoku9ql8lqo0ocg

Expected behavior

The peer is deleted

Are you using NetBird Cloud?

Selfhosted

NetBird version

Management v0.65.3
Dashboard v2.32.5

Is any other VPN software installed?

No

Debug output

To help us resolve the problem, please attach the following anonymized status output

netbird status -dA

I (briefly) tried getting these logs out of the docker container, but once inside the netbird-server I wasn't able to find the netbird binary. Here are the docker logs tough

netbird-server        | 2026-02-24T08:16:32.678Z ERRO [context: HTTP, requestID: d6elso0ku9ql8ls43ppg, accountID: d6ec0u8ku9qgh2vk6fmg, userID: CiQwYmU1MmMwZC05YTk1LTQxMzUtYWE3ZS0wODExNTY4MzJhZTQSBWxvY2Fs] management/server/http/handlers/peers/peers_handler.go:260: failed to delete peer: peer d6ecpl8ku9ql8lqo0kb0 is in use by proxy d6ecpuoku9ql8lqo0ocg
netbird-server        | 2026-02-24T08:16:32.678Z ERRO [userID: CiQwYmU1MmMwZC05YTk1LTQxMzUtYWE3ZS0wODExNTY4MzJhZTQSBWxvY2Fs, context: HTTP, requestID: d6elso0ku9ql8ls43ppg, accountID: d6ec0u8ku9qgh2vk6fmg] shared/management/http/util/util.go:85: got a handler error: peer d6ecpl8ku9ql8lqo0kb0 is in use by proxy d6ecpuoku9ql8lqo0ocg

Create and upload a debug bundle, and share the returned file key:

See Above

Screenshots

N/A

Additional context

N/A

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @polaroidkidd on GitHub (Feb 24, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5429 **Describe the problem** I cannot delete a peer. **To Reproduce** Steps to reproduce the behavior: 1. Create a peer 2. Set up a service (reverse proxy) with that peer 3. Delete the service 4. Delete peer 5. Error message `Code 412: Peer d6ecpl8ku9ql8lqo0kb0 is in use by proxy d6ecpuoku9ql8lqo0ocg` **Expected behavior** The peer is deleted **Are you using NetBird Cloud?** Selfhosted **NetBird version** ``` Management v0.65.3 Dashboard v2.32.5 ``` **Is any other VPN software installed?** No **Debug output** To help us resolve the problem, please attach the following anonymized status output netbird status -dA I (briefly) tried getting these logs out of the docker container, but once inside the `netbird-server` I wasn't able to find the netbird binary. Here are the docker logs tough ``` netbird-server | 2026-02-24T08:16:32.678Z ERRO [context: HTTP, requestID: d6elso0ku9ql8ls43ppg, accountID: d6ec0u8ku9qgh2vk6fmg, userID: CiQwYmU1MmMwZC05YTk1LTQxMzUtYWE3ZS0wODExNTY4MzJhZTQSBWxvY2Fs] management/server/http/handlers/peers/peers_handler.go:260: failed to delete peer: peer d6ecpl8ku9ql8lqo0kb0 is in use by proxy d6ecpuoku9ql8lqo0ocg netbird-server | 2026-02-24T08:16:32.678Z ERRO [userID: CiQwYmU1MmMwZC05YTk1LTQxMzUtYWE3ZS0wODExNTY4MzJhZTQSBWxvY2Fs, context: HTTP, requestID: d6elso0ku9ql8ls43ppg, accountID: d6ec0u8ku9qgh2vk6fmg] shared/management/http/util/util.go:85: got a handler error: peer d6ecpl8ku9ql8lqo0kb0 is in use by proxy d6ecpuoku9ql8lqo0ocg ``` Create and upload a debug bundle, and share the returned file key: See Above **Screenshots** N/A **Additional context** N/A **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [x] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the triage-needed label 2026-08-05 01:29:34 -04:00
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#11398