Search code examples
mongodbcloud-foundryswisscomdev

Update service MongoDB failed


I'm trying to update my mongodb-2 service with

cf update-service $serviceInstance -p $newPlan

But I get :

FAILED

Server error, status code: 400, error code: 110004, message: The service does not support changing plans.

Does that mean that mongodb-2 plan can never be changed ? Or am I supposed to unbind applications before changing plan ?


Solution

  • cf update-service is not supported by any of Swisscom services. You need to do this manually at the moment. Swisscom is working on cf update-service feature. Please subscribe to the newsletter to know when the feature is in production.

    • dump data mongodump of old service instance
    • create new service instance with other plan
    • restore mongorestore data to new service instance
    • delete old service instance

    Detailed guide with cf sshtunnel here.