Primiano Tucci <prim...@chromium.org> writes:
> Ok I think this is your problem: depot_tools is not in front of your PATH,
> and /usr/bin/gsutil takes precedence.
Actually, I think this is caused by depot_tools r293413, which switched
download_from_google_storage to a vanilla gsutils 4.7.
For people behind corporate proxies, the first thing that needs to be
changed is the usage of urllib instead of urllib2 in gsutils.py (this
has happened before, urllib does not play well with proxies). I have
submitted https://codereview.chromium.org/809053002/ to fix this.
In addition to that, I've also had problems with boto and my proxy: the
Chromium hooks call download_from_google_storage with --no_auth, which
sets BOTO_CONFIG to ''. However, gslib.util.GetNewHttp() uses the boto
configuration to set up the proxy information, so the connections made
by gsutils all time out because the proxy information is not being set.
If setting up boto is now needed, I think we're back to bug 318478.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
Looks this issue still exist from my side, the same behavior as before.
On Thursday, December 18, 2014 7:14:39 PM UTC+8, Primiano Tucci wrote:I landed https://codereview.chromium.org/809053002/ manually.It should work now. Let us know if it doesn't.On Thu, Dec 18, 2014 at 9:05 AM, cyan <cyang...@gmail.com> wrote:Meet the exact same issue here, please kindly help to give a fix. :)
On Wednesday, December 17, 2014 6:30:11 PM UTC+8, Shreeram Kushwaha wrote:Hello All,I am getting below error while I am trying to execute gclient sync on linux
File gs://chromium-gn/1088992877b3a13f25b61c8fc18e25296d8cab33 for src/buildtools/linux32/gn does not exist.
0> File gs://chromium-gn/1088992877b3a13f25b61c8fc18e25296d8cab33 for src/buildtools/linux32/gn does not exist, skipping.
> Error: Command download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-gn -s src/buildtools/linux32/gn.sha1 returned non-zero exit status 1
Can anyone have any leads on this??
ThanksShreeram
Thanks. However it still does not work for me.
Just tried to update my depot tools to latest:
”git clone https://chromium.googlesource.com/chromium/tools/depot_tools “
“gclient”
“gclient sync” and I got:
“________ running 'download_from_google_storage --no_resume --platform=win32 --no
_auth --bucket chromium-gn -s src/buildtools/win/gn.exe.sha1' in 'C:\Users\xfeng
10\Perforce\chromium\src'
0> File gs://chromium-gn/7a8952c86c3b571246b7dd1dbcbff063e1313350 for src/buildt
ools/win/gn.exe does not exist, skipping.
File gs://chromium-gn/7a8952c86c3b571246b7dd1dbcbff063e1313350 for src/buildtool
s/win/gn.exe does not exist.
Error: Command download_from_google_storage --no_resume --platform=win32 --no_au
th --bucket chromium-gn -s src/buildtools/win/gn.exe.sha1 returned non-zero exit
status 1 in C:\Users\xfeng10\Perforce\chromium\src
Hook 'download_from_google_storage --no_resume --platform=win32 --no_auth --buck
et chromium-gn -s src/buildtools/win/gn.exe.sha1' took 331.98 secs”
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Just checked https://codereview.chromium.org/809053002/ . The latest patches for file “gsutil.py” and file “tests/gsutil_test.py” were included.
Did you also use proxy on Linux?
Thanks,
Jay
Yes. I use proxy on Linux. As I m on my company's network.
------- Original Message -------
Sender : Feng, Jay<jay....@intel.com>
Date : Dec 31, 2014 12:09 (GMT+05:30)
Title : RE: [chromium-dev] Re: gclient sync error
Regards,
Shreeram Kushwaha
|
|
Correct. Gsutil is used because it takes care of authentication. Its silly to reimplement gsutil just for public objects (especially since none of the default python libraries actually does https correctly anyways), and it still wouldn't solve the issue for the auth behind a proxy case.Its unfortunate the gsutil doesn't respect http_proxy, but for the sake of having an update-to-date gsutil we've committed to using a vanilla version instead of forking and being stuck with an ancient version. This issue probably has to be taken up with the gsutil team, or we have to monkey patch our version (ugh).
# git chekout 4fa73b8ca6899bc69577932b80145a6bf07e4424.
# set DEPOT_TOOLS_UPDATE=0
Thanks!
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/D95B070D38087A47ADCD55E64CDD74BD0E9DE2B7%40SHSMSX101.ccr.corp.intel.com.--
You received this message because you are subscribed to the Google Groups "infra-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+...@chromium.org.
To post to this group, send email to infr...@chromium.org.
It works for me.
Thank you for the fix.
William

--
--
Chromium Developers mailing list:
chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
--
--
Chromium Developers mailing list:
chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
--
You received this message because you are subscribed to the Google Groups "infra-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+...@chromium.org.
To post to this group, send email to infr...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/e37b24e6-05d6-4b90-8aeb-361fc40cceb1%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/6b888e2b-2220-4248-a3bb-a6385970cb2f%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/698fe7ba-5cf2-47b5-b73c-7ed84a219dc6%40chromium.org.
The certificate seems right (I get the same one).The version of gsutil / boto also (same here).At this point it sounds like your system configuration doesn't support SNI (SSL server-name indication) and you receive the wrong cert form gsutil.Which version of Linux are you running? What is the version of openssl?If you run directly gsutil (From the same path), e.g.,gsutil cp gs://chromium-gn/f62a6b6e14c39aa4e4bc2a19a2184877c9488e1e /tmp/testdoes it suceed?Any gsutil / python expert here? Does python 2.7 dynamically link openssl?It might be that your version of python / openssl doesn't support SNI and you fail to get the propert certificate through python)Not sure if this helps, might be worth taking a look
You received this message because you are subscribed to the Google Groups "infra-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+...@chromium.org.
To post to this group, send email to infr...@chromium.org.
--
You received this message because you are subscribed to the Google Groups "infra-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+...@chromium.org.
To post to this group, send email to infr...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/8769fa5a-2650-4229-a63a-dfd5bbed7eb1%40chromium.org.