• This topic has 2 replies, 3 voices, and was last updated April 10, 2017 by Naoki K.

Unable to run Zerto powershell cmdlets

  • Hi,

    I am trying to run zerto powershell cmdlets. I am getting thesame  error while running any of the cmdlets

    Here are the error details

    Set-CheckPoint : System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP response to
    http://10.0.xxx.xxx:9669/ZvmService/SiteController. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP
    request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. —> System.Net.WebException: The
    underlying connection was closed: An unexpected error occurred on a receive. —> System.IO.IOException: Unable to read data from the transport connection: An
    existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    — End of inner exception stack trace —
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
    — End of inner exception stack trace —
    at System.Net.HttpWebRequest.GetResponse()
    at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
    — End of inner exception stack trace —
    Server stack trace:
    at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
    at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Security.TlsnegoTokenProvider.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Security.CommunicationObjectSecurityTokenProvider.Open(TimeSpan timeout)
    at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.SecurityChannelFactory1.ClientSecurityChannel1.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via,
    SecurityToken currentToken, TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
    at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan
    timeout)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at Zerto.Zvm.Services.Site.SiteController.ISiteController.GetLocalApiVersion()
    at Zerto.PS.Commands.ZVMCmdlet`1.VerifyZvmIsCompatible() in E:\athena_u2p1_main\dev\unittest\commandlets\Zerto.PS.Commands\ZVMCmdlet.cs:line 186
    at Zerto.PS.Commands.ZVMCmdlet`1.ProcessRecord() in E:\athena_u2p1_main\dev\unittest\commandlets\Zerto.PS.Commands\ZVMCmdlet.cs:line 156
    At line:1 char:1
    + Set-CheckPoint
    + ~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (Zerto.PS.Commands.SetCheckPoint:SetCheckPoint) [Set-CheckPoint], Exception
    + FullyQualifiedErrorId : 4f7b7ea9-f704-4bd9-8de7-0ce9bb79a96f,Zerto.PS.Commands.SetCheckPoint

    Hi, Taran is working with me and we are trying to create a costume checkpoint and it fails. The error is above. Can you help?

    Hi,

    I have experienced same error. Please confirm below:

    • ZVM Port: use 9080 instead of 9669, because cmdlets use internal API with HTTP
    • Username and Password: this is NOT vCenter Server or SCVMM’s one, default is administrator/password and it defined in “C:\Program Files\Zerto\Zerto Virtual Replication\users.txt”

    See Cmdlets Guide at:

    http://s3.amazonaws.com/zertodownload_docs/Latest/PowerShell%20Cmdlets%20Guide.pdf

    I hope this helps.

    Regards,

You must be logged in to create new topics. Click here to login