googledatalab / datalab

Interactive tools and developer experiences for Big Data on Google Cloud Platform.
Apache License 2.0
974 stars 249 forks source link

gcloud error when building Datalab image #816

Closed parthea closed 8 years ago

parthea commented 8 years ago

I receive the following error when trying to build the Datalab docker image

tony@TonyLinuxServer:~/datalab-parthea/containers/datalab$ ./build.sh
sending incremental file list
web/app.js
web/auth.js
web/callbacks.js
web/health.js
web/httpapi.js
web/info.js
web/jupyter.js
web/logging.js
web/server.js
web/settings.js
web/static.js
web/updateDocs.js
web/userManager.js
web/static/extensions/
web/static/extensions/charting.js

sent 94,726 bytes  received 298 bytes  190,048.00 bytes/sec
total size is 286,182  speedup is 3.01
sending incremental file list

sent 1,391 bytes  received 18 bytes  2,818.00 bytes/sec
total size is 4,211,852  speedup is 2,989.25
Sending build context to Docker daemon 4.961 MB
Step 1 : FROM debian:jessie
 ---> 9b607719a62a
Step 2 : MAINTAINER Google Cloud DataLab
 ---> Using cache
 ---> 168ad77c34ce
Step 3 : RUN echo "deb-src http://ftp.us.debian.org/debian testing main" >> /etc/apt/sources.list &&     apt-get update -y &&     apt-get install --no-install-recommends -y -q         curl wget unzip git vim build-essential ca-certificates pkg-config         libatlas-base-dev liblapack-dev gfortran         libpng-dev libfreetype6-dev libxft-dev         rsync         libxml2-dev         python2.7 python-dev python-setuptools python-zmq &&     easy_install pip &&     mkdir -p /tools &&     mkdir -p /srcs &&     cd /srcs && apt-get source -d python-zmq && cd /
 ---> Using cache
 ---> 4a6b1c786e2b
Step 4 : RUN pip install -U numpy==1.11.0 &&     pip install -U pandas==0.18.0 &&     pip install -U scipy==0.17.0 &&     pip install -U scikit-learn==0.17.1 &&     pip install -U sympy==0.7.6.1 &&     pip install -U statsmodels==0.6.1
 ---> Using cache
 ---> 2557eda25852
Step 5 : RUN pip install -U tornado==4.3                    pyzmq==15.2.0                    jinja2==2.8                    jsonschema==2.5.1                    python-dateutil==2.5.0                    pytz==2015.4                    pandocfilters==1.3.0                    pygments==2.1.3                    argparse==1.2.1                    mock==1.2.0                    requests==2.9.1                    oauth2client==2.0.2                    httplib2==0.9.2                    futures==3.0.5 &&     pip install -U matplotlib==1.5.1 &&     pip install -U ggplot==0.6.8 &&     pip install -U seaborn==0.7.0 &&     pip install -U notebook==4.2.0 &&     pip install -U PyYAML==3.11 &&     pip install -U six==1.9.0 &&     pip install -U ipywidgets==5.0.0 &&     easy_install pip &&     find /usr/local/lib/python2.7 -type d -name tests | xargs rm -rf
 ---> Using cache
 ---> 18275763f839
Step 6 : RUN mkdir -p /tools/node &&     wget -nv https://nodejs.org/dist/v4.3.2/node-v4.3.2-linux-x64.tar.gz -O node.tar.gz &&     tar xzf node.tar.gz -C /tools/node --strip-components=1 &&     rm node.tar.gz
 ---> Using cache
 ---> bfe247180ba1
Step 7 : RUN wget -nv https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip &&     unzip -qq google-cloud-sdk.zip -d tools &&     rm google-cloud-sdk.zip &&     tools/google-cloud-sdk/install.sh --usage-reporting=false         --path-update=false --bash-completion=false         --disable-installation-options &&     tools/google-cloud-sdk/bin/gcloud config set --scope=installation         component_manager/fixed_sdk_version 102.0.0 &&     tools/google-cloud-sdk/bin/gcloud -q components update         gcloud core bq gsutil compute preview alpha beta &&     touch /tools/google-cloud-sdk/lib/third_party/google.py
 ---> Running in e1295ef16a88
2016-05-07 02:07:07 URL:https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip [5732606/5732606] -> "google-cloud-sdk.zip" [1]
Welcome to the Google Cloud SDK!

Your current Cloud SDK version is: 108.0.0
Installing components from version: 108.0.0

+----------------------------------------------------------------------------+
|                    These components will be installed.                     |
+-----------------------------------------------------+------------+---------+
|                         Name                        |  Version   |   Size  |
+-----------------------------------------------------+------------+---------+
| BigQuery Command Line Tool                          |     2.0.24 | < 1 MiB |
| BigQuery Command Line Tool (Platform Specific)      |     2.0.24 | < 1 MiB |
| Cloud SDK Core Libraries (Platform Specific)        | 2016.03.28 | < 1 MiB |
| Cloud Storage Command Line Tool                     |       4.19 | 2.6 MiB |
| Cloud Storage Command Line Tool (Platform Specific) |       4.18 | < 1 MiB |
| Default set of gcloud commands                      |            |         |
+-----------------------------------------------------+------------+---------+

For the latest full release notes, please visit:
  https://cloud.google.com/sdk/release_notes

#============================================================#
#= Creating update staging area                             =#
#============================================================#
#= Installing: BigQuery Command Line Tool                   =#
#============================================================#
#= Installing: BigQuery Command Line Tool (Platform Spec... =#
#============================================================#
#= Installing: Cloud SDK Core Libraries (Platform Specific) =#
#============================================================#
#= Installing: Cloud Storage Command Line Tool              =#
#============================================================#
#= Installing: Cloud Storage Command Line Tool (Platform... =#
#============================================================#
#= Installing: Default set of gcloud commands               =#
#============================================================#
#= Creating backup and activating new installation          =#
#============================================================#

Performing post processing steps...done.

Update done!

This will install all the core command line tools necessary for working with
the Google Cloud Platform.

Source [/tools/google-cloud-sdk/completion.bash.inc]
in your profile to enable shell command completion for gcloud.

Source [/tools/google-cloud-sdk/path.bash.inc]
in your profile to add the Google Cloud SDK command line tools to your $PATH.

For more information on how to get started, please visit:
  https://cloud.google.com/sdk/#Getting_Started

usage: gcloud config set  SECTION/PROPERTY  VALUE [optional flags]
ERROR: (gcloud.config.set) unrecognized arguments: --scope=installation (did you mean '--installation'?)
The command '/bin/sh -c wget -nv https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip &&     unzip -qq google-cloud-sdk.zip -d tools &&     rm google-cloud-sdk.zip &&     tools/google-cloud-sdk/install.sh --usage-reporting=false         --path-update=false --bash-completion=false         --disable-installation-options &&     tools/google-cloud-sdk/bin/gcloud config set --scope=installation         component_manager/fixed_sdk_version 102.0.0 &&     tools/google-cloud-sdk/bin/gcloud -q components update         gcloud core bq gsutil compute preview alpha beta &&     touch /tools/google-cloud-sdk/lib/third_party/google.py' returned a non-zero code: 2
gramster commented 8 years ago

Fixed in 77e38d4289879f9704920704cbefd6890cbe07b9