- Newest
- Most votes
- Most comments
Hi,
Thank you for reaching out to us, it appears that your issues is related to new version of snapd (new snapd version v2.55.5 released 10 days ago), AWS is aware of the issue in the interim. You can test the workaround below and revert your snapd to previous version:
To confirm is issue, check /var/lib/amazon/ssm/update/stderr
$sudo cat /var/lib/amazon/ssm/update/stderr
error: cannot perform the following tasks:
- Make current revision for snap "amazon-ssm-agent" unavailable (snap "amazon-ssm-agent" has running apps (amazon-ssm-agent))
To resolve,
$sudo snap revert snapd <--- Command used to revert snapd
2022-05-30T13:27:29Z INFO Waiting for automatic snapd restart...
snapd reverted to 2.54.4
After reverting back to snapd 2.54.4,
I was then able to successfully update my instance
snap list <---- After
Name Version Rev Tracking Publisher Notes
amazon-ssm-agent 3.1.1476.0 5950 latest/candidate aws✓ classic
core18 20220428 2409 latest/stable canonical✓ base
snapd 2.54.4 15177 latest/stable canonical✓ snapd
Once you downgraded the snapd daemon, please try to update instance again using RunCommand AWS-UpdateSSMAgent . Let me know if this helps
Further reference to this error code please review: https://github.com/aws/amazon-ssm-agent/blob/mainline/Tools/src/update/ubuntu/snap-install.sh
echo "Starting agent..." snap start amazon-ssm-agent
if [ "$pmExit" -ne 0 ]; then echo "Package manager failed with exit code '$pmExit'" exit 125 fi
Thanks a lot for the information
Hi! Good day!
What happens when you have a Quick Setup with an "Organizational" type configuration?
If the snapd version is reverted, the SSMUpdate association (Scan instances for missing patches daily) will update it again "snapd" and the workaround will stop working. Is there any other alternative?
How will AWS notify us when they have fixed this issue?
Best regards
Relevant content
- asked 3 years ago
- asked 6 months ago
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- published 2 years ago
Same Issue Here. Cannot update to 3.1.1446.0 and rolls back. Rollback also fails.