Pivotal Cloud Foundry Support

 View Only

 Trying to Update the Service "Service Registry" and got the below error message.

Sujay Vittoba's profile image
Sujay Vittoba posted Mar 18, 2020 12:47 AM

D:\>cf update-service DiscoveryServer -c '{"upgrade": "true", "force": "true"}'


Incorrect Usage. Requires an argument





D:\>cf update-service DiscoveryServer -c "D:\DiscoverServer.json"

Updating service instance DiscoveryServer as xxxxxxxxxxxx...


Server error, status code: 502, error code: 10001, message: Service broker error: Service broker parameters are invalid: Unknown update service

 parameters: {DiscoveryServer={count=2, force=true, upgrade=true}}

Daniel Mikusa's profile image
Daniel Mikusa

I believe the first issue is a Windows command prompt behavior. Single quotes in the command prompt don't behave the same way they do for Unix/Linux shells. My understanding is that for command prompt you need to use double quotes only and escape any double quotes embedded in your double quotes (it gets messy).


The alternative is what you listed in your section option, which is to put the JSON in a file and point the `-c` argument at the file.


Can you show the output of `DiscoverServer.json`? The params you have in the first example look ok, although I don't think you need the double quotes around `true`. You should be able to do `{"upgrade": true, "force": true}`. Maybe try that and see if it helps.