How should I avoid this 500 Server Internal Error when trying to pull google/appengine-java image for Managed VMs?

333 views
Skip to first unread message

Nick

unread,
Dec 9, 2014, 10:36:30 AM12/9/14
to google-a...@googlegroups.com
I have been trying to successfully run this command from yesterday with no success. 

This is the stacktrace, with the verbosity set to debug level:

$ 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/xxxxxxx...@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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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")

I am running Docker version 1.3.2 (tried with 1.3.0 but nothing changes) 
$ 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

and 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

How can I overcame this error? Is this even avoidable or a bug on Google's end?

Nick

unread,
Dec 9, 2014, 11:23:41 AM12/9/14
to google-a...@googlegroups.com
Actually, I'm running Docker 1.3.0, as you can see from the console output. 
Sorry for the confusion.
DEBUG: Copy /Users/Domenico/.config/gcloud/legacy_credentials/xxxxxxxxx...@gmail.com/.boto to /var/folders/18/9rk3hmjs797fr0hfcr7qx5100000gn/T/tmpIXjpdT...

Vinny P

unread,
Dec 10, 2014, 1:23:57 AM12/10/14
to google-a...@googlegroups.com
On Tue, Dec 9, 2014 at 9:36 AM, Nick <domeni...@gmail.com> wrote:
This is the stacktrace, with the verbosity set to debug level:

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")


Can you try again, but this time use the insecure registry option: http://stackoverflow.com/a/26832581 ?

Before you try that though, can you check if your boot2docker VM has network access? Run a curl request on a website or another similar application to check.
 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Message has been deleted

Nick

unread,
Dec 10, 2014, 4:49:27 AM12/10/14
to google-a...@googlegroups.com
I did a bunch of trials with your option, but didn't succed at first. After experimenting a little bit with your solution, I was able to get rid of that error, but now I get
googlecloudsdk.appengine.lib.images.util.DockerPullError: Error pulling google/appengine-java: 404 Client Error: Not Found ("No such id: localhost:49156/google/appengine-java")

when I run gcloud --verbosity debug preview app setup-managed-vms.

I found another user having the same issue on SO with the image google/appengine-go
It seems to be a bug. I tried the solution suggested here
but I get an error at the docker pull localhost:5000/google/appengine-java step which is Error pulling image (latest) from localhost:5000/google/appengine-java, Server error: Status 0 while fetching image layer (3acec9a6a6593a35064dba416e0d0b4a08b25a51760ace859095f7ac8e89e6c5)


Any workaround?

Nick

unread,
Dec 13, 2014, 5:33:36 AM12/13/14
to google-a...@googlegroups.com
Trying with Google Cloud SDK v0.9.40 now. Fails with this error 

google.appengine.tools.docker.containers.ImageError: Image with tag localhost:49153/google/appengine-java was not found


On Wednesday, December 10, 2014 7:23:57 AM UTC+1, Vinny P wrote:

Saleem Ansari

unread,
Dec 13, 2014, 12:02:34 PM12/13/14
to google-a...@googlegroups.com


On Saturday, December 13, 2014 4:03:36 PM UTC+5:30, Nick wrote:
Trying with Google Cloud SDK v0.9.40 now. Fails with this error 

google.appengine.tools.docker.containers.ImageError: Image with tag localhost:49153/google/appengine-java was not found



I am using gcloud v0.9.40 and I am also facing issues:

https://gist.github.com/xuru/604da3c02ec96904d352#comment-1355911

I think these are related.

Regards,
Saleem



Dan Lorenc

unread,
Dec 14, 2014, 2:57:07 PM12/14/14
to google-a...@googlegroups.com
Hey,

Sorry for the confusion.

I think the answer in that stack overflow post is actually incorrect, and causing the current problem you're seeing. To fix it you'll need to remove the google/docker-registry image. The easiest way is to boot2docker delete, boot2docker init, boot2docker up. Then you can run setup-managed-vms again.

Dan Lorenc

Dan Lorenc

unread,
Dec 14, 2014, 6:14:48 PM12/14/14
to google-a...@googlegroups.com
Hey Everyone,

There are a couple unrelated problems that are getting confused together. Some versions of boot2docker do not work with the gcloud SDK, and the public google/docker-registry docker image also does not work with the gcloud SDK. Please give this set of steps a try:

boot2docker delete
boot2docker init
boot2docker up

gcloud components update app
gcloud preview app setup-managed-vms

If you're still hitting trouble:

Make sure the version of docker in the boot2docker VM is 1.3.0, 1.3.2 or 1.3.3. To do this, run:
boot2docker ssh
docker version
The 'Server Version' field should be 1.3.0,1.3.2 or 1.3.3.

Make sure gcloud is up to date, run:
gcloud version
This should say: "Google Cloud SDK 0.9.40"

Finally, make sure you're logged into gcloud correctly. Run:
gcloud auth login

