Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssm worker processes accumulate over time on Windows due to long path failure #618

Open
adamkbmc opened this issue Feb 13, 2025 · 4 comments

Comments

@adamkbmc
Copy link

We noticed that if we use SSM non interactive commands against Windows instances, then we see a a lot of worker processes hanging around. They don't die and eventually SSM commands fail and the machine needs a reboot. We've traced this to problems with the worker log file which has a very long path which exceeds the Windows default limit of 260 characters. For example:

2025-02-11 10:58:46.0176 WARN [ssm-session-worker] [4e77db8f999284a60eeaff5c9aecf64a142a4c1f44a74e3acb744f8f40e6e73c-znevu7gh3qqrdurq264gk2ft38] [DataBackend] [pluginName=Standard_Stream] Error opening file: open C:\ProgramData\Amazon\SSM\InstanceData\i-xxxxxxxxxxxxxxxxx\session\orchestration\4e77db8f999284a60eeaff5c9aecf64a142a4c1f44a74e3acb744f8f40e6e73c-znevu7gh3qqrdurq264gk2ft38\Standard_Stream\4e77db8f999284a60eeaff5c9aecf64a142a4c1f44a74e3acb744f8f40e6e73c-znevu7gh3qqrdurq264gk2ft38.log: The system cannot find the file specified.
The issue was resolved by setting the registry value HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled (Type: REG_DWORD) to 1 and restarting the system.

Since this registry key isn't set by default on Windows, SSM should really try and avoid creating long paths

@Aperocky
Copy link
Contributor

Aperocky commented Feb 13, 2025

Thank you for this report, we are able to reproduce and root cause and is fixing this bug.

@73dsuk25
Copy link

I realise this is a new issue but please can you update with a target fix date as this is affecting one of my services.

@drmihalj
Copy link
Contributor

Hello, the fix will be available with our next release. Thank you.

@73dsuk25
Copy link

73dsuk25 commented Mar 6, 2025

Do you have a release date for the next release yet please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants