Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete of shared host causes 500 Errors / cli errors. #133

Closed
linuxkidd opened this issue Oct 2, 2021 · 3 comments · Fixed by #147
Closed

Delete of shared host causes 500 Errors / cli errors. #133

linuxkidd opened this issue Oct 2, 2021 · 3 comments · Fixed by #147

Comments

@linuxkidd
Copy link

Reproduction:

  1. Create two namespaces
  2. Add a host to each
  3. Share a host from one namespace to another
  4. Delete the shared host

Log output:

Oct 01 21:25:05 myhost headscale[2726810]: 2021-10-02T03:25:05Z ERR Cannot fetch peers error="invalid hex key (\"\"): length=0, want 32" func=getMapResponse
Oct 01 21:25:05 myhost headscale[2726810]: 2021-10-02T03:25:05Z ERR Failed to get Map response error="invalid hex key (\"\"): length=0, want 32" handler=PollNetMap id=XXXXXXXXXXXXXXXXXXXXX

Further, headscale -n NAMESPACE nodes list fails with:

2021/10/01 21:19:35 Error fetching shared machines: record not found

Only obvious way out was to wipe headscale db and start fresh, although I'm sure some sql queries could have cleared it. I'm just starting with headscale, so no reason to spend time salvaging the DB.

@kradalby
Copy link
Collaborator

kradalby commented Oct 2, 2021

Ah good catch, @juanfont can you take a look at this?

We should probably also verify deleting nodes and shared nodes in the integration tests.

@juanfont
Copy link
Owner

juanfont commented Oct 2, 2021

Yes, I am on it. Hopefully today will be fixed.

@juanfont
Copy link
Owner

This is fixed now in v0.10.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants