wesupport

Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

‘The version of SSM Agent on this instance doesn’t support Run As’

by | Jun 9, 2021

‘The version of SSM Agent on this instance doesn’t support Run As’ is an error we come across when the Amazon EC2 SSM Agent version is not up to date.

Here, at Bobcares, we assist our customers with several AWS queries as part of our AWS Support Services.

Today, let us see how we can resolve this AWS error.

 

‘The version of SSM Agent on this instance doesn’t support Run As’

We often notice this error when the Amazon EC2 SSM Agent version is not up to date. The exact error message looks like this:

The version of SSM Agent on this instance doesn’t support Run As. Update to the latest SSM Agent before continuing.

To fix this, we need to update the SSM Agent. We can either configure an automatic update or perform a manual update.

Moving ahead, let us discuss both of these methods.

 

  • Automatically update SSM Agent

In order to automatically update SSM Agent, we configure the Systems Manager. We can perform the update on all Linux-based and Windows-based instances in the AWS account.

Once we enable it, Systems Manager automatically checks for a new version of the agent every two weeks.

Upon a new version, Systems Manager automatically updates the agent to the latest version using the SSM document AWS-UpdateSSMAgent.

  1. Initially, we open the AWS Systems Manager console.
  2. Then in the navigation pane, we choose Fleet Manager.
  3. In the Settings tab, we choose Auto-update SSM Agent under Agent auto-update.

In addition, we can stop deploying updated versions of SSM Agent to all managed instances in your account.

To do so, we select Delete under Agent auto-update on the Settings tab.

 

  • Update SSM Agent using Run Command

We can either update to the latest version or downgrade to an older version.

Here, we will discuss how to quickly update the SSM Agent running on the Windows Server, and Linux instances.

Once we run the command, the system downloads the version from AWS, installs it, then uninstalls the previous version.

Suppose we run into an error during the process. Then, the system rolls back to the older version, and the status shows, the command failed.

  1. Initially, we open the AWS Systems Manager console.
  2. In the navigation pane, we select Run Command.
  3. In the Command document list, we select AWS-UpdateSSMAgent.
  4. Then in the Command parameters section, if necessary, we specify values for the parameters.
  5. In the Targets section, we identify the instances to run this operation by specifying tags, selecting instances manually, or specifying a resource group.
  6. For Other parameters:
    • Comment: enter information about this command.
    • Timeout (seconds): specify the number of seconds for the system to wait before failing the overall command execution.
  7. For Rate control:
    • Concurrency: specify either a number or a percentage of instances on which to run the command at the same time.
    • Error threshold: specify when to stop running the command on other instances after it fails on either a number or a percentage of instances.
  8. Suppose we want to save the command output to a file. For that, we can select the Write command output to an S3 bucket box.
  9. In the SNS notifications section, to send notifications about the status, we select the Enable SNS notifications check box.
  10. Finally, we select, Run.

[Need help with the fix? We’d be happy to assist you]

 

Conclusion

To conclude, ‘The version of SSM Agent on this instance doesn’t support Run As’ occurs when the Amazon EC2 SSM Agent version is not up to date. Today, we saw how our Support Techs go about with this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags