Deployment issue app engine

2,300 views
Skip to first unread message

Carlos Sura

unread,
Aug 8, 2016, 11:07:26 AM8/8/16
to google-cloud-sdk
Hello,

I don't know if I am doing something wrong, but here is my scenario:

I took the git repo previous developer had and I am trying to deploy it, everything seems to be going fine, but suddenly before finishing it fails.

Here are my steps:

gcloud --verbosity debug  app deploy app.yaml


carlos@xxx:~/src/xxx$ gcloud --verbosity debug  app deploy app.yaml
DEBUG: Running gcloud.app.deploy with Namespace(__calliope_internal_deepest_parser=ArgumentParser(prog='gcloud.app.deploy', usage=None, description='Deploy the local code and/or configuration of your app to App Engine.', version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=False), account=None, authority_selector=None, authorization_token_file=None, bucket=None, calliope_command=<googlecloudsdk.calliope.backend.Command object at 0x7f4cb871e310>, command_path=['gcloud', 'app', 'deploy'], configuration=None, credential_file_override=None, deployables=['app.yaml'], docker_build=None, document=None, format=None, h=None, help=None, http_timeout=None, ignore_bad_certs=False, image_url=None, log_http=None, project=None, promote=None, quiet=None, server=None, stop_previous_version=None, trace_email=None, trace_log=None, trace_token=None, user_output_enabled=None, verbosity='debug', version=None).
DEBUG: API endpoint: [https://appengine.googleapis.com/], API version: [v1beta5]
You are about to deploy the following services:
 - xxx/default/20160808t082223 (from [/home/carlos/src/xxx/app.yaml])
     Deployed URL: [https://xxx.appspot.com]


And then

Updating service [default]...-DEBUG: Received operation: [apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7]
DEBUG: Operation [apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7] not complete. Waiting 5s.
Updating service [default]...\
Updating service [default]...\DEBUG: Operation [apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7] not complete. Waiting 5s.
Updating service [default]...|DEBUG: Operation [apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7] not complete. Waiting 5s.
Updating service [default].../DEBUG: Operation [apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7] not complete. Waiting 5s.
Updating service [default]...\DEBUG: Operation [apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7] not complete. Waiting 5s.
Updating service [default]...|DEBUG: Operation [apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7] not complete. Waiting 5s.
Updating service [default].../DEBUG: Operation [apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7] not complete. Waiting 5s.
Updating service [default]...-DEBUG: Operation [apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7] complete. Result: {
    "metadata": {
        "target": "apps/xxxx/services/default/versions/20160808t090034", 
        "method": "google.appengine.v1beta5.Versions.CreateVersion", 
        "user": "carlos@xxxxxxxxxxxxxxx", 
        "insertTime": "2016-08-08T15:00:47.113Z", 
        "endTime": "2016-08-08T15:01:19.561Z", 
    }, 
    "done": true, 
    "name": "apps/xxxx/operations/510e64ea-7010-4c7e-8d0d-1e616634d6b7", 
    "error": {
        "message": "An internal error occurred.", 
        "code": 13
    }
}
Updating service [default]...failed.
DEBUG: (gcloud.app.deploy) Error Response: [13] An internal error occurred.
Traceback (most recent call last):
  File "/google/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 719, in Execute
    result = args.calliope_command.Run(cli=self, args=args)
  File "/google/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 1404, in Run
    resources = command_instance.Run(args)
  File "/google/google-cloud-sdk/lib/surface/app/deploy.py", line 57, in Run
    return deploy_util.RunDeploy(self, args)
  File "/google/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 215, in RunDeploy
    api_client.DeployService(name, version, service, manifest, image)
  File "/google/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py", line 89, in DeployService
    return operations.WaitForOperation(self.client.apps_operations, operation)
  File "/google/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/api/operations.py", line 70, in WaitForOperation
    encoding.MessageToPyValue(completed_operation.error)))
OperationError: Error Response: [13] An internal error occurred.
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.


Any ideas?

This a GO application.

Info:

carlos@xxxxx:~/src/xxxxx$ gcloud info
Google Cloud SDK [120.0.0]

Platform: [Linux, x86_64]
Python Version: [2.7.9 (default, Mar  1 2015, 12:57:24)  [GCC 4.9.2]]
Python Location: [/usr/bin/python2]
Site Packages: [Disabled]

Installation Root: [/google/google-cloud-sdk]
Installed Components:
  kubectl: []
  app-engine-python: [1.9.38]
  core-nix: [2016.03.28]
  pubsub-emulator: [2016.07.29]
  core: [2016.07.29]
  app-engine-java: [1.9.38]
  gcloud: []
  gsutil-nix: [4.18]
  app-engine-php: [ ]
  beta: [2016.01.12]
  gsutil: [4.20]
  bq: [2.0.24]
  alpha: [2016.01.12]
  gcd-emulator: [v1beta3-1.0.0]
  kubectl-linux-x86_64: [1.3.3]
  bq-nix: [2.0.24]
System PATH: [/google/google-cloud-sdk/bin:/usr/local/nvm/versions/node/v4.1.2/bin:/home/carlos/gopath/bin:/google/gopath/bin:/usr/local/go/bin:/gradle-2.12/bin:/apache-maven-3.2.2/bin:/google/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/google/go_appengine:/google/google_appengine]
Cloud SDK on PATH: [True]

