This page provides common troubleshooting actions that you can take to solve Smart Agent issues.
LD_PRELOAD Issues
When you run a CLI command to manage Smart Agent, an error message similar to the following is displayed:
terminate called after throwing an instance of 'spdlog::spdlog_ex'
what(): logger with name 'stderr' already exists
Aborted (core dumped)
CODE
To resolve this issue, run the command in a new session.
General Issues
You can troubleshoot Smart Agent Issues by using the log files. There are two types of log files that provide insight to detect the root cause of the issue:
Service Logs
These logs record the function of the Smart Agent service. You can find the service logs where you unzipped the Smart Agent download file. To view the log, go to <smart_agent_path>/log.log
.
The service logs contain detailed information about the Smart Agent operations and any errors or warnings encountered during its operation. If the Smart Agent is not functioning as expected, these logs provides insight for troubleshooting.
You can update the config.ini
file to change the log file location.
Task Logs
The task logs are generated when Smart Agent performs a task (install, upgrade, or rollback). Smart Agent generates a unique log file, which is named based on the task and the time it was performed. If a specific task is not completed successfully, you can find detailed information about the issue by examining the corresponding task log.
These logs include detailed record of the tasks performed by the Smart Agent. The location for these logs is /tmp/appdsmartgent-ansiblelogs-*.log
. The exact log file name for a given task is displayed in the service logs. Each task performed by the Smart Agent generates a unique log file, which is named based on the task and the time it was performed. If a specific task is not completed successfully, you can find detailed information about the issue by examining the corresponding task log.
Service Logs and Task Logs provide detailed information that can help you diagnose and resolve issues with the Smart Agent. If the issue is not resolved even after reviewing the logs, contact customer support team for further assistance.