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 service logs get overwritten on restart #6581

Closed
anurag-work opened this issue Apr 23, 2021 · 1 comment
Closed

Teleport service logs get overwritten on restart #6581

anurag-work opened this issue Apr 23, 2021 · 1 comment
Labels
bug good-starter-issue Good starter issue to start contributing to Teleport

Comments

@anurag-work
Copy link

Description

Log file /var/lib/teleport/teleport.log gets overwritten when service is restarted
What you expected to happen:
The file should be appended to

Reproduction Steps

As minimally and precisely as possible, describe step-by-step how to reproduce the problem.

  1. Setup teleport as a service
[Unit]
Description=Teleport SSH Service
After=network.target

[Service]
Type=simple
User=teleport
Group=teleport
Restart=on-failure
EnvironmentFile=-/etc/default/teleport
ExecStart=/usr/local/bin/teleport start --pid-file=/var/lib/teleport/teleport.pid --diag-addr=0.0.0.0:3030 --config=/var/lib/teleport/teleport.yaml
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/var/lib/teleport/teleport.pid
LimitNOFILE=8192

[Install]
WantedBy=multi-user.target

teleport.yaml

teleport:
  log:
    output: /var/lib/teleport/teleport.log
    severity: DEBUG
  1. Restart teleport service

Server Details

  • Teleport version (run teleport version): 6.0.1
  • Server OS (e.g. from /etc/os-release): ubuntu 20.04/centos 7.9
  • Where are you running Teleport? (e.g. AWS, GCP, Dedicated Hardware): on prem
  • Additional details:

This makes debugging issues nearly impossible

@zmb3 zmb3 added the good-starter-issue Good starter issue to start contributing to Teleport label Sep 10, 2022
@stevenGravy stevenGravy linked a pull request Jan 22, 2023 that will close this issue
@zmb3
Copy link
Collaborator

zmb3 commented Oct 3, 2024

This was fixed with #43359

@zmb3 zmb3 closed this as completed Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good-starter-issue Good starter issue to start contributing to Teleport
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants