'gclient sync' failed for Mojo repo

33 views
Skip to first unread message

Leon

unread,
Jun 15, 2015, 5:45:05 AM6/15/15
to mojo...@chromium.org
What should I do? Thanks.

gclient sync failed as below:

________ running '/usr/bin/python src/tools/go/download.py' in '/home/leonhan/Mojo'
CommandException: You have no storage service credentials in any of the following boto config
files. Please add your credentials as described in the gsutil README file, or else
re-run "gsutil config" to re-create a config file:
['/home/leonhan/.boto']
Running ['python', '/home/leonhan/Chromium/depot_tools/gsutil.py', '-b', 'cp', 'gs://mojo/go/tool/390daacbfac646491c8ac7469195105ac0ce2c46.tar.gz', '/home/leonhan/Mojo/src/third_party/go/tool/go.tar.gz']
Failed.
WARNING: Failed to download Go tool binaries.

Colin Blundell

unread,
Jun 15, 2015, 5:47:37 AM6/15/15
to Leon, mojo...@chromium.org
Did you try rerunning "gsutil config"?

Etienne J. Membrives

unread,
Jun 15, 2015, 5:49:27 AM6/15/15
to Colin Blundell, Leon, mojo...@chromium.org

On Mon, Jun 15, 2015 at 11:47 AM, Colin Blundell <blun...@chromium.org> wrote:
Did you try rerunning "gsutil config"?

Leon, in case you haven't seen, "gsutil" is at /home/leonhan/Chromium/depot_tools/gsutil.py

Leon

unread,
Jun 15, 2015, 11:47:37 PM6/15/15
to mojo...@chromium.org, blun...@chromium.org, etie...@chromium.org
Thank you for kindly reply.
"gsutil.py config" failed as below... Sorry I'm not familiar with depot_tools yet ..
"
leonhan@leonhan-OptiPlex-990:~/Chromium/depot_tools$ ./gsutil.py config
Backing up existing config file "/home/leonhan/.boto" to "/home/leonhan/.boto.bak"...
Please navigate your browser to the following URL:

Enter the authorization code: 4/ZvEbb8DvuUXj_-aadBIpakO9xj54ZSwOlrIN9jsqlEM
Restoring previous backed up file (/home/leonhan/.boto.bak)
PresetProxyHTTPSConnection instance has no attribute '_set_hostport'

Colin Blundell

unread,
Jun 16, 2015, 5:50:04 AM6/16/15
to Leon, mojo...@chromium.org, blun...@chromium.org, etie...@chromium.org
I don't have any ideas here, sorry.

Primiano Tucci

unread,
Jun 16, 2015, 1:53:09 PM6/16/15
to Colin Blundell, Leon, mojo...@chromium.org, etie...@chromium.org
depot_tools use their own copy of gsutil and use a custom .boto files. 
What you need is running download_from_google_storage --config, which is equivalent to gsutil --config but will update the right file (~/.boto.depot_tools)


To unsubscribe from this group and stop receiving emails from it, send an email to mojo-dev+u...@chromium.org.



--
Primiano Tucci
Software Engineer
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ

Leon

unread,
Jun 16, 2015, 10:10:29 PM6/16/15
to mojo...@chromium.org, etie...@chromium.org, leon...@intel.com, blun...@chromium.org
Thank you very much!

Sorry to continue bothering you~
I ran "download_from_google_storage --config", when I'm prompted "What is your project-id? " and I navigated to https://cloud.google.com/console#/project
I guess I should pick up one Mojo related project id there, but  there is no any available project there..
Does it need some authentication for my google account?  If so, how could I apply the authentication? Thanks again~

BR,
Han Leon

Primiano Tucci

unread,
Jun 17, 2015, 1:57:42 AM6/17/15
to Leon, etie...@chromium.org, Colin Blundell, mojo...@chromium.org

the project Id is irrelevant for the sake of GCS. you can put  'foo'  there. :)

Leon

unread,
Jun 17, 2015, 5:04:36 AM6/17/15
to mojo...@chromium.org, leon...@intel.com, etie...@chromium.org, blun...@chromium.org
Ah, the 'foo' project id can work well.. Thanks~

And, I've made clear about 
PresetProxyHTTPSConnection instance has no attribute '_set_hostport'
"
      # Python 2.7.7rc1 (hg r90728:568041fd8090), 3.4.1 and 3.5 rename
      # _set_hostport to _get_hostport and changes it's functionality.  The
      # Python 2.7.7rc1 version of this method is included here for
      # compatibility with earlier versions of Python.  Without this, HTTPS over
      # HTTP CONNECT proxies cannot be used.

      # This method may be removed if compatibility with Python <2.7.7rc1 is not
      # required.

      # Python bug: http://bugs.python.org/issue7776
"
Because 'depot_tools/third_party/fancy_urllib/__init__.py' is still using httplib.HTTPSConnection._set_hostport(), which has been removed for newer python version(For example my python 2.7.8), so failure happened. Maybe the __init__.py need to be updated....

Primiano Tucci

unread,
Jun 17, 2015, 5:11:12 AM6/17/15
to infr...@chromium.org, etie...@chromium.org, Colin Blundell, Leon
-mojo-dev +infra-dev
Reply all
Reply to author
Forward
0 new messages