Skip to content

Instantly share code, notes, and snippets.

@xuru
Created November 21, 2014 20:35
Show Gist options
  • Save xuru/604da3c02ec96904d352 to your computer and use it in GitHub Desktop.
Save xuru/604da3c02ec96904d352 to your computer and use it in GitHub Desktop.
setup-managed-vms error
Select the runtime to download the base image for:
[1] Go
[2] Java
[3] Python27
[4] All
Please enter your numeric choice (4): 3
Pulling base images for runtimes [python27] from Google Cloud Storage
Pulling image: google/appengine-python27
Traceback (most recent call last):
File "/usr/local/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 170, in <module>
main()
File "/usr/local/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 166, in main
_cli.Execute()
File "/usr/local/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 385, in Execute
post_run_hooks=self.__post_run_hooks, kwargs=kwargs)
File "/usr/local/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 "/usr/local/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 928, in Run
result = command_instance.Run(args)
File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/setup_managed_vms.py", line 39, in Run
args.image_version)
File "/usr/local/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/images/pull.py", line 54, in PullBaseDockerImages
util.PullSpecifiedImages(docker_client, image_names, version, bucket)
File "/usr/local/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-python27: 500 Server Error: Internal Server Error ("Invalid registry endpoint https://localhost:49154/v1/: Get https://localhost:49154/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry localhost:49154` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/localhost:49154/ca.crt")
@proppy
Copy link

proppy commented Jan 23, 2015

You can try the following instructions to use Google Container Registry instead of a local docker-registry daemon to deploy Managed VMs applications.

# Make sure gcloud is up to date
gcloud components update

# Enable Google Cloud Registry support
gcloud config set app/hosted_registry true

# Deploy (with a custom admin console URL for now)
gcloud preview app deploy --server=gcr.appengine.google.com .

# To disable Google Cloud Registry support if needed
gcloud config unset app/hosted_registry

@elsigh
Copy link

elsigh commented Apr 20, 2015

fwiw I seem to be having this problem locally, and not with deploy..

$ boot2docker version
Boot2Docker-cli version: v1.6.0

INFO 2015-04-20 21:57:14,724 containers.py:261] -------------------- DOCKER BUILD --------------------
INFO 2015-04-20 21:57:14,725 dispatcher.py:186] Starting module "default" running at: http://localhost:5000
INFO 2015-04-20 21:57:14,728 admin_server.py:118] Starting admin server at: http://localhost:8000
INFO 2015-04-20 21:57:14,910 containers.py:280] Step 0 : FROM google/appengine-python27
ERROR 2015-04-20 21:57:17,576 containers.py:283] Error: image google/appengine-python27:latest not found
INFO 2015-04-20 21:57:17,576 containers.py:292] --------------------------------------------------------
ERROR 2015-04-20 21:57:17,577 instance.py:280] Docker build aborted: Error: image google/appengine-python27:latest not found

@evolu8
Copy link

evolu8 commented May 19, 2015

Me too. Would be hugley greatful for a solution. This is blocking my adoption of the platform (after a lot of time intested in it). I know, my fault for choosing a beta product, but this would really save my bacon if there is a fix.

@elsigh
Copy link

elsigh commented May 22, 2015

I saw a note that this was fixed in the latest tools release, so I got rid of my pinned version number, did a gcloud components update, and then deployed a version which said it finished (yay) but then my server was ever-borked (returned 503s, no logs in the console, weird.) So I waited a few hours, came home and tried to redeploy. But no dice. :(

INFO: Exception 500 Server Error: Internal Server Error ("v1 ping attempt failed with error: Get http://gcr.io/v1/_ping: dial tcp: i/o timeout") thrown in ProgressHandler. Retrying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment