google-app-engine - 尝试为托管VM拉取google/appengine-java镜像时,如何克服此500服务器内部错误?

标签 google-app-engine docker google-compute-engine

我一直在尝试从昨天开始运行gcloud --verbosity debug preview app setup-managed-vms,但没有成功。

我不是唯一有这个问题的人,但是通过google找到的其他帖子(不在SO上)从未得到答复。

这是堆栈跟踪,详细程度设置为调试级别(虽然很长,但在特定时间有2行开始重复其自身,重复50次):

$ gcloud --verbosity debug preview app setup-managed-vms
DEBUG: Running gcloud.preview.app.setup-managed-vms with _Args({'base_image_bucket': 'containers-prod',
 'docker_host': None,
 'format': None,
 'h': None,
 'help': None,
 'image_version': 'latest',
 'markdown': None,
 'project': None,
 'quiet': None,
 'shell': None,
 'user_output_enabled': None,
 'verbosity': 'debug'}).
DEBUG: Detected docker environment variables: DOCKER_HOST=tcp://192.168.59.103:2376, DOCKER_CERT_PATH=/Users/Domenico/.boot2docker/certs/boot2docker-vm, DOCKER_TLS_VERIFY=1
INFO: Starting new HTTPS connection (1): 192.168.59.103
DEBUG: "GET /v1.10/_ping HTTP/1.1" 200 2
INFO: Looking for image_id for image with tag google/docker-registry
DEBUG: "GET /v1.10/images/json?filter=google%2Fdocker-registry&only_ids=1&all=0 HTTP/1.1" 200 253
DEBUG: Found Cloud SDK root: /Users/Domenico/Developer/google-cloud-sdk
Select the runtime to download the base image for:
 [1] Go
 [2] Java
 [3] Python27
 [4] All
Please enter your numeric choice (4):  DEBUG: Sent event: Event(category='Executions', action='gcloud', label=u'2014.12.02', value=0)
DEBUG: Sent event: Event(category='Commands', action='gcloud.preview.app.setup-managed-vms', label='unknown', value=0)
2

DEBUG: Detected docker environment variables: DOCKER_HOST=tcp://192.168.59.103:2376, DOCKER_CERT_PATH=/Users/Domenico/.boot2docker/certs/boot2docker-vm, DOCKER_TLS_VERIFY=1
INFO: Starting new HTTPS connection (1): 192.168.59.103
DEBUG: "GET /v1.10/_ping HTTP/1.1" 200 2
Pulling base images for runtimes [java] from Google Cloud Storage
INFO: Refreshing access_token
DEBUG: Copy /Users/Domenico/.config/gcloud/legacy_credentials/xxxxxxxxxx.zzz@gmail.com/.boto to /var/folders/18/9rk3hmjs797fr0hfcr7qx5100000gn/T/tmpIXjpdT...
DEBUG: Copy /Users/Domenico/Developer/google-cloud-sdk/docker/true-asm to /var/folders/18/9rk3hmjs797fr0hfcr7qx5100000gn/T/tmpIXjpdT...
INFO: Building image gcloud-credentials-image...
DEBUG: "POST /v1.10/build?q=False&rm=True&t=gcloud-credentials-image&nocache=False HTTP/1.1" 200 None
INFO: Image gcloud-credentials-image built, id = 2d5b4c63b9fa
DEBUG: Full Image Build Log:
 ---> e72ac664f4f0
Step 1 : ADD true-asm /true
 ---> 7c1e01a097b3
Removing intermediate container cfb384a48ae1
Step 2 : RUN chmod +x /true
 ---> Running in ec660d02687a
 ---> f84fdff0f1ba
Removing intermediate container ec660d02687a
Step 3 : VOLUME /.config
 ---> Running in 26ad09bdaa9a
 ---> c540dddc963a
Removing intermediate container 26ad09bdaa9a
Step 4 : ADD .boto /.config/.boto
 ---> 3bd9a6606988
Removing intermediate container a6b42eb9c1a5
Step 5 : CMD /true
 ---> Running in cc8c5a1ee0cc
 ---> 2d5b4c63b9fa
Removing intermediate container cc8c5a1ee0cc
Successfully built 2d5b4c63b9fa

