[Bug] Unable to delete a route that doesn’t belong to anyone #863

Closed
opened 2025-12-29 02:24:59 +01:00 by adam · 0 comments
Owner

Originally created by @IamTaoChen on GitHub (Nov 27, 2024).

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

➜  docker exec -it headscale headscale routes list
ID | Node      | Prefix           | Advertised | Enabled | Primary
55 |           | ::/0             | true       | true    | -
58 |           | 0.0.0.0/0        | true       | true    | -

➜  docker exec -it headscale headscale routes delete --force -r 55
Cannot delete route 55: WHERE conditions required
➜  docker exec -it headscale headscale routes delete --force -r 58
Cannot delete route 58: WHERE conditions required

Expected Behavior

it should delete the route

Steps To Reproduce

I don't know how the route(without node) generates

Environment

- OS:
- Headscale version: 0.23
- Tailscale version:

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Anything else?

No response

Originally created by @IamTaoChen on GitHub (Nov 27, 2024). ### Is this a support request? - [X] This is not a support request ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior ```bash ➜ docker exec -it headscale headscale routes list ID | Node | Prefix | Advertised | Enabled | Primary 55 | | ::/0 | true | true | - 58 | | 0.0.0.0/0 | true | true | - ➜ docker exec -it headscale headscale routes delete --force -r 55 Cannot delete route 55: WHERE conditions required ➜ docker exec -it headscale headscale routes delete --force -r 58 Cannot delete route 58: WHERE conditions required ``` ### Expected Behavior it should delete the route ### Steps To Reproduce I don't know how the route(without node) generates ### Environment ```markdown - OS: - Headscale version: 0.23 - Tailscale version: ``` ### Runtime environment - [X] Headscale is behind a (reverse) proxy - [X] Headscale runs in a container ### Anything else? _No response_
adam added the bug label 2025-12-29 02:24:59 +01:00
adam closed this issue 2025-12-29 02:24:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#863