Troubleshooting
Version:
This section covers common issues and solutions for the VCF Script Control Center solution.
Connection Issues
"Test Connection" Fails in Aria Operations
- Invalid API Token: Ensure the
API_TOKENin the Agent's.envfile matches the Agent API Key in the MP Credentials. - Network Connectivity: Verify that the Cloud Proxy can reach the Agent VM on HTTPS port
443(or your customAPI_PORT). Usecurl -v https://<AGENT_IP>:443/healthfrom the Cloud Proxy. - TLS Mismatch: The agent serves HTTPS only. When the certificate is self-signed, either add the CA certificate in the CA Certificate field of the adapter instance or, in a lab only, set Skip TLS Validation to
True. Leaving it atFalsewith a trusted certificate is the supported production setup. - Agent Not Running: Check the service status on the Agent VM:
sudo systemctl status script-execution-agent.service.
Script Execution Issues
Script Not Found
- Path Issue: Ensure the script exists in the
/opt/script-execution-agent/scriptsdirectory. - Relative Paths: In the MP configuration, the path should be relative to the scripts directory. If your script is at
/opt/script-execution-agent/scripts/subdir/test.sh, entersubdir/test.sh.
Permission Denied
- Executable Bit: Ensure the script is executable:
sudo chmod +x /opt/script-execution-agent/scripts/your_script.sh. - Ownership: The script must be readable by the
script-agentuser.
Empty Results / Metrics Not Appearing
- Output Format: Ensure your script output matches the selected Script Type (Nagios or Prometheus). Raw output without performance data (for Nagios) will not generate metrics.
- Timeout: If the script takes too long to execute, it might be killed by the Agent. Check the Agent logs.
Log Locations
Management Pack Logs (Aria Operations)
Logs for the adapter can be found on the Cloud Proxy at:
/storage/log/vcops/log/adapters/VCFUniversalInsightAdapter/VCFUniversalInsightAdapter_*.log
Agent Logs (Worker VM)
- Systemd Logs:
sudo journalctl -u script-execution-agent.service - Application Logs:
/opt/script-execution-agent/logs/scheduler.log(as defined in.env).
Common Error Statuses
| Status | Meaning | Solution |
|---|---|---|
worker_error | The Agent failed to start the worker process. | Check Agent logs for system resource issues or configuration errors. |
script_start_error | The script failed to start (e.g., missing interpreter). | Verify the shebang line (e.g., #!/bin/bash) and that the interpreter is installed. |
script_failed | The script executed but returned a non-zero exit code. | Check the error property on the Script Endpoint object for stderr output. |
to_cancel / cancelled | The task was cancelled (often because a new collection cycle started before the previous one finished). | Increase the Interval in the MP configuration or optimize script performance. |