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

Teleport enterprise does not load license properly #47764

Open
hugoShaka opened this issue Oct 21, 2024 · 1 comment · May be fixed by #49122
Open

Teleport enterprise does not load license properly #47764

hugoShaka opened this issue Oct 21, 2024 · 1 comment · May be fixed by #49122
Labels

Comments

@hugoShaka
Copy link
Contributor

hugoShaka commented Oct 21, 2024

Expected behavior:

  • teleport loads the license from /var/lib/teleport/license.pem
  • if it fails to load the license, it prints an actionable error

Current behavior:

  • teleport without a configuration file does not try to read the license from /var/lib/teleport/license.pem
  • teleport does not respect the --debug flag and only shows INFO logs
  • teleport swallows the real error and tells me
    ERROR: initialization failed
    # 	auth server requires a valid license file to start, please set the correct license_file path under auth_service section in your teleport 
    config or put the license into the default search location at /var/lib/teleport/license.pem
    
  • as soon as I create /etc/teleport.yaml everything starts to work

Bug details:

  • Teleport version 16.4.3 Enterprise
  • Recreation steps:
    • get an enterprise build and a valid license file
    • run teleport start --debug without a config file in /etc/teleport.yaml
  • Debug logs
@hugoShaka hugoShaka added the bug label Oct 21, 2024
@zmb3
Copy link
Collaborator

zmb3 commented Oct 21, 2024

Similar to #24954

zmb3 added a commit that referenced this issue Nov 17, 2024
Prior to this change, the code that determines where to look for a
license file would only run when a config file is provided. When running
teleport start without a config file, the license file path would
be an empty string and loading would fail.

Closes #47764
zmb3 added a commit that referenced this issue Nov 18, 2024
Prior to this change, the code that determines where to look for a
license file would only run when a config file is provided. When running
teleport start without a config file, the license file path would
be an empty string and loading would fail.

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

Successfully merging a pull request may close this issue.

2 participants