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

vault debug command generates several empty lines in vault.log #16228

Closed
tmekaumput opened this issue Jul 6, 2022 · 1 comment
Closed

vault debug command generates several empty lines in vault.log #16228

tmekaumput opened this issue Jul 6, 2022 · 1 comment
Labels
bug Used to indicate a potential bug core/log

Comments

@tmekaumput
Copy link

Describe the bug
When running vault debug command, then either observe the vault.log while the command is running or examine the vault.log in the archive, there are several empty lines added, noted that they were not added immediately. It also seems to grow in proportion to the runtime of the command.

To Reproduce
Steps to reproduce the behavior:

  1. Run vault debug -duration=2m -interval=15s
  2. Observe the vault.log in the archive

Expected behavior
The vault.log contains only log messages

Environment:

  • Vault Server Version (retrieve with vault status):
root@b3c7653d03ec:/# vault status
Key                      Value
---                      -----
Recovery Seal Type       shamir
Initialized              true
Sealed                   false
Total Recovery Shares    1
Threshold                1
Version                  1.11.0+ent
Build Date               2022-06-17T22:49:59Z
Storage Type             raft
Cluster Name             vault-cluster-2b1c69d5
Cluster ID               a4d2af41-cc8e-10a4-9c83-34401c18da41
HA Enabled               true
HA Cluster               https://vault-server-0-dc1:8201
HA Mode                  active
Active Since             2022-07-06T12:45:45.641272722Z
Raft Committed Index     321
Raft Applied Index       321
Last WAL                 26
  • Vault CLI Version (retrieve with vault version):
Vault v1.11.0+ent (b61eb07cb09bfd7b0cf0647a9468e94c4419ae6a), built 2022-06-17T22:49:59Z
  • Server Operating System/Architecture:
Linux b3c7653d03ec 5.13.0-52-generic #59~20.04.1-Ubuntu SMP Thu Jun 16 21:21:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Vault server configuration file(s):

root@b3c7653d03ec:/# cat /vault/config/addr.hcl
api_addr = "https://vault-server-0-dc1:8200"
cluster_addr = "https://vault-server-0-dc1:8201"
root@b3c7653d03ec:/# cat /vault/config/vault.hcl
storage "raft" {
  node_id = "vault-server-0-dc1"
  path    = "/vault/data" 
  snapshot_threshold = 512
              retry_join {
              leader_api_addr = "http://vault-server-0-dc1:8202"
            }
            retry_join {
              leader_api_addr = "http://vault-server-1-dc1:8202"
            }
            retry_join {
              leader_api_addr = "http://vault-server-2-dc1:8202"
            }
}

log_requests_level = "info"

listener "tcp" {
  address = "0.0.0.0:8202"
  tls_disable = "true"
  telemetry {
    unauthenticated_metrics_access = true
  }
}

listener "tcp" {
  address = "0.0.0.0:8200"
#  tls_disable = "true"
  cluster_address = "[::]:8201"
  tls_cert_file = "/vault/config/vault-server.crt"  
  tls_key_file = "/vault/config/vault-server.key"

}

ui = "true"
log_level="debug"

telemetry {
  prometheus_retention_time = "24h"
}

Additional context

  • Attached the sample archive observed, the symptom is repeatedly reproducible.

vault-debug-2022-07-06T12-47-17Z.tar.gz

@heatherezell
Copy link
Contributor

This was fixed by #16714, so please keep an eye out on future releases! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug core/log
Projects
None yet
Development

No branches or pull requests

2 participants