Open sustephen opened 1 year ago
For FreeBSD, we've change a couple paths.
[root@ss-bsd11 /usr/ports/sysutils/amazon-ssm-agent/files]# cat patch-agent_appconfig_constants__unix.go --- agent/appconfig/constants_unix.go.orig 2023-02-07 10:44:36.000000000 -0800 +++ agent/appconfig/constants_unix.go 2023-03-21 11:41:05.278740000 -0700 @@ -29,7 +29,7 @@ var (
// AgentExtensions specified the root folder for various kinds of downloaded content
AgentData = "/var/run/amazon/ssm/"
// PackageRoot specifies the directory under which packages will be downloaded and installed
PackageRoot = AgentData + "packages"
@@ -116,7 +116,7 @@ var PowerShellPluginCommandName string
// DefaultProgramFolder is the default folder for SSM -var DefaultProgramFolder = "/etc/amazon/ssm/" +var DefaultProgramFolder = "/usr/local/etc/amazon/ssm/"
var defaultWorkerPath = "/usr/bin/" var DefaultSSMAgentBinaryPath = defaultWorkerPath + "amazon-ssm-agent"
Update amazon-ssm-agent from 2.3.1205.0_1 to latest 3.2.582.0_2, the agent is failing with failed to read runtime config 'identity_config.json'.
root@ip-10-1-200-164 : /var/log/amazon/ssm > cat errors.log 2023-03-21 23:11:34 ERROR [newAgentIdentityInner @ identity_selector.go.99] [ssm-agent-worker] Agent failed to assume any identity 2023-03-21 23:11:34 ERROR [NewAgentIdentity @ identity_selector.go.112] [ssm-agent-worker] failed to find identity, retrying: failed to find agent identity 2023-03-21 23:11:34 ERROR [newAgentIdentityInner @ identity_selector.go.99] [ssm-agent-worker] Agent failed to assume any identity 2023-03-21 23:11:34 ERROR [NewAgentIdentity @ identity_selector.go.112] [ssm-agent-worker] failed to find identity, retrying: failed to find agent identity
root@ip-10-1-200-164 : /var/log/amazon/ssm > cat amazon-ssm-agent.log | tail -n 5 2023-03-21 23:15:42 WARN [ssm-agent-worker] failed to read runtime config 'identity_config.json': open /var/run/amazon/ssm/runtimeconfig/identity_config.json: no such file or directory 2023-03-21 23:15:42 INFO [ssm-agent-worker] Checking if agent identity type CustomIdentity can be assumed 2023-03-21 23:15:42 WARN [ssm-agent-worker] failed to read runtime config 'identity_config.json': open /var/run/amazon/ssm/runtimeconfig/identity_config.json: no such file or directory 2023-03-21 23:15:42 ERROR [ssm-agent-worker] Agent failed to assume any identity 2023-03-21 23:15:42 ERROR [ssm-agent-worker] error occurred when starting ssm-agent-worker: failed to find agent identity