- From: "Liedike, Michael (US - Philadelphia)" <
>
- To: "
" <
>, "
" <
>
- Subject: [chef-dev] RE: RE: Opscode Chef installing Eclipse with Plugins on Windows 2012
- Date: Fri, 17 Jan 2014 20:03:32 +0000
- Accept-language: en-US
Hi Adam,
You are correct. Windows 2012 Out Of Memory bug was the issue.
Unfortunately I could not find the 2012 Hotfix download. I did however, try
the plugin install on a 2008 R2 server with the Hotfix installed and the
plugin installed with no issue!
Thank you for following up with this and solving the issue. Came down to
being Microsoft's fault.
Mike Liedike
-----Original Message-----
From: Adam Edwards
[mailto:
Sent: Thursday, January 16, 2014 5:10 PM
To: Liedike, Michael (US - Philadelphia);
Subject: RE: [chef-dev] RE: Opscode Chef installing Eclipse with Plugins on
Windows 2012
Ok, so just to summarize, you're seeing the following:
1. Run the installer from a shell on the client -- succeeds
2. Run the installer remotely via winrm -- succeeds
3. Run the installer via chef-client from a shell on client -- succeeds
4. Run the installer via chef-client via winrm -- FAILS
That's all correct?
So one other thing we may have skipped -- it turns out the
MaxMemoryPerhShellMb setting we referred to below does not work on Win2k12
without a fix from Microsoft (bug in WinRM). If you're running Win2k12
R2, you should be ok, but the original version of Win2k12 ignores the
maxmemoryperhsellmb setting -- here is the fix from Microsoft:
http://support.microsoft.com/kb/2842230.
The issue is one we've worked around in the past (symptoms will vary since
out of memory tends to have a nondeterministic effect on things) -- see
https://tickets.opscode.com/browse/KNIFE-208.
-Adam
-----Original Message-----
From: Liedike, Michael (US - Philadelphia)
[mailto:
Sent: Wednesday, January 8, 2014 11:55 AM
To:
;
Subject: RE: [chef-dev] RE: Opscode Chef installing Eclipse with Plugins
on Windows 2012
I use batch when using chef-client. If I use windows_batch it times out.
I use windows_batch when I am using "knife ec2 create". Just something I
noticed.
The time out is set to 30 mins
When I ran it through WinRM session it completed in less than 1 minute.
Mike
-----Original Message-----
From: Adam Edwards
[mailto:
Sent: Wednesday, January 08, 2014 11:47 AM
To: Liedike, Michael (US - Philadelphia);
Subject: RE: [chef-dev] RE: Opscode Chef installing Eclipse with Plugins
on Windows 2012
That's helpful -- it can still be related to the issues I mentioned below,
since chef-client has its own memory footprint.
To verify one other earlier thing, you're running using the batch
resource, and not windows_batch, correct?
I'm also suspicious of the timeout, since I get 500's when the timeout
setting for winrm is too short for the command. How long does the
installation command take when it succeeds? You may also need to set the
maxtimeoutms value to something big, longer than the length of time your
installation is taking + chef-client takes to get going. You can check the
value below and increase it by a factor of 10 :):
Gi WSMan:\localhost\MaxTimeoutms
-Adam
-----Original Message-----
From: Liedike, Michael (US - Philadelphia)
[mailto:
Sent: Wednesday, January 8, 2014 11:41 AM
To:
;
Subject: RE: [chef-dev] RE: Opscode Chef installing Eclipse with Plugins
on Windows 2012
Hi Adam,
I did another test connecting via WinRM not using chef. I was able to
successfully run the batch command via WinRM. It only fails when I try to
run it using Chef. Not sure if this is a bug or not. Thought it may help
you troubleshoot this issue.
Thank you,
Mike
-----Original Message-----
From: Liedike, Michael (US - Philadelphia)
Sent: Wednesday, January 08, 2014 10:05 AM
To:
;
Subject: [chef-dev] RE: Opscode Chef installing Eclipse with Plugins on
Windows 2012
Hi Adam,
I changed the memory setting to 8GB (Originally set to 300MB). This
doesn't seem to be working either. The process still hangs and finally
times out with the following error:
ERROR: WinRM::WinRMHTTPTransportError: Bad HTTP response returned from
server (500)
Time out rate is set to 30 minutes.
Mike
-----Original Message-----
From: Adam Edwards
[mailto:
Sent: Wednesday, January 08, 2014 9:24 AM
To: Liedike, Michael (US - Philadelphia);
Subject: RE: [chef-dev] Opscode Chef installing Eclipse with Plugins on
Windows 2012
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
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.