CLI Troubleshooting
Common issues when using AnkaSecure CLI and their solutions.
Configuration Issues
Command Not Found
Symptom:
Solutions:
-
Verify installation:
-
Add to PATH (if not found):
-
Reinstall CLI: Download installer
Configuration File Not Found
Symptom:
Solutions:
-
Initialize configuration:
-
Manually create config (if init fails):
Authentication Issues
401 Unauthorized
Symptom:
Solutions:
-
Verify API key:
-
Test authentication:
-
Regenerate API key: Via Admin Console if key invalid
Operation Errors
Key Not Found (404)
Symptom:
Solutions:
-
List available keys:
-
Check key ID (case-sensitive):
-
Generate missing key:
Rate Limit Exceeded (429)
Symptom:
Solutions:
-
Wait and retry:
-
Implement retry in script:
#!/bin/bash retry_count=0 max_retries=3 while [ $retry_count -lt $max_retries ]; do ankasecure-cli encrypt --key-id my-key --input data.txt --output data.enc if [ $? -eq 0 ]; then exit 0 # Success fi retry_count=$((retry_count + 1)) sleep $((retry_count * 30)) # Exponential: 30s, 60s, 90s done echo "Failed after $max_retries retries" >&2 exit 1 -
Reduce request rate: Add delays between CLI calls
-
Request quota increase: sales@ankatech.co
File Operation Errors
File Not Found
Symptom:
Solutions:
-
Verify file exists:
-
Check file permissions:
-
Use absolute path:
Permission Denied (Output File)
Symptom:
Solutions:
-
Check output directory permissions:
-
Change output location:
Network Issues
Connection Timeout
Symptom:
Causes: - High network latency - Firewall blocking HTTPS (port 443) - Proxy required but not configured
Solutions:
-
Test connectivity:
-
Configure proxy (if behind corporate firewall):
-
Increase timeout:
Debugging
Enable Debug Output
Verbose mode:
ankasecure-cli --verbose encrypt --key-id my-key --input data.txt --output data.enc
# Output includes:
# - HTTP request/response details
# - Timing information
# - Correlation IDs
Debug logs:
Check CLI Version
Ensure latest version:
ankasecure-cli version
# AnkaSecure CLI v3.0.0
# Update CLI
ankasecure-cli update # Auto-update to latest version
Common Error Messages
| Error Code | Message | Cause | Solution |
|---|---|---|---|
| AUTH_001 | Authentication failed | Invalid API key | Verify API key in config |
| KEY_001 | Key not found | Invalid key ID | List keys, verify key ID |
| CRYPTO_001 | Ciphertext integrity failed | Corrupted ciphertext | Re-encrypt from source |
| RATE_001 | Rate limit exceeded | Too many requests | Wait and retry |
| QUOTA_001 | Monthly quota exceeded | Usage limit reached | Upgrade plan |
Need Help?
- CLI Commands Reference - Complete command syntax
- Common Errors - FAQ troubleshooting
- API Errors - API error details
- Support - Contact support
Documentation Version: 3.0.0 Last Updated: 2025-12-26