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 nodes list always prints debug/trace messages #2119

Closed
2 of 4 tasks
nblock opened this issue Sep 9, 2024 · 0 comments · Fixed by #2124
Closed
2 of 4 tasks

[Bug] headscale nodes list always prints debug/trace messages #2119

nblock opened this issue Sep 9, 2024 · 0 comments · Fixed by #2124
Labels
bug Something isn't working
Milestone

Comments

@nblock
Copy link
Collaborator

nblock commented Sep 9, 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

Debug and trace messages are always printed when running headscale nodes list with 0.23.0-beta.4. The command headscale serve seems to work, though.

This is a regression since 0.23.0-beta3.

Expected Behavior

Only print debug/trace when specified in the configuration

Steps To Reproduce

Prepare configuration

  • Download example config and strip /var/lib/headscale to allow local starts
  • grep -A3 "^log:" config-example.yaml
log:
  # Output formatting for logs: text or json
  format: text
  level: info

Try with headscale 0.23.0-beta.4

  • Download headscale 0.23.0-beta.4
  • Run (terminal 1): ./releases/headscale_0.23.0-beta.4_linux_amd64 -c config-example.yaml serve
  • Run (terminal 2): ./releases/headscale_0.23.0-beta.4_linux_amd64 -c config-example.yaml nodes list
2024-09-09T20:34:17+02:00 DBG Setting timeout timeout=5000
2024-09-09T20:34:17+02:00 DBG HEADSCALE_CLI_ADDRESS environment is not set, connecting to unix socket. socket=headscale.sock
2024-09-09T20:34:17+02:00 TRC ../../../runner/work/headscale/headscale/cmd/headscale/cli/utils.go:121 > Connecting via gRPC address=headscale.sock
ID | Hostname | Name | MachineKey | NodeKey | User | IP addresses | Ephemeral | Last seen | Expiration | Connected | Expired

Try with headscale 0.23.0-beta3

  • Download headscale 0.23.0-beta3
  • Run (terminal 1): ./releases/headscale_0.23.0-beta3_linux_amd64 -c config-example.yaml serve
  • Run (terminal 2): ./releases/headscale_0.23.0-beta3_linux_amd64 -c config-example.yaml nodes list
2024-09-09T20:40:38+02:00 WRN 
WARN: The "dns.use_username_in_magic_dns" configuration key is deprecated and has been removed. Please see the changelog for more details.

ID | Hostname | Name | MachineKey | NodeKey | User | IP addresses | Ephemeral | Last seen | Expiration | Connected | Expired

Environment

- OS: Debian 12
- Headscale version: 0.23.0-beta.4
- Tailscale version: -

Runtime environment

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

Anything else?

No response

@nblock nblock added the bug Something isn't working label Sep 9, 2024
@kradalby kradalby added this to the v0.23.0 milestone Sep 10, 2024
kradalby added a commit to kradalby/headscale that referenced this issue Sep 11, 2024
Fixes juanfont#2119

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
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

Successfully merging a pull request may close this issue.

2 participants