Installation Troubleshooting
Solutions for the problems you're most likely to hit after installing TFE Local Directory or TFE Object Storage.
TFE Local Directory
The Agent Does Not Start
Start with the latest log entries:
sudo journalctl -u takakrypt-fte -n 100 --no-pager
The three usual suspects:
- Gateway credentials in
tfe-config.yamlare missing or incorrect, see Agent Configuration. - FUSE is not active:
sudo modprobe fuse
- The agent is still Pending or has no protected folder yet. Approve the agent, add a mount point in the dashboard, then run:
sudo takakrypt-fte enroll
Timeout Failure When Starting
Usually a leftover FUSE mount from a previous abrupt stop. Clear it with:
mount | grep takakrypt | awk '{print $3}' | xargs -r sudo fusermount -uz
Restart Limit Reached
systemd caps restarts at 5 per minute, manual ones included:
sudo systemctl reset-failed takakrypt-fte
Cannot Connect to the Gateway
curl -v https://<gateway-domain>
nslookup <gateway-domain>
sudo iptables -L -n | grep 443
sudo takakrypt-fte --sync-once --log-level=debug
Need More Detailed Logs Without Restarting the Agent
sudo takakrypt-fte log-level debug --scope=POLICY --duration=5m
# turn detailed logging off again
sudo takakrypt-fte log-level clear
This doesn't stick around permanently. It resets on the next agent restart, and scope/duration keep it from logging forever.
Collecting Material Before Contacting Support
sudo journalctl -u takakrypt-fte -n 500 > fte-logs.txt
sudo sed \
-e 's/access_token:.*/access_token: REDACTED/' \
-e 's/user_key:.*/user_key: REDACTED/' \
/etc/takakrypt/fte/tfe-config.yaml > fte-config.txt
uname -a > system-info.txt
cat /etc/os-release >> system-info.txt
df -h >> system-info.txt
Mask access_token and user_key before sending the configuration file to anyone, internal support included.
TFE Object Storage
All Requests Return 503
The client access key or secret key hasn't been filled in. Fill it out per Application and Object Storage Access Settings, then restart the agent.
403 SignatureDoesNotMatch
Three usual causes: the application's using a presigned URL (not supported here), the wrong key is in play (recheck against Step 15), or the application server and agent server clocks have drifted out of sync.
403 AccessDenied — "is not one of them"
The bucket has not been registered or is not active yet. Check the agent detail page, and look for the following line in the log:
sudo journalctl -u takakrypt-fos -f | grep "Bucket served:"
403 AccessDenied — "No security rule permits this object"
The dashboard configuration is incomplete. Check the following in order:
- The agent status must be Active, not Pending.
- The policy environment (prod/dev/etc.) must match the agent's environment.
- The Resource Set directory value must be exactly
/, not./. - A Key Rule must connect the Resource Set to an encryption key.
The Log Shows DEGRADED
Normal condition while no bucket has been added yet, or all buckets are disabled. This status changes to healthy once the agent is approved and at least one bucket is added and active.
AuthorizationHeaderMalformed
The bucket region setting in the dashboard does not match the real bucket region. This setting is fixed from the dashboard, not from the server, see Prerequisites.
Agent Fails to Start (Asks for a TLS Certificate)
listen_addr in fos-config.yaml is set to something other than 127.0.0.1, but tls_cert_file/tls_key_file aren't configured. On agent versions before 0.2.7, those settings don't exist at all. Either revert listen_addr to 127.0.0.1 and put an HTTPS reverse proxy (nginx or HAProxy) in front of TFE Object Storage, or add a valid tls_cert_file/tls_key_file pair under s3proxy if your agent is on 0.2.7 or later. Check the version first with takakrypt-fos --version.
Port 9000 Is Already in Use
sudo ss -tlnp | grep 9000
sudo grep listen_addr /etc/takakrypt/fos/fos-config.yaml
Change the port in fos-config.yaml to one that is free (example 9002), then restart the agent.
The Agent Cannot Write to a Certain Folder
See Local Storage Location to add write access through ReadWritePaths.
Cannot Connect to the Gateway
curl -v https://<gateway-domain>
nslookup <gateway-domain>
sudo iptables -L -n | grep 443
Collecting Material Before Contacting Support
sudo journalctl -u takakrypt-fos -n 500 > fos-logs.txt
sudo sed \
-e 's/access_token:.*/access_token: REDACTED/' \
-e 's/user_key:.*/user_key: REDACTED/' \
-e 's/secret_key:.*/secret_key: REDACTED/' \
/etc/takakrypt/fos/fos-config.yaml > fos-config.txt
fos-config.yaml contains more types of secrets than tfe-config.yaml: gateway credentials, the application (client) key, and the object storage key all at once. Make sure every one of them is masked before sending the file to anyone.