gcloud preview app deploy- ERROR: The command returned non-zero code: 127

1,119 views
Skip to first unread message

TerryW

unread,
Apr 30, 2015, 11:00:34 PM4/30/15
to google-c...@googlegroups.com
my app works fine using "gcloud preview  app run ./app.yaml".  When I come to deploy I get the following error, any ideas on a how to fix?


ERROR: The command [/bin/sh -c /bin/bash /app/_ah/build.sh] returned a non-zero code: 127

Traceback (most recent call last):

  File "/Users/terry/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 211, in <module>

    main()

  File "/Users/terry/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 207, in main

    _cli.Execute()

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

    result = args.cmd_func(cli=self, args=args)

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

    result = command_instance.Run(args)

  File "/Users/terry/google-cloud-sdk/./lib/googlecloudsdk/calliope/exceptions.py", line 86, in TryFunc

    return func(*args, **kwargs)

  File "/Users/terry/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/deploy.py", line 143, in Run

    info.runtime, docker_client)

  File "/Users/terry/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/images/push.py", line 64, in BuildAndPushDockerImage

    nocache=False)) as image:

  File "/Users/terry/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/docker/containers.py", line 119, in __enter__

    self.Build()

  File "/Users/terry/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/docker/containers.py", line 188, in Build

    raise ImageError(msg)

googlecloudsdk.appengine.lib.docker.containers.ImageError: Docker build aborted: The command [/bin/sh -c /bin/bash /app/_ah/build.sh] returned a non-zero code: 127



gcloud info:


Google Cloud SDK [0.9.58]


Platform: [Mac OS X, x86_64]

Python Version: [2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46)  [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]]

Site Packages: [Disabled]


Installation Root: [/Users/terry/google-cloud-sdk]

Installed Components:

  core: [2015.04.29]

  app-engine-python: [1.9.19]

  core-nix: [2014.10.20]

  compute: [2015.04.29]

  app: [2015.04.29]

  gcloud: [2015.04.29]

  app-engine-go-darwin-x86_64: [1.9.19]

  gcloud-extensions-darwin-x86_64: [0.15.0]

  gsutil: [4.12]

  gsutil-nix: [4.6]

  dns: [2015.04.29]

  sql: [2015.04.09]

  gcutil: [1.16.5]

  preview: [2015.04.29]

  bq-nix: [2.0.18]

  app-engine-java: [1.9.19]

  gcutil-nix: [1.16.5]

  bq: [2.0.18]

System PATH: [/Users/terry/google-cloud-sdk/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/terry/Sdks/dart/dart-sdk/bin:/Users/terry/Sdks/android:/usr/local/opt/go/libexec/bin:/Users/terry/go/bin:/Users/terry/Sdks/go_appengine]

Cloud SDK on PATH: [True]


Installation Properties: [/Users/terry/google-cloud-sdk/properties]

User Config Directory: [/Users/terry/.config/gcloud]

User Properties: [/Users/terry/.config/gcloud/properties]

Current Workspace: [None]

Workspace Config Directory: [None]

Workspace Properties: [None]


Terry Warwar

unread,
May 1, 2015, 12:15:29 AM5/1/15
to google-c...@googlegroups.com
This is my Dockerfile.  It looks like it's failing on the last line.

# Dockerfile extending the generic Go image with application files for a
# single application.
FROM google/appengine-go
RUN rm -rf /goroot && mkdir /goroot && curl https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1
ADD . /app
RUN /bin/bash /app/_ah/build.sh

Terry Warwar

unread,
May 2, 2015, 7:14:25 AM5/2/15
to google-c...@googlegroups.com
I just saw the note on the appengine website, for go developers to use appcfg.py to update the VM application.

This is no longer an issue unless you plan to use gcloud deploy for go developers.

On Friday, May 1, 2015 at 1:00:34 PM UTC+10, Terry Warwar wrote:
Reply all
Reply to author
Forward
0 new messages