microsoft / service-fabric

Service Fabric is a distributed systems platform for packaging, deploying, and managing stateless and stateful distributed applications and containers at large scale.
https://docs.microsoft.com/en-us/azure/service-fabric/
MIT License
3.03k stars 399 forks source link

EnableDefaultServicesUpgrade must be set to true #192

Open paulsaxton opened 6 years ago

paulsaxton commented 6 years ago

Hello

I am trying to upgrade my service fabric application via Visual Studio

I ended up having to use the diff package approach to ensure that only the services I change are in the upgrade

I did this via a command file which removes the unrequired files

Now I have walked into another error which is a bit of annoying with its lack of detail

Why is there so little detail around about this error?

Start-ServiceFabricApplicationUpgrade : Default service descriptions can not be modified as part of upgrade. Modified 2>default service: fabric:/MYAPPLICATION/MYSERVICE. To allow it, set 2>EnableDefaultServicesUpgrade to true. Where exactly do I put this?

Please note that this is coming from Visual Studio

I rarely get any joy using Powershell so if this is only resolvable via powershell please give as much info as possible

I have tried this in the application manifest but no joy

Please note that I need a solution that can operate on a local cluster as well as within Azure

Paul

vipul-modi commented 6 years ago

@paulsaxton - sorry for the delayed response. Have you figured this out?

What SDK and runtime are you using?

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade#upgrade-default-services

EVMartinez commented 6 years ago

Hello @paulsaxton This can be done at cluster level https://blogs.msdn.microsoft.com/maheshk/2017/05/24/azure-service-fabric-error-to-allow-it-set-enabledefaultservicesupgrade-to-true/ hope this helps