Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum concurrent connections exceeded uploading large files #15

Closed
Iristyle opened this issue May 21, 2015 · 5 comments
Closed

Maximum concurrent connections exceeded uploading large files #15

Iristyle opened this issue May 21, 2015 · 5 comments

Comments

@Iristyle
Copy link

I was trying to establish what the upper limits are for uploading files through winrm-fs and encountered an issue uploading a 50MB file.

WinRM::WinRMWMIError: [WMI ERROR CODE: 2150859174]:
<p:MSFT_WmiError b:IsCIM_Error='true' xmlns:b='http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd' xmlns:cim='http://schemas.dmtf.org/wbem/wscim/1/common' xmlns:p='http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/MSFT_WmiError' xsi:type='p:MSFT_WmiError_Type' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
    <p:CIMStatusCode xsi:type='cim:cimUnsignedInt'>27</p:CIMStatusCode>
    <p:CIMStatusCodeDescription xsi:nil='true' xsi:type='cim:cimString'/>
    <p:ErrorSource xsi:nil='true' xsi:type='cim:cimString'/>
    <p:ErrorSourceFormat xsi:type='cim:cimUnsignedShort'>0</p:ErrorSourceFormat>
    <p:ErrorType xsi:type='cim:cimUnsignedShort'>0</p:ErrorType>
    <p:Message xsi:type='cim:cimString'>The WS-Management service cannot process the request. This user is allowed a maximum number of 1500 concurrent operations, which has been exceeded. Close existing operations for this user, or raise the quota for this user. </p:Message>
    <p:MessageID xsi:type='cim:cimString'>HRESULT 0x803381a6</p:MessageID>
    <p:OtherErrorSourceFormat xsi:nil='true' xsi:type='cim:cimString'/>
    <p:OtherErrorType xsi:nil='true' xsi:type='cim:cimString'/>
    <p:OwningEntity xsi:nil='true' xsi:type='cim:cimString'/>
    <p:PerceivedSeverity xsi:type='cim:cimUnsignedShort'>0</p:PerceivedSeverity>
    <p:ProbableCause xsi:type='cim:cimUnsignedShort'>0</p:ProbableCause>
    <p:ProbableCauseDescription xsi:nil='true' xsi:type='cim:cimString'/>
    <p:error_Category xsi:type='cim:cimUnsignedInt'>30</p:error_Category>
    <p:error_Code xsi:type='cim:cimUnsignedInt'>2150859174</p:error_Code>
    <p:error_Type xsi:type='cim:cimString'>HRESULT</p:error_Type>
    <p:error_WindowsErrorMessage xsi:type='cim:cimString'>The WS-Management service cannot process the request. This user is allowed a maximum number of 1500 concurrent operations, which has been exceeded. Close existing operations for this user, or raise the quota for this user. </p:error_WindowsErrorMessage>
</p:MSFT_WmiError>
from /Users/Iristyle/source/beaker/.bundle/gems/ruby/2.0.0/gems/winrm-1.3.3/lib/winrm/http/response_handler.rb:75:in `raise_if_wmi_error'
@Iristyle
Copy link
Author

I also ran into this issue uploading a 12MB file.

@sneal
Copy link
Member

sneal commented May 21, 2015

This is essentially the same as issue #1, which I closed because I feel like this should be addressed in the upstream WinRM gem. For now you can workaround the issue by increasing the per user quota on the Windows guest.

The WS-Management service cannot process the request. This user is allowed a maximum number of 1500 concurrent operations, which has been exceeded. Close existing operations for this user, or raise the quota for this user.

@Nora-Ballard
Copy link

WMF 5 enables copy-file to take -ToSession and -From session parameters, which seems to work fine for me with large files. It would require WMF 5, but that has been released for Windows 7/2008 R2 and up, so it'd have pretty good coverage.

@mwrock
Copy link
Member

mwrock commented Dec 22, 2015

@jakeballard that would be great if we could leverage WMF5 but unfortunately it requires a PSSession and that follows an entirely different protocol: Powershell Remoting Protocol. Whhile it sits on top of WinRM, it is distinctly its own thing.

I do think that #28 will address issues with larger files failing. I'm assuming that @Iristyle hit this on 2k8R2/win7? Which has a very small connection count limit. #28 tracks connections and resets when needed.

@mwrock
Copy link
Member

mwrock commented Jan 21, 2016

fixed with #28

@mwrock mwrock closed this as completed Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants