question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ServiceFabricComposeDeploy: A communication error caused the operation to fail.

See original GitHub issue

I’ve been using 2 test clusters with the preview release for service fabric 5.7, which have been working fine, but as 5.7 has been released now, I decided to go ahead and build a new cluster, using the same ARM template as before, just updating the version from preview to release.

This appeared to work fine, the cluster came online and I was able to browse the cluster explorer, and connect to the cluster via PowerShell. However, I then attempted to release a docker-compose application from VSTS onto the new cluster, which fails when calling “New-ServiceFabricComposeApplication” with the error “A communication error caused the operation to fail.”. I then went back to PowerShell and tried running the same commands myself, and the compose application gets created just fine without an error.

I have double checked the release configuration, and ensured all the settings are the same as the previous clusters, with the only difference being the host name for the client endpoint. I can see in the release logs that “Successfully connected to cluster.” is reported before attempting to create the application.

I have now re-run the deployment with “system.debug=true”, which gave the following stack trace: “System.Fabric.FabricException: A communication error caused the operation to fail. —> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071BBC System.Fabric.Interop.NativeClient.IInternalFabricApplicationManagementClient.EndCreateComposeApplication(IFabricAsyncOperationContext context) at System.Fabric.Interop.Utility.<>c__DisplayClass20_0.<WrapNativeAsyncInvoke>b__0(IFabricAsyncOperationContext context) at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously) — End of inner exception stack trace —”

Any ideas what could be causing this exception from VSTS based release only?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
CodedBeardcommented, Oct 16, 2017

thanks @bishal-pdMSFT, to be honest, I’ve stopped using the hosted agents completely, As service fabric 6.0 has already been released before 5.7 got deployed, and we can’t be waiting 6 weeks between SF releases before we can actually use the release pipeline. We’ve also hugely benefited from using the private build agents due to caching, as we are migrating old systems into containers, which being based on server core are quite large. This was resulting in hosted builds taking almost 30 mins, most of which was just re-downloading the server core image every time, using private the builds went from 24 mins, to just over a min, so we will be sticking with this until the hosted build agent does a better job of caching container images.

1reaction
mikkelhegncommented, Sep 1, 2017

No we should go ahead and do that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Service Fabric Deploy error - Microsoft Q&A
We upgraded the application from multiple versions to 3.1 .NetCore. Encountered couple of issues in the process, and the latest is happening ...
Read more >
How to restore a failed Azure Service Fabric cluster. | ITNEXT
Finding the root cause. · Open cluster resource group, navigate to virtual machine scale set with seed nodes. Usually, it is named nt1vm_0...
Read more >
Service Fabric failed to reconfigure replica - Stack Overflow
This warning means your service isn't exiting RunAsync when a primary replica of your service is changing role during reconfiguration (look ...
Read more >
Troubleshooting - UiPath Documentation Portal
Getting started with the Deployment Assistant ... Performing node operations ... objectstore resize-pvc operation fails with the following error:.
Read more >
Getting started with Azure Service Fabric - chsakell's Blog
When using ASF you deploy your application services in an Azure ... and communicate each other even when they change host machine or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found