AsBuiltReport / AsBuiltReport.VMware.vSphere

Repository for AsBuiltReport VMware vSphere module
https://www.asbuiltreport.com
MIT License
112 stars 39 forks source link

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server #104

Closed contourkde closed 11 months ago

contourkde commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

When the script is running, suddenly after some time a message that say appear:

New-AsBuiltReport : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

To Reproduce Steps to reproduce the behavior:

  1. Go to the folder where the script is
  2. Click on 'open an powershell in admin mode (where trying with PS ISE, PS v5 and PS v7 as well'
  3. Run command New-AsBuiltReport -Report VMware.vSphere -Target 'vCenterFQDN' -EnableHealthCheck -Verbose
  4. image

Expected behavior That the DOc document were generated.

Screenshots If applicable, add screenshots to help explain your problem.

System (please provide the following information about the system from which you are trying to generate a report):

image

Additional context vCenter versioon 6.5 user with admin privileges on domain (user@company-domain.com) I have to run this amazing tool with several vCenters and only in 1 on those had those problems. it has 4300 vms and 250 hosts

tpcarman commented 2 years ago

What is the output of Get-PowerCLIConfiguration?

Perhaps try and increase the WebOperationTimeoutSeconds parameter?

Set-PowerCLIConfiguration -WebOperationTimeoutSeconds 600

tpcarman commented 11 months ago

Closing this issue due to lack of response. Please reopen if you continue to experience issues.