【发布时间】:2018-07-16 02:22:57
【问题描述】:
我遇到了一个 App Engine 项目将不再远程构建的问题(通过 gcloud app deploy)
这一切都是出乎意料的,在此结束时没有任何代码更改。不确定是否相关,但这是部署到 App Engine Flex 环境的 go 1.9 项目。
我不确定如何在与构建相同的环境中对其进行测试,因为错误来自 Google 的容器注册表
这是来自 Container Registry 控制台的日志
starting build "73f85b4d-7370-41bd-bbb2-bcf42fc38873"
FETCHSOURCE
Fetching storage object: gs://staging.[project].appspot.com/us.gcr.io/[project]/appengine/default.1ed3c690ead06f27aa651a30fab342611:latest#1531698266413753
Copying gs://staging.[project].appspot.com/us.gcr.io/[project]/appengine/default.1ed3c690ead49f731806f27aa630fab342611:latest#1531698266413753...
Operation completed over 1 objects/1.7 MiB.
BUILD
Starting Step #0
Step #0: Pulling image: gcr.io/gcp-runtimes/go1-builder@sha256:c62ac3fbec31ddec70601d6c5b44d07063bcff6a823bdcf5e0bbaa9d3799d1db
Step #0: sha256:c62ac3fbec31ddec70601d6c5b44d07063bcff6a823bdcf5e0bbaa9d3799d1db: Pulling from gcp-runtimes/go1-builder
Step #0: Digest: sha256:c62ac3fbec31ddec70601d6c5b44d07063bcff6a823bdcf5e0bbaa9d3799d1db
Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/go1-builder@sha256:c62ac3fbec31ddec70601d6c5b44d07063bcff6a823bdcf5e0bbaa9d3799d1db
Step #0: exec: "gcc": executable file not found in $PATH Finished
Step #0 ERROR ERROR: build step 0 "gcr.io/gcp-runtimes/go1-builder@sha256:c62ac3fbec31ddec70601d6c5b44d07063bcff6a823bdcf5e0bbaa9d3799d1db" failed: exit status 2
【问题讨论】:
-
你能在 ~/.bashrc 中检查你的 PATH 值吗?是否包含 /usr/bin?
-
在我的 ~/.bashrc 还是远程的?我不知道如何访问 GCR 中正在运行的实例...
-
远程的。
-
是否可以在 GCR 中访问远程 shell?我想这确实是我的问题,如果我能进去看看,我也许能解决它。
标签: google-app-engine go google-container-registry