INFO: Creating container...
INFO: Starting new HTTPS connection (2): 192.168.59.103
DEBUG: "POST /v1.10/containers/create?name=gcloud-credentials-1418138753.61 HTTP/1.1" 201 90
INFO: Container 44f316332dd39abaeaf50cbdb3ba14231e36323d914b085a50aa346c3e9d0bbd created.
DEBUG: "POST /v1.10/containers/44f316332dd39abaeaf50cbdb3ba14231e36323d914b085a50aa346c3e9d0bbd/start HTTP/1.1" 204 0
INFO: Looking for image_id for image with tag google/docker-registry
INFO: Starting new HTTPS connection (3): 192.168.59.103
DEBUG: "POST /v1.10/containers/44f316332dd39abaeaf50cbdb3ba14231e36323d914b085a50aa346c3e9d0bbd/attach?stderr=1&logs=1&stream=1&stdout=1 HTTP/1.1" 200 None
DEBUG: "GET /v1.10/images/json?filter=google%2Fdocker-registry&only_ids=1&all=0 HTTP/1.1" 200 253
INFO: Creating container...
DEBUG: "POST /v1.10/containers/create HTTP/1.1" 201 90
INFO: Container 21c0d8f8eb7fa21bd14b8c6eebe4492a33d0f6d56f1f43560ead860b280fc909 created.
DEBUG: "POST /v1.10/containers/21c0d8f8eb7fa21bd14b8c6eebe4492a33d0f6d56f1f43560ead860b280fc909/start HTTP/1.1" 204 0
INFO: Starting new HTTPS connection (4): 192.168.59.103
DEBUG: "POST /v1.10/containers/21c0d8f8eb7fa21bd14b8c6eebe4492a33d0f6d56f1f43560ead860b280fc909/attach?stderr=1&logs=1&stream=1&stdout=1 HTTP/1.1" 200 None
DEBUG: Container: 21c0d8f8eb7f: Using credentials in /.config/.boto
DEBUG: "GET /v1.10/containers/21c0d8f8eb7fa21bd14b8c6eebe4492a33d0f6d56f1f43560ead860b280fc909/json HTTP/1.1" 200 None
Pulling image: google/appengine-java
INFO: Pulling image google/appengine-java:latest from Google Cloud Storage...
INFO: Starting new HTTPS connection (1): localhost
DEBUG: "POST /v1.10/images/create?tag=latest&fromImage=localhost%3A49157%2Fgoogle%2Fappengine-java HTTP/1.1" 500 115
DEBUG: Exception 500 Server Error: Internal Server Error ("Invalid Registry endpoint: Get http://localhost:49157/v1/_ping: read tcp 127.0.0.1:49157: connection reset by peer") thrown in pull. Retrying.
INFO: Starting new HTTPS connection (1): localhost
DEBUG: "POST /v1.10/images/create?tag=latest&fromImage=localhost%3A49157%2Fgoogle%2Fappengine-java HTTP/1.1" 500 120
DEBUG: Exception 500 Server Error: Internal Server Error ("Invalid Registry endpoint: Get http://localhost:49157/v1/_ping: net/http: transport closed before response was received") thrown in pull. Retrying.
INFO: Starting new HTTPS connection (1): localhost
DEBUG: "POST /v1.10/images/create?tag=latest&fromImage=localhost%3A49157%2Fgoogle%2Fappengine-java HTTP/1.1" 500 115
DEBUG: Exception 500 Server Error: Internal Server Error ("Invalid Registry endpoint: Get http://localhost:49157/v1/_ping: read tcp 127.0.0.1:49157: connection reset by peer") thrown in pull. Retrying.
INFO: Starting new HTTPS connection (1): localhost
DEBUG: Container: 21c0d8f8eb7f: 2014-12-09 15:25:55,861 WARNING: Cache storage disabled!
DEBUG: Container: 21c0d8f8eb7f: 2014-12-09 15:25:55,861 WARNING: LRU cache disabled!
DEBUG: "POST /v1.10/images/create?tag=latest&fromImage=localhost%3A49157%2Fgoogle%2Fappengine-java HTTP/1.1" 500 115
DEBUG: Exception 500 Server Error: Internal Server Error ("Invalid Registry endpoint: Get http://localhost:49157/v1/_ping: read tcp 127.0.0.1:49157: connection reset by peer") thrown in pull. Retrying.
INFO: Starting new HTTPS connection (1): localhost
DEBUG: "POST /v1.10/images/create?tag=latest&fromImage=localhost%3A49157%2Fgoogle%2Fappengine-java HTTP/1.1" 500 115
DEBUG: Exception 500 Server Error: Internal Server Error ("Invalid Registry endpoint: Get http://localhost:49157/v1/_ping: read tcp 127.0.0.1:49157: connection reset by peer") thrown in pull. Retrying.

