[Bug] Nodes ls shows no devices after docker container restart #807

Closed
opened 2025-12-29 02:24:15 +01:00 by adam · 1 comment
Owner

Originally created by @Kapyyyy on GitHub (Sep 26, 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

I restarted my docker container and ran docker compose exec headscale headscale nodes ls and none of the connected devices show up. I can still see the machines on the tailscale android app.

Expected Behavior

Running docker compose exec headscale headscale nodes ls should print out the connected devices.

Steps To Reproduce

  1. Connect device/s to headscale
  2. Run docker compose exec headscale headscale nodes ls and see them in the list
  3. Restart docker container with docker compose down && docker compose up -d
  4. Run docker compose exec headscale headscale nodes ls and see no devices

Environment

- Headscale docker version: image: headscale/headscale:latest

Runtime environment

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

Anything else?

The devices are tested to be still connected and working using the same ips as before the restart.
Adding a new device overlaps and existing id and ip, but shows up when using nodes ls, the android app no longer shows other machines after removing connection and re-connecting

Edit:
After mounting the /var/lib/headscale to a location on my machine it now keeps the list intact even after restarts, not sure where the devices are connected to though and why the overlap happened.

Originally created by @Kapyyyy on GitHub (Sep 26, 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 I restarted my docker container and ran **docker compose exec headscale headscale nodes ls** and none of the connected devices show up. I can still see the machines on the tailscale android app. ### Expected Behavior Running **docker compose exec headscale headscale nodes ls** should print out the connected devices. ### Steps To Reproduce 1. Connect device/s to headscale 2. Run docker compose exec headscale headscale nodes ls and see them in the list 3. Restart docker container with docker compose down && docker compose up -d 4. Run docker compose exec headscale headscale nodes ls and see no devices ### Environment ```markdown - Headscale docker version: image: headscale/headscale:latest ``` ### Runtime environment - [X] Headscale is behind a (reverse) proxy - [X] Headscale runs in a container ### Anything else? The devices are tested to be still connected and working using the same ips as before the restart. Adding a new device overlaps and existing id and ip, but shows up when using nodes ls, the android app no longer shows other machines after removing connection and re-connecting Edit: After mounting the /var/lib/headscale to a location on my machine it now keeps the list intact even after restarts, not sure where the devices are connected to though and why the overlap happened.
adam added the bug label 2025-12-29 02:24:15 +01:00
adam closed this issue 2025-12-29 02:24:16 +01:00
Author
Owner

@Kapyyyy commented on GitHub (Sep 26, 2024):

I'm pretty sure this was just a configuration issue on my end.

@Kapyyyy commented on GitHub (Sep 26, 2024): I'm pretty sure this was just a configuration issue on my end.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#807