Amazon-ssm-agent: Updating amazon-ssm-agent from 2.3.707.0 to latest caused cannot find the amazon-ssm-agent-windows-amd64.tar.gz information in the Manifest file

Created on 13 Nov 2019  路  6Comments  路  Source: aws/amazon-ssm-agent

Hi, we attempted to upgrade ssm agent via aws:updateSsmAgent document and encountered a issue:

Updating amazon-ssm-agent from 2.3.707.0 to latest
Successfully downloaded https://s3.us-west-2.amazonaws.com/amazon-ssm-us-west-2/ssm-agent-manifest.json
----------ERROR-------
cannot find the amazon-ssm-agent-windows-amd64.tar.gz information in the Manifest file

After tracing code, we found that ssm agent only determines whether EC2's OS is Amazon Linux, RedHat, Ubuntu, CentOS, SuseOS, Respbian and WindowsNano container, Debian is not included.

While the else case is Windows, it will lead Debian EC2 to download Windows ssm agent.

https://github.com/aws/amazon-ssm-agent/blob/57ff56294241bacbfcefc33ea878c3ad0d5da2c3/agent/updateutil/updateutil.go#L261-L308

arch is correctly determined by runtime.GOARCH.

https://github.com/aws/amazon-ssm-agent/blob/57ff56294241bacbfcefc33ea878c3ad0d5da2c3/agent/updateutil/updateutil.go#L318

The package extension is determined to be tar.gz since the ssm document run on linux EC2.

https://github.com/aws/amazon-ssm-agent/blob/57ff56294241bacbfcefc33ea878c3ad0d5da2c3/agent/updateutil/updateutil_unix.go#L67

So the final combination of package name is amazon-ssm-agent-windows-amd64.tar.gz, which lead to this issue.

Most helpful comment

I think this issue has been fixed in 529edef5a635caa1e8e595a0b079fafa705b3821, released as 2.3.871.0.

All 6 comments

Thanks for your interest about amazon ssm agent. We鈥檒l work on this bug fix.

I am experiencing the same issue with several of my servers on debian 8.

@shihuazhang Any ETA on resolving this, as I am receiving false compliance issue warnings for my machines running ubuntu

Hi @shihuazhang any update made so far? Still getting same issue with Oracle Linux 7.
Please send a feedback. Thanks

I think this issue has been fixed in 529edef5a635caa1e8e595a0b079fafa705b3821, released as 2.3.871.0.

@CheyiLin Yes, it's been fixed, I forgot to update this thread.

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lincheney picture lincheney  路  5Comments

thedevopsmachine picture thedevopsmachine  路  4Comments

guizmaii picture guizmaii  路  3Comments

wayneworkman picture wayneworkman  路  5Comments

mvgfr picture mvgfr  路  4Comments