Troubleshooting AWS Systems Manager Distributor - AWS Systems Manager

Troubleshooting AWS Systems Manager Distributor

The following information can help you troubleshoot problems that might occur when you use Distributor, a capability of AWS Systems Manager.

Wrong package with the same name is installed

Problem: You've installed a package, but Distributor installed a different package instead.

Cause: During installation, Systems Manager finds AWS published packages as results before user-defined external packages. If your user-defined package name is the same as an AWS published package name, the AWS package is installed instead of your package.

Solution: To avoid this problem, name your package something different from the name for an AWS published package.

Error: Failed to retrieve manifest: Could not find latest version of package

Problem: You received an error like the following.

Failed to retrieve manifest: ResourceNotFoundException: Could not find the latest version of package 
arn:aws:ssm:::package/package-name status code: 400, request id: guid

Cause: You're using a version of SSM Agent with Distributor that is earlier than version 2.3.274.0.

Solution: Update the version of SSM Agent to version 2.3.274.0 or later. For more information, see Updating the SSM Agent using Run Command or Walkthrough: Automatically update SSM Agent with the AWS CLI.

Error: Failed to retrieve manifest: Validation exception

Problem: You received an error like the following.

Failed to retrieve manifest: ValidationException: 1 validation error detected: Value 'documentArn'
at 'packageName' failed to satisfy constraint: Member must satisfy regular expression pattern:
arn:aws:ssm:region-id:account-id:package/package-name

Cause: You're using a version of SSM Agent with Distributor that is earlier than version 2.3.274.0.

Solution: Update the version of SSM Agent to version 2.3.274.0 or later. For more information, see Updating the SSM Agent using Run Command or Walkthrough: Automatically update SSM Agent with the AWS CLI.

Package isn't supported (package is missing install action)

Problem: You received an error like the following.

Package is not supported (package is missing install action)

Cause: The package directory structure is incorrect.

Solution: Don't zip a parent directory containing the software and required scripts. Instead, create a .zip file of all the required contents directly in the absolute path. To verify the .zip file was created correctly, unzip the target platform directory and review the directory structure. For example, the install script absolute path should be /ExamplePackage_targetPlatform/install.sh.

Error: Failed to download manifest : Document with name does not exist

Problem: You received an error like the following.

Failed to download manifest - failed to retrieve package document description: InvalidDocument: Document with name filename does not exist.

Cause: Distributor can't find the package by the package name when sharing a Distributor package from another account.

Solution: When sharing a package from another account, use the full Amazon Resource Name (ARN) for the package and not just its name.

Upload failed.

Problem: You received an error like the following.

Upload failed. At least one of your files was not successfully uploaded to your S3 bucket.

Cause: The name of your software package includes a space. For example, Hello World.msi would fail to upload.