Troubleshooting
This guide covers common errors you may encounter when using the Tektii CLI and how to resolve them.
Command Not Found
If you see tektii: command not found after installation, the CLI is not in your PATH.
Check Installation Location
# Find where tektii was installed which tektii # or ls ~/.local/bin/tektii
Add to PATH
Add the installation directory to your PATH:
# For bash echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc # For zsh echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
Verify Fix
tektii --version
Authentication Errors
"API key not found"
The CLI couldn't find your API key. Make sure either:
- The
TEKTII_API_KEYenvironment variable is set:
# Check if set echo $TEKTII_API_KEY # Set it export TEKTII_API_KEY="your-api-key"
- Or you're passing the
--api-keyflag:
tektii --api-key "your-api-key" strategy list
"Invalid API key"
Your API key may be expired, revoked, or incorrectly copied. Try:
- Create a new API key in Settings → API Keys
- Make sure you copied the entire key
- Check there are no extra spaces or quotes around the key
# Correct export TEKTII_API_KEY="tk_abc123def456" # Wrong - extra quotes inside export TEKTII_API_KEY="'tk_abc123def456'"
Network Errors
"Connection refused"
The CLI can't reach the API server:
- Check your internet connection
- Verify the
--api-urlsetting is correct (default:https://api.tektii.com) - Check if a firewall or proxy is blocking the connection
# Test connectivity curl -I https://api.tektii.com/health
Timeout Errors
If commands hang or timeout:
- Check your network speed and stability
- Try again - temporary network issues are common
- For large downloads, ensure sufficient disk space
Docker Issues
When using tektii version upload, you may encounter Docker-related errors.
"Docker not running"
The Docker daemon must be running for version uploads:
# macOS - start Docker Desktop open -a Docker # Linux - start Docker service sudo systemctl start docker # Verify Docker is running docker info
Platform Mismatch (Apple Silicon)
If you see Image platform mismatch (expected linux/amd64, got darwin/arm64):
The Tektii engine runs on Cloud Run, which requires linux/amd64 images. On Apple Silicon Macs (M1/M2/M3/M4), you need to build for the correct platform.
Option 1: Enable Rosetta in Docker Desktop
- Open Docker Desktop → Settings → General
- Enable "Use Rosetta for x86/amd64 emulation"
- Restart Docker Desktop
Option 2: Use Docker Buildx
# Create and use a buildx builder docker buildx create --use # Build with explicit platform docker buildx build --platform linux/amd64 -t my-image .
"Failed to detect git SHA"
The CLI auto-detects your git commit SHA for version tagging. If detection fails:
# Check you're in a git repository git status # If not, specify the SHA manually tektii version upload strat_abc123 --git-sha abc1234
If you're not using git, the CLI falls back to a timestamp-based tag: ts-1234567890.
Configuration Errors
"Failed to parse configuration file"
Your JSON configuration file has a syntax error:
# Validate JSON syntax jq . config.json # Common issues: # - Trailing commas # - Missing quotes around strings # - Unescaped special characters
Debugging
Use verbose flags to see detailed output and diagnose issues.
Verbosity Levels
| Flag | Level | Use Case |
|---|---|---|
| (default) | WARN | Normal operation |
-v | INFO | General information |
-vv | DEBUG | Detailed debugging |
-vvv | TRACE | Very detailed tracing |
-q | ERROR | Scripts (errors only) |
Examples
# Info level - see what's happening tektii -v strategy list # Debug level - troubleshoot issues tektii -vv version upload strat_abc123 # Trace level - deep debugging tektii -vvv scenario download strat_abc123 scen_def456
Logs are written to stderr, keeping stdout clean for JSON output and piping.
Still Stuck?
If you've tried the above solutions and still have issues:
- Run your command with
-vvand note the full error message - Check you're using the latest CLI version:
tektii --version - Search or open an issue on our GitHub repository
Next Steps
- Installation - Reinstall if needed
- Authentication - Configure your API key