CLI Diagnostics & Troubleshooting
AVAILABLECommon errors encountered when using the naagmani CLI and their resolutions.
1. Authentication & Token Errors #
Error: 401 Unauthorized / Token Expired
#
- Cause: The cached OAuth session or Project Service Token has expired.
- Fix: Run
naagmani auth loginto re-authenticate or generate a new token vianaagmani tokens create.
2. Connection Refused #
Error: dial tcp 127.0.0.1:8081: connect: connection refused
#
- Cause: Local development server or Docker container is not running.
- Fix: Start the Control Plane container:Or specify the remote production URL usingbash
docker start naagmani-os--api-url https://api.naagmani.app.
3. Plugin Validation Warnings #
Error: entrypoint binary not executable
#
- Cause: Missing POSIX execution permissions on the target binary.
- Fix:bash
chmod +x ./bin/plugin