Problem
The tfe-admin health-check
command fails with the following error
$ tfe-admin health-check
sh: /root/ptfe-health-check: not found
# tfe-admin is an alias of replicated admin
$ replicated admin health-check
sh: /root/ptfe-health-check: not found
Prerequisites
- Affects Terraform Enterprise v202204-1 and v202204-2.
Cause
- A change was made in the code to run this process as an unprivileged user and modified the path for the binary from
/root/ptfe-health-check
to/run/ptfe-health-check
while the alias was still referencing the old path.
Solutions:
- Create an alias in your
~/.bashrc
as depicted below:
# Edit your ~/.bashrc with your favorite text editor and add this line alias healthcheck='docker exec -it ptfe_health_check /run/ptfe-health-check' # Save your changes and exit. Then reload your profile source ~/.bashrc # Run the alias to test healthcheck checking: Archivist Health Check... | checks that Archivist is up and healthy |- ✓ PASS checking: Terraform Enterprise Health Check... | checks that Terraform Enterprise is up and can communicate with Redis and Postgres |- ✓ PASS checking: Terraform Enterprise Vault Health Check... | checks that Terraform Enterprise can connect to Vault and is able to encrypt and decrypt tokens |- ✓ PASS checking: Fluent Bit Health Check... | checks that the configure Fluent Bit server is healthy |- SKIPPED checking: RabbitMQ Health Check... | checks that RabbitMQ can be connected to and that we can send and consume messages |- ✓ PASS checking: Vault Server Health Check... | checks that the configured Vault Server is healthy |- ✓ PASS All checks passed.
Additional Information
-
A fix has been submitted and is available in v202205-1