GCloud implementation in application engine responds with bad request

I am trying to deploy an application in App Engine using the Docker container (I work on Mac). Initially, the project has no instance.

These are the versions that I have:

  • docker v1.6.2
  • boot2docker v1.6.2
  • GCloud SDK v0.9.61

The My Docker container works fine locally (with docker or with gcloud preview app run , which probably means my Dockerfile and app.yml are fine).

When trying to deploy it to production using the gcloud application to preview the app.yml application, the server responds with a failed request.

Updating module [default]...|Pushing image to Google Container Registry... Updating module [default].../The push refers to a repository [gcr.io/_m_sdk/dreamyproject.default.20150521t230120] (len: 1) Sending image list Updating module [default]...-Pushing repository gcr.io/_m_sdk/dreamyproject.default.20150521t230120 (1 tags) Image 5c5e3f8382f6 already pushed, skipping [...] Image de8576728671 already pushed, skipping Updating module [default]...\Image 4579da2d2faf already pushed, skipping Image ad7184108492 already pushed, skipping [...] Image 369d7ef21685 already pushed, skipping Pushing Buffering to disk: 15.65 MB.|Buffering to disk: 557.1 kB Image successfully pushed...|Pushing: [==================================================>] 15.65 MB/15.65 MB Pushing Updating module [default]...-Buffering to disk: 557.1 kB Image successfully pushed...-Pushing: [==================================================>] 121.7 MB/121.7 MB Pushing tag for rev [6de771c3b6c4] on {https://gcr.io/v1/repositories/_m_sdk/dreamyproject.default.20150521t230120/tags/latest} Updating module [default]...done. ERROR: (gcloud.preview.app.deploy) Server responded with code [400]: Bad Request Unexpected HTTP status 400 

Did I forget to do something in the Google Developer Console or something else?

edit : Deploy a new project. I still don't know about the bad request.

edit 2 : after playing a little, I think this may be due (poor request) to the choice of EU servers when creating the project.

edit 3 : Error information . A thing that seems strange is the expiration date. DEBUG: Unexpected results: {'status': '400', 'alternate-protocol': '443:quic,p=1', 'content-length': '73', 'expires': 'Fri, 01 Jan 1990 00:00:00 GMT', 'server': 'Google Frontend', 'cache-control': 'no-cache', 'date': 'Sat, 23 May 2015 11:49:41 GMT', 'content-type': 'text/plain'}

edit 4 . According to this topic , managed virtual machines are not available in EU projects. That should be why.

+6
source share
1 answer

According to this thread , managed virtual machines are not yet available in EU projects. That should be why.

Ryan (Cloud Platform Support) - 05/26/15

[...] A managed virtual machine is currently only available in US projects [...]

(update) Now in the official documentation :

In beta, only in the United States. Applications hosted in the European Union should not deploy applications in a flexible environment.

+1
source

Source: https://habr.com/ru/post/987700/


All Articles