Menu
AWS CodeDeploy
User Guide (API Version 2014-10-06)

Verify the AWS CodeDeploy Agent Is Running

This section describes commands to run if you suspect the AWS CodeDeploy agent has stopped running on an instance.

Verify the AWS CodeDeploy agent for Amazon Linux or RHEL is running

To see if the AWS CodeDeploy agent is installed and running, sign in to the instance, and run the following command:

Copy
sudo service codedeploy-agent status

If the command returns an error, the AWS CodeDeploy agent is not installed. Install it as described in Install or reinstall the AWS CodeDeploy agent for Amazon Linux or RHEL .

If the AWS CodeDeploy agent is installed and running, you should see a message like The AWS CodeDeploy agent is running.

If you see a message like error: No AWS CodeDeploy agent running, start the service and run the following two commands, one at a time:

Copy
sudo service codedeploy-agent start
Copy
sudo service codedeploy-agent status

Verify the AWS CodeDeploy agent for Ubuntu Server is running

To see if the AWS CodeDeploy agent is installed and running, sign in to the instance, and run the following command:

Copy
sudo service codedeploy-agent status

If the command returns an error, the AWS CodeDeploy agent is not installed. Install it as described in Install or reinstall the AWS CodeDeploy agent for Ubuntu Server.

If the AWS CodeDeploy agent is installed and running, you should see a message like The AWS CodeDeploy agent is running.

If you see a message like error: No AWS CodeDeploy agent running, start the service and run the following two commands, one at a time:

Copy
sudo service codedeploy-agent start
Copy
sudo service codedeploy-agent status

Verify the AWS CodeDeploy agent for Windows Server is running

To see if the AWS CodeDeploy agent is installed and running, sign in to the instance, and run the following command:

Copy
powershell.exe -Command Get-Service -Name codedeployagent

You should see output similar to the following:

Copy
Status Name DisplayName ------ ---- ----------- Running codedeployagent CodeDeploy Host Agent Service

If the command returns an error, the AWS CodeDeploy agent is not installed. Install it as described in Install or reinstall the AWS CodeDeploy agent for Windows Server.

If Status shows anything other than Running, start the service with the following command:

Copy
powershell.exe -Command Start-Service -Name codedeployagent

You can restart the service with the following command:

Copy
powershell.exe -Command Restart-Service -Name codedeployagent

You can stop the service with the following command:

Copy
powershell.exe -Command Stop-Service -Name codedeployagent