xevilads / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Deploy hangs for Managed VM's - hard to see why #500

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Issue running command [gcloud preview app deploy].

What steps will reproduce the problem?

What is the expected output? What do you see instead?

this is our dockerfile. Maybe a config error but this exact dockerfile was used 
2 months back or so and worked fine. now we cannot deploy anymore.

""
# Dockerfile extending the generic Python image with application files for a
# single application.
FROM gcr.io/google_appengine/python-compat
#FROM google/appengine-python27

RUN apt-get update && apt-get install -y python-crypto unoconv imagemagick 
libmagickwand-dev libmagickcore5-extra ghostscript
ADD requirements.txt /app/
RUN pip install -r requirements.txt
#RUN pip install --upgrade google-api-python-client httplib2 argparse
RUN pip install --upgrade google-api-python-client httplib2 argparse
RUN apt-get -y install autoconf g++ python2.7-dev
RUN pip install --upgrade pycrypto
ADD . /app/
""

Please provide any additional information below.

trace output on the gcloud command hangs for a long time and then crashes at:

""
update-alternatives:
using /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/itweb-settings to provide 
/usr/bin/itweb-settings (itweb-settings) in auto mode

Setting up libreoffice-common (1:3.5.4+dfsg2-0+deb7u5) ...
Setting up perl (5.14.2-21+deb7u2) ...
update-alternatives:
using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode

Setting up sgml-base (1.26+nmu4) ...
Setting up ca-certificates-java (20121112+nmu2) ...

(hangs here!)

""

Traceback (most recent call last):
  File "googlecloudsdk/calliope/cli.py", line 609, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "googlecloudsdk/calliope/backend.py", line 1228, in Run
    resources = command_instance.Run(args)
  File "googlecloudsdk/surface/preview/app/deploy.py", line 256, in Run
    remote_build)
  File "googlecloudsdk/api_lib/app/deploy_command_util.py", line 176, in BuildAndPushDockerImages
    info.file, docker_client, image_name)
  File "googlecloudsdk/api_lib/app/deploy_command_util.py", line 247, in BuildAndPushDockerImage
    image.Build(docker_client)
  File "googlecloudsdk/api_lib/app/docker_image.py", line 105, in Build
    for line in build_res:
  File "docker/docker/client.py", line 194, in _stream_helper
    data = reader.read(1)
  File "requests/packages/urllib3/response.py", line 231, in read
    raise ProtocolError('Connection broken: %r' % e, e)
ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', 
IncompleteRead(0 bytes read))

Installation information:

Google Cloud SDK [0.9.88]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Aug 22 2015, 20:33:39)  [GCC 4.2.1 Compatible 
Apple LLVM 7.0.0 (clang-700.0.59.1)]]
Python Location: [/usr/bin/python]
Site Packages: [Disabled]

Installation Root: [/Users/kars/google-cloud-sdk]
Installed Components:
  core: [2015.11.24]
  app-engine-python: [1.9.28]
[output truncated]

Original issue reported on code.google.com by k...@q42.nl on 27 Jan 2016 at 8:14