本文介绍了在尝试使用Start-ServiceFabricApplicationUpgrade升级Service Fabric应用程序时遇到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在开发环境中使用2个虚拟机获得了Service Fabric集群.我试图使用以下命令升级部署在SF中的应用程序:

We got a Service Fabric cluster in our development environment using 2 VMs. I was trying to upgrade the Application deployed in SF using the following command:

Start-ServiceFabricApplicationUpgrade -ApplicationName"fabric:/ApplicationName" -ApplicationTypeVersion"3.7.2625.0" -UnMonitoredAuto

Start-ServiceFabricApplicationUpgrade -ApplicationName "fabric:/ApplicationName" -ApplicationTypeVersion "3.7.2625.0" -UnMonitoredAuto

结果是出现以下错误:

我想知道是否需要在ClusterConfiguration级别上进行任何配置更改.任何帮助将不胜感激.

I would like to know whether there are any configurations I need to change at the ClusterConfiguration level. Any help would be appreciated.

谢谢.

推荐答案

有3个简单的步骤即可升级应用程序:

There are 3 simple steps to upgrade an application:

  1. Copy-ServiceFabricApplicationPackage

Register-ServiceFabricApplicationType

Start-ServiceFabricApplicationUpgrade

在您发布的消息中,该错误很可能是由于您错过了第2步.

By the message you posted, the error is likely because you missed the step 2.

如果已执行步骤1、2和3,请证明以下内容:

If you have executed the step 1, 2 and 3, certify that:

  • 该应用程序包已正确注册
  • 您注册的应用程序版本正确,匹配,软件包和升级命令
  • 现有申请和注册的申请来自同一类型

检查此文档以获取更多信息:使用PowerShell升级Service Fabric应用程序

Check this doc for more info: Service Fabric application upgrade using PowerShell

这篇关于在尝试使用Start-ServiceFabricApplicationUpgrade升级Service Fabric应用程序时遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 21:51