AsBuiltReport.VMware.vSphere icon indicating copy to clipboard operation
AsBuiltReport.VMware.vSphere copied to clipboard

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

Open contourkde opened this issue 3 years ago • 1 comments
trafficstars

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

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):

  • OS: Windows 10
  • Windows PowerShell version

image image image

  • 3rd party PowerShell module name and version [e.g. VMware PowerCLI 11.2] image

  • AsBuiltReport Core module version [e.g. 1.0.0]

  • AsBuiltReport Report module name and version [e.g. AsBuiltReport.VMware.vSphere 1.0.0]

image

Additional context vCenter versioon 6.5 user with admin privileges on domain ([email protected]) 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

contourkde avatar Oct 07 '22 22:10 contourkde

What is the output of Get-PowerCLIConfiguration?

Perhaps try and increase the WebOperationTimeoutSeconds parameter?

Set-PowerCLIConfiguration -WebOperationTimeoutSeconds 600

tpcarman avatar Oct 12 '22 05:10 tpcarman

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

tpcarman avatar Nov 29 '23 10:11 tpcarman