Jira (PUP-10600) Unable to run puppet commands via AWS Session Manager on Windows Server 2019

5 views
Skip to first unread message

Corey Benefrayim (Jira)

unread,
Jul 24, 2020, 2:07:04 PM7/24/20
to puppe...@googlegroups.com
Corey Benefrayim created an issue
 
Puppet / Improvement PUP-10600
Unable to run puppet commands via AWS Session Manager on Windows Server 2019
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2020/07/24 11:06 AM
Priority: Normal Normal
Reporter: Corey Benefrayim

Customers who are accessing EC2 Windows Server 2019 instances via AWS Session Manager are seeing the following error when trying to run the install script or puppet commands.

C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/gems/2.5.0/gems/win32-dir-0.4.9/lib/win32/dir.rb:105:in `<class:Dir>': uninitialized constant Dir::PERSONAL (Name Error)

From my understanding the issue is with the win32-dir gem, which is owned by Chef. In particular, the ssm-user, which the AWS SSM Agent creates to connect to the instance, does not have a unique user profile and instead is using C:\Windows\system32\config\systemprofile.

As a result the gem is unable to resolve the PERSONAL variable, which is looking for Documents/My Documents folder and the ssm-user does not have those folders as its using the system profile.

Current workaround is adding the install script to EC2 user-data and initiating manual puppet runs from the console.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Austin Boyd (Jira)

unread,
Jul 24, 2020, 2:08:03 PM7/24/20
to puppe...@googlegroups.com

Austin Boyd (Jira)

unread,
Jul 24, 2020, 2:08:03 PM7/24/20
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket Count: 1 2
Zendesk Ticket IDs: 38695, 39979

Austin Boyd (Jira)

unread,
Jul 24, 2020, 2:08:04 PM7/24/20
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 39979

Jarret Lavallee (Jira)

unread,
Jul 24, 2020, 2:14:03 PM7/24/20
to puppe...@googlegroups.com

Kami Olszewski (Jira)

unread,
Jul 24, 2020, 3:38:04 PM7/24/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages