If you’re trying to checkout the Chromium OS source code, you could run into the following problem that prevents you from getting any more source. Allthough it’s normal to see 502 errors from time to time (the git server proxy that’s screwing things up), it is annoying.
root@server: # gclient sync
Syncing projects: 27% (26/93)
Initialized empty Git repository in /usr/local/src/chromiumos/chromiumos.git/src/third_party/chromiumos-overlay/.git/
error: RPC failed; result=22, HTTP code = 502
After which the gclient would hang. Here’s a quick work-around to at least get the rest of the source code, while Google fixes this git-problem.
root@server: # gclient sync -j 2
That will continue the sync, but while running multiple commands in parallel. So while 1 command hangs on the checkout, the others will continue to checkout the rest of the (gigantic) source code. As of yet, there’s a bug report for this, but no solution yet.
It should be noted that gclient is now deprecated, and you might consider switching over to “repo” as a Git overlay tool. This doesn’t seem affected by this problem. More info is on “How to get the Chromium Source” wiki-article, which will let you install repo.