question

NishantSharma-7365 avatar image
0 Votes"
NishantSharma-7365 asked ·

Service Fabric app deployment from Visual Studio stuck at "Copying application to image store...."

Hi,
I am testing a Service Fabric app. I am trying to deploy it on a single node Azure Service Fabric cluster running Windows. The cluster was created successfully and I was able to RDP into one of the VMs as well. However, when I try to deploy my app, it is stuck at "Copying application to image store.....". Please suggest.

azure-service-fabric
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

vipullag-MSFT avatar image
1 Vote"
vipullag-MSFT answered ·

@NishantSharma-7365

Below are few suggestions you can try and see if they are helpful.

As you mentioned that the issue seems to be ‘copy to Image store’ from the Visual Studio. Can you please try copying the package using PowerShell outside the VS just to isolate the issue?
You can try something like this:

Copy-ServiceFabricApplicationPackage -ApplicationPackagePath .\MyApplicationType -ApplicationPackagePathInImageStore MyApplicationType -ImageStoreConnectionString fabric:ImageStore -CompressPackage -TimeoutSec 5400 -ShowProgress -ShowProgressIntervalMilliseconds 3000

Please note adding -ShowProgress -ShowProgressIntervalMilliseconds 3000 as parameters to Copy-ServiceFabricApplicationPackage command. This will give more details on where the deployment is spending maximum time. Also, I have set the timeout value to 90 minutes.
You can find complete details on this here. Sample application deployment command can be found here.

Use package compression to reduce the size of the package and decrease the time it takes to be deployed, check this document on compressing.

Also, try to create a new folder and copy the package and then try publishing the application, to rule out any access issues.




Thanks.


Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.






· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

NishantSharma-7365 avatar image
0 Votes"
NishantSharma-7365 answered ·

The issue seems to affect only the single node clusters. Since, I am no longer using single node clusters. I am having success in my deployments.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.