[Bug] Headscale service is disabled after upgrading the deb package #891

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

Originally created by @nblock on GitHub (Dec 20, 2024).

Originally assigned to: @nblock on GitHub.

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

The headscale.service gets disabled when upgrading the deb package.

Expected Behavior

The headscale.service should stay enabled after upgrading via the deb package. The debian package should handle debian maintainer scripts well.

Steps To Reproduce

  1. sudo dpkg -i headscale_0.23.0_linux_amd64.deb
  2. sudo systemctl enable headscale
  3. sudo systemctl is-enabled headscale
    enabled
  4. sudo dpkg -i headscale_0.24.0-beta.2_linux_amd64.deb
  5. sudo systemctl is-enabled headscale
    disabled

Shell output:

$ sudo dpkg -i headscale_0.24.0-beta.2_linux_amd64.deb 
(Reading database ... 38893 files and directories currently installed.)
Preparing to unpack headscale_0.24.0-beta.2_linux_amd64.deb ...
Unpacking headscale (0.24.0~beta.2) over (0.23.0) ...
Stop and disable headscale service
Running daemon-reload
Removing run directory
Setting up headscale (0.24.0~beta.2) ...
Installing new version of config file /etc/headscale/config.yaml ...
Sudo permissions detected
Found headscale /usr/bin/headscale
PostInstall: Adding headscale user headscale
useradd: user 'headscale' already exists
PostInstall: Adding headscale group headscale
groupadd: group 'headscale' already exists
PostInstall: Adding headscale user headscale to group headscale
PostInstall: Creating headscale run directory 
PostInstall: Modifying group ownership of headscale run directory 
----------------------------------------------------------------------
 headscale package has been successfully installed.

 Please follow the next steps to start the software:

    sudo systemctl enable headscale
    sudo systemctl start headscale

 Configuration settings can be adjusted here:
    /etc/headscale/config.yaml

----------------------------------------------------------------------
$ sudo systemctl is-enabled headscale
disabled

Environment

- OS: Debian 12
- Headscale version: 0.24.0-beta.2
- Tailscale version: -

Runtime environment

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

Anything else?

Workaround: Don't forget to enable headscale after update: sudo systemctl enable headscale

Originally created by @nblock on GitHub (Dec 20, 2024). Originally assigned to: @nblock on GitHub. ### 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 The `headscale.service` gets disabled when upgrading the deb package. ### Expected Behavior The `headscale.service` should stay enabled after upgrading via the deb package. The debian package should handle debian maintainer scripts well. ### Steps To Reproduce 1. `sudo dpkg -i headscale_0.23.0_linux_amd64.deb` 2. `sudo systemctl enable headscale` 3. `sudo systemctl is-enabled headscale` enabled 4. `sudo dpkg -i headscale_0.24.0-beta.2_linux_amd64.deb` 5. `sudo systemctl is-enabled headscale` disabled Shell output: ```shell $ sudo dpkg -i headscale_0.24.0-beta.2_linux_amd64.deb (Reading database ... 38893 files and directories currently installed.) Preparing to unpack headscale_0.24.0-beta.2_linux_amd64.deb ... Unpacking headscale (0.24.0~beta.2) over (0.23.0) ... Stop and disable headscale service Running daemon-reload Removing run directory Setting up headscale (0.24.0~beta.2) ... Installing new version of config file /etc/headscale/config.yaml ... Sudo permissions detected Found headscale /usr/bin/headscale PostInstall: Adding headscale user headscale useradd: user 'headscale' already exists PostInstall: Adding headscale group headscale groupadd: group 'headscale' already exists PostInstall: Adding headscale user headscale to group headscale PostInstall: Creating headscale run directory PostInstall: Modifying group ownership of headscale run directory ---------------------------------------------------------------------- headscale package has been successfully installed. Please follow the next steps to start the software: sudo systemctl enable headscale sudo systemctl start headscale Configuration settings can be adjusted here: /etc/headscale/config.yaml ---------------------------------------------------------------------- $ sudo systemctl is-enabled headscale disabled ``` ### Environment ```markdown - OS: Debian 12 - Headscale version: 0.24.0-beta.2 - Tailscale version: - ``` ### Runtime environment - [ ] Headscale is behind a (reverse) proxy - [ ] Headscale runs in a container ### Anything else? Workaround: Don't forget to enable headscale after update: `sudo systemctl enable headscale`
adam added the bugno-stale-bot labels 2025-12-29 02:25:29 +01:00
adam closed this issue 2025-12-29 02:25:29 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Apr 19, 2025):

This issue is stale because it has been open for 90 days with no activity.

@github-actions[bot] commented on GitHub (Apr 19, 2025): This issue is stale because it has been open for 90 days with no activity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#891