我們正在$DAYJOB使用基于 Go 1.9 的 AppEngine 應用程序?,F在 Google 正在棄用 1.9 版,我正在嘗試使用遷移指南遷移到 1.11 版。它說我應該設置runtime: go111并刪除api_version: go1.9中的值app.yaml,但這樣做時,我收到一條部署錯誤消息:ERROR: (gcloud.app.deploy) Staging command [/usr/lib/google-cloud-sdk/platform/google_appengine/go-app-stager /home/peter/src/licensemanager/src/web/app.yaml /home/peter/src/licensemanager/src/web /home/peter/tmp/tmpBB3Yk8/tmpQQPTFj] failed with return code [1].------------------------------------ STDOUT ------------------------------------------------------------------------ STDERR ------------------------------------2019/08/21 07:59:20 invalid api_version value?--------------------------------------------------------------------------------如果我嘗試將其添加回來,無論我輸入什么值,我都會收到一條錯誤消息:╔════════════════════════════════════════════════════════════╗╠═ Uploading 12 files to Google Cloud Storage? ? ? ? ? ? ? ?═╣╚════════════════════════════════════════════════════════════╝File upload done.ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: The following fields are not allowed in app.yaml: api_version.我在這里有點不知所措,我做錯了什么?在本地運行dev_appserver.py效果很好。
1 回答

holdtom
TA貢獻1805條經驗 獲得超10個贊
我安裝了不匹配的 SDK 包:
ii??google-cloud-sdk????????????????????259.0.0-0???????all??????????Utilities?for?the?Google?Cloud?Platform ii??google-cloud-sdk-app-engine-go??????194.0.0-0???????amd64????????Go?runtime?for?Google?App?Engine
升級不匹配的軟件包解決了這個問題。
- 1 回答
- 0 關注
- 108 瀏覽
添加回答
舉報
0/150
提交
取消