在Windows2008和2008 R2上,Chef selenium_node
安装过程中会抛出以下异常:
FATAL: WmiLite::WmiException: An error occurred connecting to the WMI service for namespace 'root/cimv2'.
The namespace may not be valid, access may not be allowed to the WMI service, or the WMI service may not be available.
(in OLE method `ConnectServer': )
OLE error code:800705AF in SWbemLocator
The paging file is too small for this operation to complete.
HRESULT error code:0x80020009
Exception occurred.
在Windows2012和2012 R2上不会出现此错误。
发布于 2015-04-30 21:52:03
来自https://github.com/chef/knife-windows#nodes
Chef和Ohai gem安装(在引导过程中)占用的内存比旧版本( Windows Server2012之前)上每个shell分配的默认150MB WinRM更多--这可能会减慢引导速度。可以选择使用以下命令将内存限制提高到300MB:
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}
另请注意:
Windows2008R2和更早的版本要求对MaxTimeoutms进行额外的配置,以避免在启动时出现WinRM::WinRMHTTPTransportError: Bad HTTP response error。它应该至少是300000。
winrm set winrm/config @{MaxTimeoutms=300000}
https://stackoverflow.com/questions/29978469
复制相似问题