Puppet Exception on windows 2016 server

132 views
Skip to first unread message

Aditya Gupta

unread,
May 15, 2017, 5:42:21 AM5/15/17
to Puppet Developers
Dear All,

When i am trying to run puppet agent(1.10.1) using windows 2016 server  shortcut which invoke below command:

"C:\Program Files\Puppet Labs\Puppet\bin\run_puppet_interactive.bat"

Content of "run_puppet_interactive.bat":

@echo Running puppet on demand ...
@echo off
SETLOCAL
call "%~dp0environment.bat" %0 %*
@elevate.exe "%~dp0puppet_interactive.bat"


But when last line executed it through exception:

Unhandled Exception: System.IO.FileLoadException: A procedure imported by 'elevate.exe' could not be loaded.

Could you please suggest the solution for this and do we have fix or PR related to this issue.

Thanks,
Aditya


Ethan Brown

unread,
May 15, 2017, 1:04:05 PM5/15/17
to Puppet Developers
Aditya - 


Could you run the following PowerShell script to determine which versions of the .NET runtime are installed on your Server 2016 instance?




Thanks!

Aditya Gupta

unread,
May 19, 2017, 3:03:14 AM5/19/17
to Puppet Developers
Hello Ethan,

Thanks for the response.

Please find below output :

PSChildName Version   Release Product
----------- -------   ------- -------
Client      4.6.01586  394802 4.6.2
Full        4.6.01586  394802 4.6.2
Client      4.0.0.0


Thanks,
Aditya

glenn...@puppet.com

unread,
May 22, 2017, 2:48:56 PM5/22/17
to Puppet Developers
Hi Aditya,

I'm having some trouble trying to reproduce your issue and was wondering if you could answer some more questions:

1. What version of Server 2016? e.g. 2016 Server Core or full desktop

2. Would you also be able to paste the PATH environment variable

e.g. in PowerShell  "$ENV:Path"

3. I assume you're just clicking on the "Start Command Prompt with Puppet" shortcut.  is this correct?


Thanks, Glenn.

Aditya Gupta

unread,
May 23, 2017, 2:54:42 AM5/23/17
to Puppet Developers
Hello Glen,


1. We are using windows server  2016 full desktop edition (please find attachment Server_Information.jpg for more info).Could you please share the your machine build number where it is working fine.

2. please find attached path variable output where you can see the puppet path as well.

3. No i am using run puppet agent shortcut which is throwing the attached error. 
Path_Output.jpg
puppet_error.jpg
Server_Information.jpg

Ethan Brown

unread,
May 25, 2017, 9:19:40 AM5/25/17
to Puppet Developers
Hi Aditya - 

Do you have an $Env:COMSPEC environment variable?

Ethan Brown

unread,
May 25, 2017, 9:59:30 AM5/25/17
to Puppet Developers
Aditya - 

Another question I had is whether or not you have an event log message from the .NET crash that has any more detail?  A stacktrace in particular would be helpful in tracking this down.
Reply all
Reply to author
Forward
0 new messages