All Products
Search
Document Center

Enterprise Distributed Application Service:What do I do when an agent is in the Unknown or Exception state after I install it?

Last Updated:Jun 02, 2023

Problem description

After an agent is installed, the agent is in the Unknown or Exception state.

Solutions

  1. Check the std.log and agent.log log files in the /home/admin/edas-agent/logs directory on your Elastic Compute Service (ECS) instance.

    • The std.log file stores the logs that are generated when the agent is installed.

    • The agent.log file stores the operational logs of the agent.

  2. Identify and troubleshoot errors.

    • If the log files contain Permission denied or Not such file, the error occurs because you have no permissions to access specific files or directories. To fix the error, check whether the administrator account has the permissions to access all files in the /home/admin directory, and then reinstall the agent.

    • Check whether the actual ECS instance name is the same as the ECS instance name that is displayed in the /etc/hosts file. If the names are different, replace the instance name in the file with the actual instance name and run the following commands to restart the agent:

      /home/admin/edas-agent/bin/shutdown.sh
      /home/admin/edas-agent/bin/startup.sh