Deployment Fails with Client Error(400) on appcfg.py update and with [13] An internal error occurred on gcloud app deploy.

84 views
Skip to first unread message

中村智

unread,
Aug 15, 2017, 2:48:57 PM8/15/17
to Google App Engine
I could deploy my app using appcfg.py since last thursday, but today I can't deploy it with Client Error(400).
I tried using gcloud app deploy. then I get these logs.

2017-08-16 03:18:55,159 DEBUG    root            Operation [apps/hitois-app/operations/b9f147cf-ec8f-44fa-9087-9218a8e360df] complete. Result: {

 

   
"metadata": {

       
"target": "apps/hitois-app/services/backjob/versions/9",

       
"method": "google.appengine.v1.Versions.CreateVersion",

       
"user": "sat...@kinois.net",

       
"insertTime": "2017-08-15T18:18:41.748Z",

       
"ephemeralMessage": "Copying 52 application files and 448 static files.",

       
"endTime": "2017-08-15T18:18:46.458Z",

       
"@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1"

   
},

   
"done": true,

   
"name": "apps/hitois-app/operations/b9f147cf-ec8f-44fa-9087-9218a8e360df",

   
"error": {

       
"message": "An internal error occurred.",

       
"code": 13

   
}

}

2017-08-16 03:18:55,160 DEBUG    root            (gcloud.app.deploy) Error Response: [13] An internal error occurred.

Traceback (most recent call last):

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 811, in Execute

    resources
= args.calliope_command.Run(cli=self, args=args)

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 784, in Run

    resources
= command_instance.Run(args)

 
File "/Users/satorun/google-cloud-sdk/lib/surface/app/deploy.py", line 62, in Run

    args
, api_client, runtime_builder_strategy=runtime_builder_strategy)

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 405, in RunDeploy

    args
.image_url, all_services, app.gcrDomain)

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 249, in Deploy

    endpoints_info
)

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py", line 171, in DeployService

    message
=message)

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py", line 206, in WaitForOperation

    sleep_ms
=retry_interval)

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 266, in WaitFor

    sleep_ms
=sleep_ms)

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/core/util/retry.py", line 222, in RetryOnResult

   
if not should_retry(result, state):

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 260, in _IsNotDone

   
return not poller.IsDone(operation)

 
File "/Users/satorun/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py", line 131, in IsDone

    encoding
.MessageToPyValue(operation.error)))

OperationError: Error Response: [13] An internal error occurred.


Because I changed few files, so I Restored them, and retry to deploy, but same Error has occurred.

I have some apps, Except for this application, I can deploy all apps.


yamls(frontend app.yaml / backend backjob.yaml) of App that can not be deployed setting is bellow.


app.yaml

application: hitois-app
version
: 9
runtime
: python27
instance_class
: F2
automatic_scaling
:
  min_idle_instances
: 1
  max_idle_instances
: 1
  min_pending_latency
: automatic
  max_pending_latency
: automatic
api_version
: 1
threadsafe
: true

inbound_services
:
- warmup

default_expiration
: "7d"

handlers
:
- url: /stylesheets
  static_dir: sites/
static/stylesheets

- url: /javascripts
  static_dir: sites/
static/javascripts
  expiration
: "0m"

- url: /images
  static_dir: sites/
static/images

- url: /.*
  script
: main.app

libraries
:
- name: django
  version
: "1.4"

- name: PIL
  version
: "1.1.7"

- name: ssl
  version
: "latest"


backjob.yaml

application: hitois-app
module: backjob
version
: 9
runtime
: python27
instance_class
: B1
basic_scaling
:
  max_instances
: 2
  idle_timeout
: 1m
api_version
: 1
threadsafe
: true

inbound_services
:
- warmup

default_expiration
: "7d"

handlers
:
- url: /stylesheets
  static_dir: sites/
static/stylesheets

- url: /javascripts
  static_dir: sites/
static/javascripts
  expiration
: "0m"

- url: /images
  static_dir: sites/
static/images

- url: /.*
  script
: main.app

libraries
:
- name: django
  version
: "1.4"

- name: PIL
  version
: "1.1.7"

- name: ssl
  version
: "latest"


I want to deploy new version. so please help me.

Thanks.

Kenworth (Google Cloud Platform)

unread,
Aug 15, 2017, 7:33:30 PM8/15/17
to google-a...@googlegroups.com
A thread like this is off-topic for Google Groups, and should be posted to StackOverflow. If you think this is a Google Cloud Platform defect, you can file an issue report for better tracking purposes. While I'd like to help you, this isn't the place to do it. This forum isn't meant for specific 1-on-1 technical issues, but for general discussion of the platform and its services. With StackOverflow, which we also monitor, you'll be in touch with a much larger user-base of people who are going to help you, and in a format which is designed for that purpose. Check out our community support page for the list of tags we monitor.

I would also recommend testing your deployment to another version so that you are not overwriting the working instance. This way, you will have a sandbox testing environment independent of your live environment.


中村智

unread,
Aug 16, 2017, 9:02:03 AM8/16/17
to Google App Engine
Thank you Kenworth.
I posted to StackOverflow.
And I can't deploy to another version with same error.
I hope to be solved on StackOverflow.

2017年8月16日水曜日 8時33分30秒 UTC+9 Kenworth (Google Cloud Platform):
Reply all
Reply to author
Forward
0 new messages