Troubleshooting¶
This document addresses common access issues for Owl CLI and Owl MCP Server.
CLI: Prompt owl not found¶
Symptom:
Resolution:
- Windows: Close the current PowerShell window and reopen it, then retry.
- Linux / macOS: Close the current terminal window and reopen it, then retry.
- Confirm that the executable file exists in the default installation directory.
Default executable paths:
- Windows:
%LOCALAPPDATA%\Programs\owl\owl.exe - Linux / macOS:
$HOME/.local/bin/owl, falling back to/usr/local/bin/owlif not writable.
Auto-install: AI tool cannot execute commands¶
Cause: The current AI tool lacks permission to execute terminal commands, or the current environment prohibits writing to local configuration.
Resolution:
- Switch to an AI tool that supports terminal command execution.
- Or, switch to Manual Installation.
Auto-install: Temporary authorization credential invalid, expired, or unauthorized¶
Cause: The OWL_TEMP_CODE has expired, been used, was copied incorrectly, or the current account lacks permission to generate authorization codes.
Resolution:
- Regenerate the temporary authorization credential in the Guance console.
- Re-execute the installation command from the Auto-install guide.
- Do not reuse an
OWL_TEMP_CODEthat has already been used.
Auto-install: Endpoint mismatch¶
Cause: The OWL_REGISTRY_ENDPOINT does not match the site where the workspace is located, or /api/v1 was incorrectly appended.
Resolution:
- Re-select the Owl CLI Endpoint based on the node where the workspace is located.
- For
OWL_REGISTRY_ENDPOINT, only fill in the root address of the Endpoint. - For private deployment environments, use the Owl CLI Endpoint provided by the actual deployment.
CLI: Authentication failure or unable to access Endpoint¶
Check the following:
- Whether
OWL_REGISTRY_ENDPOINTis the Owl CLI Endpoint for the current site. - Whether the Endpoint incorrectly appends
/api/v1. - Whether the access token is valid. Both
OWL_API_KEYandOWL_TOKENcan be used as access tokens. If both are set,OWL_API_KEYtakes precedence. - Whether the API Key has the corresponding Open API permissions.
- Whether the current terminal can access the Owl CLI Endpoint.
CLI: Prompt tool not found¶
Cause: The tool is not cached locally, or the tool name was entered incorrectly.
Resolution:
Confirm the tool name and re-execute.
CLI: Prompt category not found¶
Cause: The category name does not exist or has not been synchronized.
Resolution:
CLI: Prompt missing required parameter¶
Cause: Required parameters are missing.
Resolution:
Fill in the required parameters according to the tool definition and re-execute.
CLI: Prompt unknown parameter¶
Cause: The parameter name does not match the tool definition.
Resolution:
Verify the parameter name and re-execute.
CLI: Empty result or result does not match expectations¶
Check in the following order:
- Use
owl show <tool name>to verify parameter definitions. - Use
owl list -c <category ID>to confirm the correct tool is being executed. - Use
owl syncto refresh the local cache. - Check if the query time range is correct. Time parameters should be 13-digit millisecond timestamps.
- Check if the API Key has Open API permissions for the corresponding resources.
MCP: Client connection failure¶
Check the following:
- Whether the MCP type is configured as
streamableHttp. - Whether the URL is the Owl MCP Endpoint for the current site.
- Whether the URL ends with
/mcp. - Whether the request header contains
Authorization: Bearer <API Key>. - Whether the client's network can access the Owl MCP Endpoint.
MCP: Authentication failure¶
Check the following:
- Whether the API Key was copied correctly.
- Whether the Authorization Header format is correct.
- Whether the API Key has been disabled, deleted, or rotated.
- Whether the workspace to which the API Key belongs is the current workspace to be accessed.
Request header format:
Note: The
/mcpendpoint performs authentication before establishing the event stream. If credentials are missing or invalid, it directly returns HTTP401 Unauthorized(with theWWW-Authenticate: Bearer realm="mcp"response header) without opening thetext/event-streamevent stream. Therefore, if the client reports "connected but the event stream is empty," first confirm if it actually received a 401—this is usually an authentication issue rather than an empty stream. Please correct the credentials based on the 401 and theWWW-Authenticateheader and retry.
MCP: Tool list is empty¶
Possible causes:
- MCP client failed to connect to the service successfully.
- API Key is invalid or has insufficient permissions.
- Client did not refresh the MCP tool list.
- Incorrect Endpoint selected.
Resolution:
- Retest the MCP connection in the client.
- Confirm the Endpoint matches the workspace site.
- Confirm the Authorization Header is correct.
- Reload or restart the MCP client.
MCP: Tool call returns permission error¶
Cause: The API Key lacks the corresponding Open API permissions.
Resolution:
- Check the API Key's permission scope.
- Grant corresponding query permissions for read-only scenarios.
- Grant corresponding write permissions for write scenarios.
- It is not recommended to configure overly broad API Key permissions for Agents directly.
MCP: Tool call returns empty result¶
Check in the following order:
- Whether the query time range is correct.
- Whether the selected data domain, source, field, index exists.
- Whether discovery tools need to be called first, e.g.,
owl.metric.list,owl.log_index.list. - Whether the API Key has read permission for that data scope.
- Whether the corresponding data actually exists in the current workspace.
MCP: Write operation blocked or not taking effect¶
Possible causes:
- API Key lacks write permissions.
- Client configured for manual confirmation but confirmation was not given.
- Parameter structure does not meet tool requirements.
- Workspace side has approval or audit restrictions.
Resolution:
- Verify tool parameters.
- Verify API Key permissions.
- Check if the client is waiting for manual confirmation.
- Check workspace-side approval, audit, or permission configurations.