Chromium OS: error: RPC failed; result=22, HTTP code = 502

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, August 19, 2010

Follow me on Twitter as @mattiasgeniar

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.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.