WARNING: There are old versions of the Google Cloud Platform tools on your system PATH.
  /google/go_appengine/dev_appserver.py
  /google/google_appengine/dev_appserver.py

Installation Properties: [/google/google-cloud-sdk/properties]
User Config Directory: [/tmp/tmp.AllN2dgVt6]
Active Configuration Name: [cloudshell-14427]
Active Configuration Path: [/tmp/tmp.AllN2dgVt6/configurations/config_cloudshell-14427]

Account: [carlos@xxxxx]
Project: [xxxxx]

Current Properties:
  [metrics]
    environment: [devshell]
  [core]
    project: [xxxxx]
    check_gce_metadata: [False]
    account: [carlos@xxxxx]
    disable_usage_reporting: [False]
  [app]
    use_gsutil: [true]
  [compute]
    gce_metadata_read_timeout_sec: [5]
  [component_manager]
    disable_update_check: [True]

Logs Directory: [/tmp/tmp.AllN2dgVt6/logs]
Last Log File: [/tmp/tmp.AllN2dgVt6/logs/2016.08.08/09.03.29.545419.log]

Justin Beckwith

unread,
Aug 8, 2016, 11:14:56 AM8/8/16
to Carlos Sura, google-cloud-sdk
Greetings!  Right now there are a few rough edges when using `gcloud app deploy` to publish Go applications to App Engine.  This is something we're actively fixing.  In the interim - I'd suggest using `goapp deploy` for App Engine standard apps, and `aedeploy gcloud app deploy` for App Engine Flexible apps. 

Hope this helps!

--
You received this message because you are subscribed to the Google Groups "google-cloud-sdk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sdk+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/google-cloud-sdk.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sdk/6e3a15f4-598a-4d60-9bf1-2a2419d8e4f7%40googlegroups.com.



--

Justin Beckwith | Google Cloud Platform | @justinbeckwith | http://jbeckwith.com

Carlos Sura

unread,
Aug 8, 2016, 7:40:28 PM8/8/16
to google-cloud-sdk, carlos...@googlemail.com
I did tried:
appcfg.py -A app -V development update ./

and now, I am getting:

05:39 PM Cloning 1211 static files.
05:39 PM Cloning 628 application files.
05:39 PM Rolling back the update.
Error 400: --- begin server output ---
Manifest file must be implicit
--- end server output ---


Any ideas?
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-s...@googlegroups.com.

Justin Beckwith

unread,
Aug 8, 2016, 7:57:21 PM8/8/16
to Carlos Sura, google-cloud-sdk

To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sdk+unsubscribe@googlegroups.com.

Carlos Sura

unread,
Aug 8, 2016, 10:59:27 PM8/8/16
to google-cloud-sdk, carlos...@googlemail.com
Does it matter that I am using it directly from my google shell and not my desktop? shouldn't be the same?

I am going to try what you suggest, but I don't really understand this weird issue, I can deploy from the google shell the demo project for go, can't figure it out why I can't with this one, specially when it is already deployed on another account, this is just a development version I am trying to deploy.

Let me try and follow up here, thank you for your help.

Carlos Sura

unread,
Aug 9, 2016, 12:51:48 PM8/9/16
to google-cloud-sdk, carlos...@googlemail.com
Nothing is working so far, i managed to deploy it y gcloud app deploy --versiontest  app.yaml --promote

while it finish correctly, I can only see on version: ah-empty and it isn't showing anything, any help?

Justin Beckwith

unread,
Aug 9, 2016, 1:32:20 PM8/9/16
to Carlos Sura, google-cloud-sdk
Can you share the output of "goapp deploy"?

To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sdk+unsubscribe@googlegroups.com.

Carlos Sura

unread,
Aug 9, 2016, 3:13:37 PM8/9/16
to google-cloud-sdk, carlos...@googlemail.com
This is what I get


goapp deploy
02:12 PM Application: xxxxxxxxx; version: dev
02:12 PM Host: appengine.google.com
02:12 PM Starting update of app: xxxxxxxxx, version: dev
02:12 PM Getting current resource limits.
02:12 PM Scanning files on local disk.
02:12 PM Scanned 500 files.
Could not guess mimetype for assets/js/ng-plugins/ui/CHANGELOG.md.  Using application/octet-stream.
Could not guess mimetype for assets/js/ng-plugins/ui/CONTRIBUTING.md.  Using application/octet-stream.
Could not guess mimetype for assets/js/ng-plugins/ui/LICENSE.  Using application/octet-stream.
Could not guess mimetype for assets/js/ng-plugins/ui/README.md.  Using application/octet-stream.
Could not guess mimetype for assets/jquery-ui-1.9.1.custom/development-bundle/README.md.  Using application/octet-stream.
02:12 PM Scanned 1000 files.
02:12 PM Cloning 1211 static files.
02:13 PM Cloning 626 application files.
02:13 PM Rolling back the update.

Error 400: --- begin server output ---
Manifest file must be implicit
--- end server output ---
error while running appcfg.py: exit status 1

Dustin Mulcahey

unread,
Aug 28, 2016, 8:43:24 PM8/28/16
to google-cloud-sdk, carlos...@googlemail.com
I ran into the same thing. Look for a file "_go_manifest.txt". Removing it from the directory (I moved mine elsewhere just to be safe) seemed to do the trick.
Reply all
Reply to author
Forward
0 new messages