googlecloudsdk.command_lib.app.deploy_util.VersionPromotionError: Your deployment has succeeded, but promoting the new version to default failed. You may not have permissions to change traffic splits. Changing traffic splits requires the Owner, Editor, App Engine Admin, or App Engine Service Admin role. Please contact your project owner and use the gcloud app services set-traffic --splits <version>=1
command to redirect traffic to your newly deployed version.
Original error: INVALID_ARGUMENT: Invalid request.
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: Traffic cannot be allocated to stopped version staging. Please ensure
that traffic is only allocated to serving versions.
field: service.split.allocations[staging]
ERROR: (gcloud.app.deploy) Your deployment has succeeded, but promoting the new version to default failed. You may not have permissions to change traffic splits. Changing traffic splits requires the Owner, Editor, App Engine Admin, or App Engine Service Admin role. Please contact your project owner and use the
gcloud app services set-traffic --splits <version>=1
command to redirect traffic to your newly deployed version. Original error: INVALID_ARGUMENT: Invalid request.
- description: Traffic cannot be allocated to stopped version staging. Please ensure
that traffic is only allocated to serving versions.
field: service.split.allocations[staging]
ERROR: (gcloud.app.deploy) Your deployment has succeeded, but promoting the new version to default failed. You may not have permissions to change traffic splits. Changing traffic splits requires the Owner, Editor, App Engine Admin, or App Engine Service Admin role. Please contact your project owner and use the
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: Traffic cannot be allocated to stopped version staging. Please ensure that traffic is only allocated to serving versions. field: service.split.allocations[staging]
- status=1
- set -e
- '[' 1 -eq 0 ']'
- fail 'Deployment failed.'
- echo -e '\e[31m✖ Deployment failed.\e[0m'
- exit 1 ✖ Deployment failed. Build teardown
This uses the Google Service Account, which has App Engine Admin, Deployer and storage admin.
Any ideas? Thanks