Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Error pulling google/appengine-java: 404 Client Error: Not Found #5

Open
erugeri opened this issue Nov 24, 2014 · 7 comments
Open

Error pulling google/appengine-java: 404 Client Error: Not Found #5

erugeri opened this issue Nov 24, 2014 · 7 comments

Comments

@erugeri
Copy link

erugeri commented Nov 24, 2014

I'm quite new to Docker but I'm struggling to create the Container in local (and server) because I can't find a way to get the google/appengine-java image. Here's the error when I launch mvn gcloud:run :

[INFO] Running gcloud app run...
[INFO] Running python -S /Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/gcloud/gcloud.py --project=test-managed-vm preview app run /Users/etienne/DEV/GIT/various/appengine-java-vm-guestbook-extras/stage1/target/guestbook-stage1-1.0-SNAPSHOT
[INFO] Java module found in [/Users/etienne/DEV/GIT/various/appengine-java-vm-guestbook-extras/stage1/target/guestbook-stage1-1.0-SNAPSHOT]
[INFO] INFO: Looking for the Dockerfile in /Users/etienne/DEV/GIT/various/appengine-java-vm-guestbook-extras/stage1/target/guestbook-stage1-1.0-SNAPSHOT
[INFO] INFO: Using Dockerfile found in /Users/etienne/DEV/GIT/various/appengine-java-vm-guestbook-extras/stage1/target/guestbook-stage1-1.0-SNAPSHOT
[INFO] INFO: Looking for image_id for image with tag google/docker-registry
[INFO] INFO: Refreshing access_token
[INFO] INFO: Building image gcloud-credentials-image...
[INFO] INFO: Image gcloud-credentials-image built, id = f6a4c85945ff
[INFO] INFO: Creating container...
[INFO] INFO: Container 1fdd7e4d8702c77fa29be06b8e833b5372361f0981d97fbad0539146500444e5 created.
[INFO] INFO: Looking for image_id for image with tag google/docker-registry
[INFO] INFO: Creating container...
[INFO] INFO: Container 270136d8f34e7c0aacb0889d4de32ab64a1b6ef1f76d01f380273451762bc1c8 created.
[INFO] INFO: Trying to connect to http://192.168.59.103:49157/v1/_ping...
[INFO] Pulling image: google/appengine-java
[INFO] INFO: Pulling image google/appengine-java:latest from Google Cloud Storage...
[INFO] Traceback (most recent call last):
[INFO]   File "/Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/gcloud/gcloud.py", line 170, in <module>
[INFO]     main()
[INFO]   File "/Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/gcloud/gcloud.py", line 166, in main
[INFO]     _cli.Execute()
[INFO]   File "/Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 385, in Execute
[INFO]     post_run_hooks=self.__post_run_hooks, kwargs=kwargs)
[INFO]   File "/Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/calliope/frontend.py", line 274, in _Execute
[INFO]     pre_run_hooks=pre_run_hooks, post_run_hooks=post_run_hooks)
[INFO]   File "/Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 928, in Run
[INFO]     result = command_instance.Run(args)
[INFO]   File "/Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/calliope/exceptions.py", line 78, in TryFunc
[INFO]     return func(*args, **kwargs)
[INFO]   File "/Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/run.py", line 349, in Run
[INFO]     util.MaybePullImage(docker_client, module.runtime)
[INFO]   File "/Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/appengine/lib/images/util.py", line 205, in MaybePullImage
[INFO]     config.DOCKER_BASE_IMAGE_BUCKET)
[INFO]   File "/Users/etienne/DEV/google-cloud-sdk/lib/googlecloudsdk/appengine/lib/images/util.py", line 232, in PullSpecifiedImages
[INFO]     'Error pulling {image}: {e}'.format(image=image_name, e=e))
[INFO] googlecloudsdk.appengine.lib.images.util.DockerPullError: Error pulling google/appengine-java: 404 Client Error: Not Found ("No such id: localhost:49157/google/appengine-java")
[ERROR] Error: gcloud app xxx exit code is: 1

How can I get the google/appengine-java image? I didn't find it on Docker hub registry. The only one I found is https://registry.hub.docker.com/u/google/cloud-sdk/

I tried to pull it : docker pull google/cloud-sdk and also docker pull google/docker-registry
It worked perfectly, but when I try :

MBP-de-Etienne:boot2docker etienne$ docker pull google/appengine-java
Pulling repository google/appengine-java
2014/11/24 15:00:33 Error: image google/appengine-java not found

