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

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

Open
2 of 4 tasks
nblock opened this issue Dec 20, 2024 · 1 comment
Open
2 of 4 tasks

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

nblock opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@nblock
Copy link
Collaborator

nblock commented Dec 20, 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

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

@nblock nblock added the bug Something isn't working label Dec 20, 2024
@m1701c
Copy link

m1701c commented Dec 25, 2024

Same issue any way to work around this?

@kradalby kradalby added this to the Next milestone Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants