- From: Adam Edwards <
>
- To: "Liedike, Michael (US - Philadelphia)" <
>,
- Subject: [chef-dev] RE: Opscode Chef installing Eclipse with Plugins on Windows 2012
- Date: Wed, 8 Jan 2014 09:24:19 -0800
So this most likely has to do with winrm limiting the process (via token
restrictions and job objects) that you start from consuming certain
amounts of memory, etc. Usually you can work around this by setting
MaxMemoryPerShellMb to something big. The default is 150MB, and I've seen
lots of applications such as sqlserver setup executed through winrm fail
in unpredictable ways similar to what you're seeing.
You can use a powershell command like that below on the remote machine
(the one where you are running chef-client) to set this:
si WSMan:\localhost\Shell\MaxMemoryPerShellMB 8192 # set to 8G, better
than 150mb :)
You can see the current setting using
gi WSMan:\localhost\Shell\MaxMemoryPerShellMB
If the settting is below 1G, I would recommend increasing it to see if you
can get it to work. You could also watch memory utilizaing via taskmgr or
other tools while your command runs to validate that memory utilization is
going beyond the typical maxmemorypershellmb setting.
If this doesn't solve it, it's possible we're facing an issue with the
token, which is trickier to debug.
-Adam
-----Original Message-----
From: Liedike, Michael (US - Philadelphia)
[mailto:
Sent: Wednesday, January 8, 2014 9:11 AM
To:
;
Subject: RE: [chef-dev] Opscode Chef installing Eclipse with Plugins on
Windows 2012
Hi,
Yes I am using knife winrm to use chef remotely. I created a local
administrator and put the user into the local admin group too.
From chef workstation I run the following command:
knife winrm "<Server_IP>" "chef-client -o
recipe[eclipse_windows::maven_plugin]" -m -x Administrator -P "<password>"
This results in a hung process and eventually times out.
Mike Liedike
Deloitte Consulting, LLP
Tel/Direct: +1 215 282 1043
www.deloitte.com
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law.
If you are not the intended recipient, you should delete this message and
any disclosure, copying, or distribution of this message, or the taking of
any action based on it, by you is strictly prohibited.
v.E.1
-----Original Message-----
From: Adam Edwards
[mailto:
Sent: Wednesday, January 08, 2014 9:01 AM
To: Liedike, Michael (US - Philadelphia);
Subject: RE: [chef-dev] Opscode Chef installing Eclipse with Plugins on
Windows 2012
How are you using Chef "remotely" -- you're using knife ssh / knife winrm
to run chef-client?
-Adam
-----Original Message-----
From:
[mailto:
Sent: Wednesday, January 8, 2014 8:52 AM
To:
Subject: [chef-dev] Opscode Chef installing Eclipse with Plugins on
Windows 2012
Hello,
I am install Eclipse on a Windows 2012 using Chef remotely. I am able to
accomplish this with no issue. The problem I am running into is
installing plugins.
It seems that I need the "windows_batch" to run as administrator. I am
using the knife-windows plugin. The recipe I am using is below:
windows_batch "install_maven" do
code <<-EOH
C:\\eclipse\\eclipsec.exe -nosplash -application
org.eclipse.equinox.p2.director -repository
http://download.eclipse.org/releases/indigo/,http://repository.sonatype.or
g/content/sites/forge-sites/m2e/0.12.0/S/0.12.0.20101102-1505/
-installIU org.maven.ide.eclipse.feature.feature.group
EOH
end
The issue I see is it just hangs when it reaches this recipe remotely.
The recipe works when I run chef-client locally from a powershell prompt
ran as administrator and I change "windows_batch" to "batch". How can I
make this work when I run this remotely?
Please let me know if you need more details.
Thank you for the help!
Mike
- [chef-dev] Opscode Chef installing Eclipse with Plugins on Windows 2012, mliedike, 01/08/2014
- Message not available
- [chef-dev] RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Liedike, Michael (US - Philadelphia), 01/08/2014
- [chef-dev] RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Adam Edwards, 01/08/2014
- [chef-dev] RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Liedike, Michael (US - Philadelphia), 01/08/2014
- [chef-dev] RE: RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Liedike, Michael (US - Philadelphia), 01/08/2014
- [chef-dev] RE: RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Adam Edwards, 01/08/2014
- [chef-dev] RE: RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Liedike, Michael (US - Philadelphia), 01/08/2014
- [chef-dev] RE: RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Adam Edwards, 01/16/2014
- [chef-dev] RE: RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Liedike, Michael (US - Philadelphia), 01/17/2014
- [chef-dev] RE: RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Adam Edwards, 01/17/2014
- [chef-dev] RE: RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Liedike, Michael (US - Philadelphia), 01/17/2014
- [chef-dev] RE: RE: Opscode Chef installing Eclipse with Plugins on Windows 2012, Adam Edwards, 01/17/2014
Archive powered by MHonArc 2.6.16.