问题描述
我们在gcloud中托管的一项服务尚未得到积极开发,并且已经有几周未部署.在部署时,我们现在收到错误 ERROR:gcloud崩溃(TypeError):无法排序的类型:NoneType()>int()
并且部署失败.即使我们通过CI运行最后一个部署的版本,我们也可以得到完全相同的结果.
We have a service hosted in gcloud that is not actively developed and we have not deployed for a few weeks.On deployment we now get the error ERROR: gcloud crashed (TypeError): unorderable types: NoneType() > int()
and the deployment fails.We get the exact same results even if we run the last deployed version through CI.
这是我的 app.yaml
runtime: aspnetcore
env: flex
threadsafe: true
service: myapp
manual_scaling:
instances: 1
env_variables:
service_name: myapp
AWS_ACCESS_KEY_ID: {{AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: {{AWS_SECRET_ACCESS_KEY}}
AWS_REGION: eu-west-1
我不清楚这是什么,因为尚不清楚需要对部署进行排序.插入此错误消息时,我是否缺少某些东西?
This is very unclear to me as it's not obvious what the deployment would need ordering. Is there something I am missing in interperating this error message?
推荐答案
检查在同一构建代理上是否安装了Python 3.5.gcloud SDK具有Python 2.7的依赖性,也建议将 CLOUDSDK_PYTHON
环境变量设置为Python 2.7安装位置的路径.
Check if you have Python 3.5 installed on the same build agent. The gcloud SDK has a dependency of Python 2.7, also advisable to set the CLOUDSDK_PYTHON
environment variable to the path of your Python 2.7 installation location.
这篇关于App Engine服务部署停止在已知的良好版本上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!