If you have the correct versions above, some log files will be very helpful. Please attach:
The output of:
gcloud --verbosity=debug preview app setup-managed-vms

The logs from the docker-registry container. You can get these by running:
docker ps -a

Then look in the output for the most recent container with the Image named "google/docker-registry:latest". Copy the Container ID field, and run:
docker logs <Container ID from above>

Thanks,
Dan Lorenc



--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/UFRalrQtMAs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Saleem Ansari

unread,
Dec 15, 2014, 12:18:12 AM12/15/14
to google-a...@googlegroups.com
Hi Dan,

Please find my replies below.


> Sorry for the confusion.
> I think the answer in that stack overflow post is actually incorrect, and causing the current problem you're seeing. To fix it you'll need to remove the google/docker-registry image. The easiest way is to boot2docker delete, boot2docker init, boot2docker up. Then you can run setup-managed-vms again.

I followed the steps you mentioned, still I am facing issues. Details are posted here : https://gist.github.com/xuru/604da3c02ec96904d352#comment-1356364

Here is the summary

* Created image with Boot2Docker version 1.3.3
* Update to Google SDK 0.9.40
* gcloud init
* gcloud --verbosity=debug preview app setup-managed-vms

I get this error from gcloud tool

google.appengine.tools.docker.containers.ImageError: Image with tag localhost:49154/google/appengine-python27 was not found


Docker daemon log shows this:

[debug] endpoint.go:59 Error from registry "https://localhost:49154/v1/" marked as insecure: Get https://localhost:49154/v1/_ping: read tcp 127.0.0.1:49154: connection reset by peer. Insecurely falling back to HTTP Invalid registry endpoint "http://localhost:49154/v1/". HTTPS attempt: Get https://localhost:49154/v1/_ping: read tcp 127.0.0.1:49154: connection reset by peer. HTTP attempt: Get http://localhost:49154/v1/_ping: read tcp 127.0.0.1: 49154: connection reset by peer

Regards,
Saleem



Dan Lorenc

unread,
Dec 15, 2014, 12:56:25 AM12/15/14
to google-a...@googlegroups.com
Can you attach the logs from the registry container?

From the logs you posted, the command would be:
docker logs e8cd6049560a

Dan Lorenc

Nick

unread,
Dec 15, 2014, 11:56:29 AM12/15/14
to google-a...@googlegroups.com
I just wanted to add, I have not enabled compute engine billing in my account. I would like to test my app locally first, before to deploy it to Managed VMs not to waste the 60 days of free trial. 
This shouldn't be an issue with the `gcloud preview app setup-managed-vms`command, right?

If it is, how can I run a Managed VMs app locally, without wasting the trial?

Dan Lorenc

unread,
Dec 17, 2014, 2:06:10 PM12/17/14
to google-a...@googlegroups.com
Hey,

You should definitely be able to run setup-managed-vms and run your all locally without triggering the free trial.

Dan Lorenc

Nick

unread,
Dec 27, 2014, 6:34:28 AM12/27/14
to google-a...@googlegroups.com
Hi Dan,
Still getting the "Image not found error here"

I updated boot2docker to v1.4.1 and gcloud to v9.0.41, but it's still the same.
I pasted all the three logs you requested on pastebin

Let me know if you have the same problems you had with boot2docker v1.3.1 and want me to post a log from some other version.

Dan Lorenc

unread,
Dec 29, 2014, 10:57:35 AM12/29/14
to google-a...@googlegroups.com
Hey,

Sorry for the slow response. From your logs, it looks like everything was working fine until a network-related error happened. Have you tried retrying?

I haven't been able to repro this. If it keeps happening, could you also add the output of "boot2docker version" and "gcloud version"? That will help me get the exact versions you're using.

Dan Lorenc

To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.

Nick

unread,
Dec 29, 2014, 6:45:43 PM12/29/14
to google-a...@googlegroups.com
The same error is happening from a long time. I started trying with boot2docker 1.3.0-1.3.2 (1.3.1 shouldn't work as per docs) and all the subsequent versions.
I am now on boot2docker 1.4.1 and gcloud 0.9.41.

$ boot2docker version

Boot2Docker-cli version: v1.4.1

Git commit: 43241cb


$ gcloud version

Google Cloud SDK 0.9.41


app 2014.12.19

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.17

core 2014.12.17

core-nix 2014.10.20

dns 2014.12.08

gcutil 1.16.5

gcutil-nix 1.16.5

gsutil 4.7

gsutil-nix 4.6

preview 2014.12.17

preview-extensions-darwin-x86_64 0.5

sql 2014.12.08

Just re-tried and still got `ImageError: Image with tag localhost:49153/google/appengine-java was not found`
Now, I am by no means docker expert, but the error refers to localhost: 49153. However, docker is not running on localhost but in the virtualbox vm since I am on a Mac and docker needs linux. Could this be the problem?
Reply all
Reply to author
Forward
0 new messages