amazon-ssm-agent icon indicating copy to clipboard operation
amazon-ssm-agent copied to clipboard

Snap Version Update for Ubuntu 24.04

Open sino1641 opened this issue 6 months ago • 3 comments

Hi Team, I am using the official Ubuntu 24.04 AMI with ssm agent 3.3.131.0 pre-installed with snap. But it comes with an error:

snap.amazon-ssm-agent.amazon-ssm-agent.service - Service for snap application amazon-ssm-agent.amazon-ssm-agent
     Loaded: loaded (/etc/systemd/system/snap.amazon-ssm-agent.amazon-ssm-agent.service; enabled; preset: enabled)
     Active: active (running) since   3min 39s ago
   Main PID: 1256 (amazon-ssm-agen)
      Tasks: 17 (limit: 4609)
     Memory: 21.3M (peak: 23.9M)
        CPU: 399ms
     CGroup: /system.slice/snap.amazon-ssm-agent.amazon-ssm-agent.service
             ├─1256 /snap/amazon-ssm-agent/7993/amazon-ssm-agent
             └─1278 /snap/amazon-ssm-agent/7993/ssm-agent-worker

amazon-ssm-agent.amazon-ssm-agent[1256]: INFO [EC2Identity] Checking disk for registration info
amazon-ssm-agent.amazon-ssm-agent[1256]: INFO [EC2Identity] No registration info found for ec2 instance, attempting registration
amazon-ssm-agent.amazon-ssm-agent[1256]: INFO [EC2Identity] Found registration keys
amazon-ssm-agent.amazon-ssm-agent[1256]: INFO [EC2Identity] Checking write access before registering
amazon-ssm-agent.amazon-ssm-agent[1256]: INFO [EC2Identity] Registering EC2 instance with Systems Manager
amazon-ssm-agent.amazon-ssm-agent[1256]: ERROR [Registrar] failed to register identity: error calling RegisterManagedInstance API: ValidationException: Feature not enabled
amazon-ssm-agent.amazon-ssm-agent[1256]:         status code: 400, request id: 
amazon-ssm-agent.amazon-ssm-agent[1256]: INFO [Registrar] sleeping for 2.533333333333333 minutes before retrying registration

I also tried updating to the candidate version 3.3.551.0 but with the same error.

After contacting AWS Support, they advised me to use deb installation 3.3.551.0-1 and everything works fine. Given the scenario, it seems an update on Snap is needed for seamless experience on Ubuntu 24.04 EC2 instances.

sino1641 avatar Aug 07 '24 09:08 sino1641