Troubleshooting & Best Practices
This guide provides troubleshooting steps for common error scenarios and highlights operational best practices for developers using PowerMind ComputeAI.
1. Connection & Session Errors
1.1 Cannot connect to API
- Symptom: CLI commands return connection timeout errors.
- Resolution:
- Verify the Controller API URL is correct by running (see CLI Reference Manual for options):
- Test route access with
pingorcurl -I <API_URL>. - If the platform is deployed using internal self-signed TLS certificates, ensure you configured the endpoint with the
--insecureoption:
1.2 No user logged in or Unauthorized
- Symptom: Commands fail with authentication errors.
- Resolution:
- Confirm your session state (see CLI Reference Manual for session management details):
- If the session has expired or is inactive, log in again:
2. Training Job Failures
2.1 Job fails instantly with File not found
- Symptom: Job transitions to
failedimmediately upon submission. - Resolution:
- Ensure your python script is loading datasets using the dynamically-provided environment variable
DATASET_DIRor workspace relative path, rather than hardcoded absolute directories from your local workstation (see Runtime Variables & Contracts Guide for definitions and templates): - Check that the dataset file actually exists in the workspace:
- Ensure your python script is loading datasets using the dynamically-provided environment variable
2.2 Job fails during execution
- Symptom: Job status changes to
failedafter running for some time. - Resolution:
- Inspect training logs to review tracebacks:
- Verify that you requested the correct resource framework matches. For instance, do not request
--resource gpuif your PyTorch code does not contain.cuda()or.to('cuda')device mapping logic.
3. Checkpoint & Resume Discrepancies
3.1 Job fails to resume
- Symptom: Running
pm-compute resume <JOB_ID>returns an error. - Resolution:
- Verify the target job is in a
failedorcancelledstate. Jobs incompletedorrunningstate cannot be resumed. - Confirm that checkpoint files exist under your checkpoint folder: If no checkpoints are listed, the job must be submitted as a new run.
- Verify the target job is in a
3.2 Resume starts from epoch 0
- Symptom: Job resumes, but loops over the full epochs sequence instead of continuing from the checkpoint epoch.
- Resolution:
- Verify your training loop integrates the platform-provided
resume_epochglobal variable (for integration instructions and templates, see Runtime Variables & Contracts Guide):
- Verify your training loop integrates the platform-provided
4. Serving & Inference Errors
4.1 Deployment remains in submitted or failed state
- Symptom: Model serving endpoint is unhealthy or cannot be queried.
- Resolution:
- Inspect deployment configurations by listing status details:
- Ensure that the input and output tensor shapes you declared during model registration match the actual architecture shapes in the weights file.
4.2 Inference call returns 401 Unauthorized or 403 Forbidden
- Symptom: Prediction requests are rejected.
- Resolution:
- Confirm the
X-API-Keyheader is present and contains the exactsk_...key. - Check that the key has not been revoked:
- Confirm the
5. End-User Best Practices Checklist
- Always Use Path Environment Variables: Never hardcode physical local machine directories (e.g.
/home/user/data). UseDATASET_DIR,CHECKPOINT_DIR, andJOB_OUTPUT_DIR. - Set Realistic Checkpoint Intervals: Choose a checkpoint frequency (e.g., every 5 epochs) that balances disk writing overhead with protection against cluster node dropouts.
- Secure API Keys: Treat your inference API keys as highly sensitive credentials. Keep keys environment-scoped (dev/staging/production) and rotate them regularly.
- Clean Up Resources: Stop or delete serving deployments and keys that are no longer needed to free up slots in the GPU pool.