最后的INFODEBUGDEBUG序列重复执行40次,直到...
INFO: Starting new HTTPS connection (1): localhost
DEBUG: "POST /v1.10/images/create?tag=latest&fromImage=localhost%3A49157%2Fgoogle%2Fappengine-java HTTP/1.1" 500 115
DEBUG: "POST /v1.10/containers/21c0d8f8eb7fa21bd14b8c6eebe4492a33d0f6d56f1f43560ead860b280fc909/kill HTTP/1.1" 204 0
DEBUG: "POST /v1.10/containers/44f316332dd39abaeaf50cbdb3ba14231e36323d914b085a50aa346c3e9d0bbd/kill HTTP/1.1" 204 0
Traceback (most recent call last):
  File "/Users/Domenico/Developer/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 175, in <module>
    main()
  File "/Users/Domenico/Developer/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 171, in main
    _cli.Execute()
  File "/Users/Domenico/Developer/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 385, in Execute
    post_run_hooks=self.__post_run_hooks, kwargs=kwargs)
  File "/Users/Domenico/Developer/google-cloud-sdk/./lib/googlecloudsdk/calliope/frontend.py", line 274, in _Execute
    pre_run_hooks=pre_run_hooks, post_run_hooks=post_run_hooks)
  File "/Users/Domenico/Developer/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 928, in Run
    result = command_instance.Run(args)
  File "/Users/Domenico/Developer/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/setup_managed_vms.py", line 39, in Run
    args.image_version)
  File "/Users/Domenico/Developer/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/images/pull.py", line 54, in PullBaseDockerImages
    util.PullSpecifiedImages(docker_client, image_names, version, bucket)
  File "/Users/Domenico/Developer/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/images/util.py", line 232, in PullSpecifiedImages
    'Error pulling {image}: {e}'.format(image=image_name, e=e))
googlecloudsdk.appengine.lib.images.util.DockerPullError: Error pulling google/appengine-java: 500 Server Error: Internal Server Error ("Invalid Registry endpoint: Get http://localhost:49157/v1/_ping: read tcp 127.0.0.1:49157: connection reset by peer")

我正在运行Google docs中建议的Docker版本1.3.0。
$ docker version
Client version: 1.3.0
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): c78088f
OS/Arch (client): darwin/amd64
Server version: 1.3.0
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): c78088f

和Google Cloud SDK v0.9.39
$ gcloud version
Google Cloud SDK 0.9.39

app 2014.12.02
app-engine-go-darwin-x86_64 1.9.17
app-engine-java 1.9.17
app-engine-managed-vms 2014.11.03
app-engine-python 1.9.17
bq 2.0.18
bq-nix 2.0.18
compute 2014.12.02
core 2014.12.02
core-nix 2014.10.20
dns 2014.11.06
gcutil 1.16.5
gcutil-nix 1.16.5
gsutil 4.7
gsutil-nix 4.6
preview 2014.12.02
preview-extensions-darwin-x86_64 0.5
sql 2014.11.18

我该如何克服这个错误?这是可以避免的,还是Google的错误?

最佳答案

现在不推荐使用此gcloud命令,请参阅最新的documentation以获取更新说明。可以在here中找到有关新指令的示例。

关于google-app-engine - 尝试为托管VM拉取google/appengine-java镜像时,如何克服此500服务器内部错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27383091/

相关文章:

java - 我如何在 GAE 访问 Gmail?

javascript - WTForms 用于动态选项?

docker - 如何让Eureka客户端使用主机的IP而不是Docker容器的IP?

python - Django 静态文件未找到值错误

docker - 为什么 composer 在我的 Docker 容器中找不到 composer.json 文件?

GCE 上的 Hadoop 实例

google-compute-engine - Google Cloud Platform在没有提示的情况下删除或停止实例

google-compute-engine - 如何停止谷歌云数据流中的流管道

python - Google App Engine 中的 SugarCRM 'Bad data Passed in'

google-app-engine - 我如何在 kubernetes 中使用谷歌云存储?