Am I missing something?
Thanks,

@nicolasyanncouturier
Copy link

Check that you are running the correct version of boot2docker. From the doc : https://cloud.google.com/appengine/docs/java/managed-vms/#install-docker

Important: You must use boot2docker version 1.3.0. Managed VMs currently do not suppport boot2docker 1.3.1. (The boot2docker ISO must be the 1.3.0. Note that if you run boot2docker download this downloads the latest ISO, currently 1.3.1, and this won't work with Managed VMs.

To download this ISO use this command:
boot2docker download --iso-url=https://github.com/boot2docker/boot2docker/releases/download/v1.3.0/boot2docker.iso. Alternatively, run it on an existing boot2docker (without running init) by using the following commands:
boot2docker download ... 1.3.0
boot2docker restart

@erugeri
Copy link
Author

erugeri commented Nov 24, 2014

Thanks for your reply. I think I already have 1.3.0 :

MBP-de-Etienne:~ etienne$ boot2docker version
Boot2Docker-cli version: v1.3.0
Git commit: deafc19
MBP-de-Etienne:~ etienne$ 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

Anyway, I tried what you said but it didn't change anything.

@erugeri
Copy link
Author

erugeri commented Nov 25, 2014

Now 1.3.2 is available and compatible with managed vms, I finally solved my problem by uninstalling virtualbox + boot2docker + docker and reinstalling everything.

@phirrip
Copy link

phirrip commented Nov 28, 2014

I'm experiencing the same problem with both 1.3.0 and 1.3.2

bash-3.2$ docker version
Client version: 1.3.2
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 39fa2fa
OS/Arch (client): darwin/amd64
Server version: 1.3.2
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 39fa2fa

Trying to run setup-managed-vms continually gives me the same 404 error mentioned in the initial issue comment

@erugeri
Copy link
Author

erugeri commented Nov 29, 2014

Uninstall everything: virtualbox, boot2docker & docker. Be sure to remove the iso and install everything again at the last version. It worked for me.

@phirrip
Copy link

phirrip commented Nov 29, 2014

Nope tried that a few times

Doesn't make a difference

@hussein-vastani
Copy link

Ditto: I'm on OS X Mavericks, boot2docker 1.3.2.

gcloud preview app setup-managed-vms with choosing any option to download (Go | Python | Java | All), results in a 404. Here's the trace:

$ gcloud preview app setup-managed-vms
Select the runtime to download the base image for:
[1] Go
[2] Java
[3] Python27
[4] All
Please enter your numeric choice (4): Java
Please enter a value between 1 and 4: 2

Pulling base images for runtimes [java] from Google Cloud Storage
Pulling image: google/appengine-java
Traceback (most recent call last):
File "/Users/h/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 170, in
main()
File "/Users/h/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 166, in main
_cli.Execute()
File "/Users/h/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 385, in Execute
post_run_hooks=self.__post_run_hooks, kwargs=kwargs)
File "/Users/h/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/h/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 928, in Run
result = command_instance.Run(args)
File "/Users/h/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/setup_managed_vms.py", line 39, in Run
args.image_version)
File "/Users/h/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/images/pull.py", line 54, in PullBaseDockerImages
util.PullSpecifiedImages(docker_client, image_names, version, bucket)
File "/Users/h/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: 404 Client Error: Not Found ("No such id: localhost:49153/google/appengine-java")

$ docker version
Client version: 1.3.2
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 39fa2fa
OS/Arch (client): darwin/amd64
Server version: 1.3.2
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 39fa2fa

$ boot2docker version
Boot2Docker-cli version: v1.3.2
Git commit: e41a9ae

$ gcloud version
Google Cloud SDK 0.9.37

app 2014.11.18
app-engine-go-darwin-x86_64 1.9.15
app-engine-java 1.9.15a
app-engine-managed-vms 2014.11.03
app-engine-python 1.9.15a
bq 2.0.18
bq-nix 2.0.18
compute 2014.11.25
core 2014.11.18
core-nix 2014.10.20
dns 2014.11.06
gae-java 1.9.15
gae-java-nix 1.9.10
gcutil 1.16.5
gcutil-nix 1.16.5
gsutil 4.6
gsutil-nix 4.6
preview 2014.11.18
preview-extensions-darwin-x86_64 4.1
sql 2014.11.18

Please advise.

Thx.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants