-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"sfctl application upgrade" seems to be broken #45
Comments
Can you include the following information?
|
Version of Here's the output with hunt@hunt-VirtualBox:~/service-fabric-java-getting-started/Actors$ sfctl application upgrade --app-id sf-test --app-version 2.0.0 --parameters "{}" --health-check-stable-duration 60 --upgrade-domain-timeout 1200 --upgrade-timeout 3000 --mode Monitored --debug Thanks! |
Also I fixed the title... sorry about that, I was (clearly) in a rush. |
@hunterSThompson that's not a version of sfctl that's published. Can you verify that's the version you have installed? You can get the install version by running |
So... interestingly I don't seem to have pip installed, so guess I must have done the manual installation. Here's the output of hunt@hunt-VirtualBox:~$ sudo apt-get -s install servicefabric Should the manual install give you the bleeding edge version? |
@hunterSThompson you should have #
# Setup Azure Service Fabric CLI
#
apt-get install python -f -y
ExitIfError $? "Error@$LINENO: Failed to install python for sfctl setup."
apt-get install python-pip -f -y
ExitIfError $? "Error@$LINENO: Failed to install pip for sfctl setup."
pip install sfctl
ExitIfError $? "Error@$LINENO: sfctl installation failed." If you don't, theres documentation on how to install sfctl. |
I tried uninstalling whichever version I had installed-- then re-ran the script via: Now, To be doubly sure I had the right version, I spun up a fresh Ubuntu 16.04 VM on VirtualBox, then installed GIT and curl, then installed I then pulled down the service-fabric-java-getting-started repo, installed it, and attempted to upgrade-- still the same error on the I'm still able to upgrade the application successfully via PowerShell though. |
@hunterSThompson can you include the output with the |
Dang, knew I was forgetting something! Paste-bin link: https://pastebin.com/0K8pVxyn |
Thanks, one other piece of information @hunterSThompson: Can you get the
|
No problem. /subscriptions/3664c441-5d00-4d69-adfd-e230ce32edc8/resourceGroups/service-fabric-testing/providers/Microsoft.ServiceFabric/clusters/guacamole-test |
@hunterSThompson can you try with |
Welp, I could have sworn I tried that, but I clearly did not as it's working now... I see that the documentation clearly says to use the full URI scheme here: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-sfctl-application#sfctl-application-upgrade But here: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-lifecycle-sfctl#upgrade-application and here: https://github.com/Azure-Samples/service-fabric-java-getting-started are both not using the fabric:/ convention. That should be updated so more people don't get confused... seem's like the CLI could use some better error handling too :) Thanks for you help! |
Yep, this is then a duplicate of #37. We're aware also the error responses are not helpful. This is something we're working on improving in future releases. |
Awesome. Thanks again for your time |
It appears that upgrading a service-fabric application via
sfctl application upgrade
is completely broken.I'm attempting to upgrade using the stand procedure documented here: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-lifecycle-sfctl#upgrade-application
I can upload and provision the new version fine, and it shows up in the Service Fabric explorer. But running
sfctl application upgrade --app-id sf-test --parameters "{}" --health-check-stable-duration 60 --upgrade-domain-timeout 1200 --upgrade-timeout 3000 --mode Monitored
throws a 500 error:Error occurred in request., RetryError: HTTPConnectionPool(host='localhost', port=19080): Max retries exceeded with url: /Applications/sf-test/$/Upgrade?timeout=60&api-version=6.0 (Caused by ResponseError('too many 500 error responses',))
However, I can successfully upgrade the app with this PowerShell command:
Start-ServiceFabricApplicationUpgrade -ApplicationName "fabric:/sf-test" -ApplicationTypeVersion "2.0.0" -HealthCheckStableDurationSec 60 -UpgradeDomainTimeoutSec 1200 -UpgradeTimeout 3000 -FailureAction Rollback -Monitored
I also tried this on the EchoService and VisualObject samples in this repo: https://github.com/Azure-Samples/service-fabric-java-getting-started
Same deal.
My Environment:
Bash on Ubuntu 16.04 LTS, installed sfctl via:
sudo curl -s https://raw.githubusercontent.com/Azure/service-fabric-scripts-and-templates/master/scripts/SetupServiceFabric/SetupServiceFabric.sh | sudo bash
The text was updated successfully, but these errors were encountered: