This guide covers common issues and their solutions when using kongctl.
Related Documentation
Incompatible with
on-prem
Tags
Authentication issues
“Authentication required” or “unauthorized” errors
Symptom: Commands fail with authentication errors.
Solutions:
- Verify you’re logged in:
kongctl get meCopied! - Re-authenticate:
kongctl logout kongctl loginCopied! - If using a PAT, verify it’s set:
echo $KONGCTL_DEFAULT_KONNECT_PAT | head -c 20Copied! -
Check that the token hasn’t expired in Konnect.
- Verify that
regionis configured as expected.
Browser login timeout
Symptom: Browser authorization doesn’t complete in time.
Solutions:
-
Complete authorization within the time limit (usually 15 minutes).
- If timeout occurs, start over:
kongctl loginCopied! - Verify that your browser isn’t blocking the redirect.
Debugging
Enable debug logging
You can enable debugging to see detailed operation logs:
export KONGCTL_DEBUG=1
export KONGCTL_LOG_LEVEL=debug
kongctl plan -f config/
Copied!
Verify configuration
Verify that the configuration file is valid:
cat ~/.config/kongctl/config.yaml
Copied!
Test API connectivity
Make a direct API call to test API connectivity:
kongctl api /v3/portals
Copied!
Check version
Ensure you’re running the latest version:
kongctl version --full
Copied!
Update kongctl if needed following the install instructions for your platform.
Getting help
If you’re still experiencing issues, do the following:
-
Check GitHub issues for similar problems.
-
Review GitHub discussions.
- Open a new issue with:
- kongctl version (
kongctl version --full) - Operating system
- Command that failed
- Full error message
- Debug logs (with sensitive data redacted)
- kongctl version (
- Contact Kong Support if you’re an enterprise customer.