Troubleshooting Knowledge Transformer
Learn how to diagnose and resolve issues with Knowledge Transformer.
The troubleshooting guidance covers connection problems, file handling errors, API authentication issues, and other operational challenges you may encounter. Each issue includes a problem description and step-by-step solutions. If you cannot resolve an issue using these procedures, check the API logs for additional diagnostic information or contact your system administrator for assistance.
Transform pod fails to start
- Problem
- The
wxa4z-transformpod is inCrashLoopBackOfforErrorstate. - Solution
-
- Check the pod logs for error
messages:
oc logs -n wxa4z-zad -l app=wxa4z-transform --tail=100 - Consider common errors and solutions:
- "Secret not found: transform-secret"
-
- Error
- The transform secret was not created before deployment.
- Solution
- Create the secret and restart the
pod:
oc apply -f transform-secret.yaml oc delete pod -n wxa4z-zad -l app=wxa4z-transform
- "Missing required environment variable: MODEL_RUNTIME"
-
- Error
- The watsonx credentials secret is missing or incomplete.
- Solution
- Verify the
wxa4z-ifm-credentialssecret contains all the required keys:
The required keys are:oc get secret wxa4z-ifm-credentials -n wxa4z-zad -o jsonpath='{.data}' | jq 'keys'MODEL_RUNTIME,LLM_BASE_URL,LLM_API_KEY,WATSONX_MODEL_ID, andWATSONX_PROJECT_ID.
- "Failed to connect to LLM endpoint"
-
- Error
- The LLM endpoint is unreachable or credentials are invalid.
- Solution
-
- Verify LLM credentials and connectivity. Check
LLM_BASE_URL:
oc get secret wxa4z-ifm-credentials -n wxa4z-zad -o jsonpath='{.data.LLM_BASE_URL}' | base64 -d - Test connectivity from within the
cluster:
oc run -it --rm debug --image=curlimages/curl --restart=Never -- curl -k <LLM_BASE_URL>/health
- Verify LLM credentials and connectivity. Check
LLM_BASE_URL:
- If the issue persists, check resource
constraints:
Look for events indicating insufficient resources (CPU, memory, or ephemeral storage).oc describe pod -n wxa4z-zad -l app=wxa4z-transform
- Check the pod logs for error
messages:
Transform API requests timeout
- Problem
- Transform operations timeout before completing.
- Solution
-
- Check the current route
timeout:
oc get route wxa4z-transform -n wxa4z-zad -o jsonpath='{.metadata.annotations.haproxy\.router\.openshift\.io/timeout}' - For large files or complex transformations, increase the timeout in your
deploy-zad.yaml:transform: route: annotations: haproxy.router.openshift.io/timeout: 60m - Apply the
changes:
oc apply -f deploy-zad.yaml
- Check the current route
timeout:
Transform API returns authentication errors
- Problem
- API requests fail with 401 Unauthorized or 403 Forbidden errors.
- Solution
-
- Verify the API key is correct:
- Get the API key from the
secret:
CORRECT_API_KEY=$(oc get secret transform-secret -n wxa4z-zad -o jsonpath='{.data.TRANSFORM_API_KEY}' | base64 -d) - Compare with your configured
key:
echo "Secret API key: $CORRECT_API_KEY" echo "Your API key: $TRANSFORM_API_KEY"
- Get the API key from the
secret:
- Reconfigure the
zassistCLI with the correct API key:zassist config transform set-api-key $CORRECT_API_KEY - Verify the
configuration:
zassist config transform show
- Verify the API key is correct:
API not running
- Problem
- Cannot connect to the API. The system displays a "connection refused" error.
- Solutions
-
- Verify that the API is
running:
curl [your-api-url]/health - Check your API URL
configuration:
zassist transform config show - Update the API URL if
needed:
zassist transform config [new-api-url]
- Verify that the API is
running:
Configuration not persisting
- Problem
- The API URL configuration does not persist across terminal sessions.
- Solutions
-
- Check the current configuration:
zassist transform config show - Re-configure the API URL:
zassist transform config http://localhost:8080 - Verify the configuration file exists at ~/.zassist/config.json.
- Manually override the API URL for the current session:
export TRANSFORM_API_URL="http://localhost:8000"
- Check the current configuration:
Transform operations fail with LLM errors
- Problem
- Transform operations fail with errors related to the LLM.
- Solution
-
- Check the transform pod logs for specific LLM
errors:
oc logs -n wxa4z-zad -l app=wxa4z-transform --tail=50 | grep -i error - Common LLM errors:
- "Model not found"
-
- Error
- The
WATSONX_MODEL_IDis incorrect or the model is not deployed. - Solution
- Verify the model ID in the watsonx
credentials.
oc get secret wxa4z-ifm-credentials -n wxa4z-zad -o jsonpath='{.data.WATSONX_MODEL_ID}' | base64 -d
- "Quota exceeded" or "Rate limit"
-
- Error
- The LLM service has rate limits or quota restrictions.
- Solution
- Wait and retry the connection, or contact your LLM service administrator.
- "SSL certificate verification failed"
-
- Error
- TLS verification is enabled but the certificate is not trusted.
- Solution
-
- Either disable TLS verification (not recommended for production
environments):
transform: env: LLM_TLS_VERIFY: "false" - Or configure custom CA certificates:
transform: env: LLM_TLS_VERIFY: "true" SSL_CERT_FILE: "/etc/ssl/llm/llm-cert.pem" REQUESTS_CA_BUNDLE: "/etc/ssl/llm/llm-cert.pem"
- Either disable TLS verification (not recommended for production
environments):
- Check the transform pod logs for specific LLM
errors:
"Unknown command" error
- Problem
- The CLI does not recognize the command you entered.
- Solutions
-
- Use transform, not upload.
- When running from the cli/ directory, include the
./prefix:./zassist transform document.pdf ./knowledge - If installed to your system PATH, run without the
./prefix:zassist transform document.pdf ./knowledge
- Examples
-
Correct usage:
./zassist transform document.pdf ./knowledgeIncorrect usage:zassist upload document.pdf
"File not found" error
- Problem
- The specified file does not exist.
- Solutions
-
- Check that the file path is correct.
- Use absolute paths or ensure that you are in the correct directory.
- Verify file permissions.
Processing timeout
- Problem
- The transformation process times out before completing.
- Solutions
-
- Increase the timeout value using the --timeout flag (default is 30
minutes):
zassist transform large-file.vtt ./knowledge --timeout 60m - For very large files, use a longer timeout:
zassist transform huge-file.vtt ./knowledge -t 2h
- Increase the timeout value using the --timeout flag (default is 30
minutes):
Insufficient resources
- Problem
- Transform operations fail with out-of-memory or disk space errors.
- Solution
-
- Check current resource
usage:
oc top pod -n wxa4z-zad -l app=wxa4z-transform - Increase resource limits in your
deploy-zad.yamlfile:transform: resources: requests: cpu: 1 memory: 1Gi limits: cpu: 4 memory: 2Gi ephemeral-storage: "16Gi" # Increase for large files - Apply the
changes:
oc apply -f deploy-zad.yaml
- Check current resource
usage:
"Failed to create context blob" error
- Problem
- Cannot create the ZIP file.
- Solutions
-
- Check disk space.
- Verify write permissions in the current directory.
- Ensure input files are accessible.
API returns error
- Problem
- API rejects the request.
- Solutions
-
- Check API logs for details.
- Verify the context blob structure (should have input/ and knowledge/ directories).
- Check API documentation at
[your-api-url]/docs
"401 Unauthorized" or "403 Forbidden" error
- Problem
- API key authentication failed.
- Solutions
-
- Check if the API requires authentication (look for
SECURE MODE ENABLED
in API logs). - Set the API
key:
export TRANSFORM_API_KEY=[your-api-key-here] - Verify the API key is correct.
- Ensure the API key environment variable is set in your current session.
- Check if the API key matches the one configured on the API server.
- Check if the API requires authentication (look for
- Example
- Set the API
key:
export TRANSFORM_API_KEY=[your-api-key-here]
"Unsupported file type" error
- Problem
- The CLI reports that one or more files have unsupported file types.
- Solutions
-
- Check the list of supported file formats displayed in the error message.
- Remove unsupported files from your input directory.
- Convert unsupported files to a supported format. For more information about supported formats, see Supported file formats.
- Example
-
Error message:
❌ Error: Found 1 unsupported file(s) Unsupported files: • spreadsheet.xlsx (.xlsx not supported) Supported formats: .docx, .md, .mp4, .pdf, .pptx, .txt, .vtt Please remove or convert unsupported files and try again.