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

Binary data in teleport log #9465

Closed
igtsekov opened this issue Dec 17, 2021 · 3 comments
Closed

Binary data in teleport log #9465

igtsekov opened this issue Dec 17, 2021 · 3 comments
Labels

Comments

@igtsekov
Copy link

igtsekov commented Dec 17, 2021

Description

What happened:
From time to time I am experiencing a very strange issue. Binary data is saved into the teleport logs. It looks like this:

^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@

and the log is getting HUGE. After restart, the problem is fixed.
What you expected to happen:
The logs to be normal.

Reproduction Steps

  1. start teleport process
  2. wait for some logs to accumulate
  3. truncate the log file (echo > <path/to/log/file>)
  4. wait for new logs to be added to the file
  5. see the beginning of the file (less <path/to/log/file>)

Server Details

  • Teleport version (run teleport version): v7.1.3
  • Server OS (e.g. from /etc/os-release): Ubuntu 16.04.7 LTS
  • Where are you running Teleport? (e.g. AWS, GCP, Dedicated Hardware): AWS
  • Additional details: no

Client Details

  • Tsh version (tsh version): v7.1.3
  • Computer OS (e.g. Linux, macOS, Windows): macOS
  • Browser version (for UI-related issues): 94.0.1 (64-bit)
  • Installed via (e.g. apt, yum, brew, website download): website download
  • Additional details: no

Debug Logs

Please include or attach debug logs, when appropriate. Obfuscate sensitive information!

  • Start Teleport with --debug flag (teleport --debug) 🤷
  • Run tsh with --debug flag (tsh --debug) 🤷
    I do not have any additional information.
@igtsekov igtsekov added the bug label Dec 17, 2021
@igtsekov igtsekov changed the title Strange symbols in the log file Binary data in teleport log Dec 17, 2021
@igtsekov
Copy link
Author

After some digging around we found out that when the size of the log file is changed for some reason, for example, rotate it (we are using logrorate) when the next log message is added to the file at the beginning of the file is filled with binary data.

@igtsekov
Copy link
Author

fix: #9468

@zmb3
Copy link
Collaborator

zmb3 commented Oct 3, 2024

This has been resolved.

@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
Projects
None yet
Development

No branches or pull requests

2 participants