Git Troubleshooting

My pull is failing

If you get an error like this:

ssh: connect to host gitrw.chromium.org port 9223: Connection refused

ssh is failing to connect for some reason. (In the above example, I had the port wrong.) Verify your ssh configuration is correct -- that you have the keys set up, that you have right hostname and port, etc. depending on the error message.

If you get an error like this when pulling:

ERROR:gitosis.serve.main:Repository read access denied

The "gitosis" in the error message indicates you've successfully sshed to the server, but that something has gone wrong after that. Verify the path to the git repository you're trying to pull is correct with something like

You might be missing extra components, and need to add them to your .gclient file so that it contains a custom_deps clause something like:

"custom_deps" : { # To use the trunk of a component instead of what's in DEPS: #"component": "https://svnserver/component/trunk/", # To exclude a component from your working copy: #"data/really_large_component": None, "chromeos/src/third_party/kernel-XXX": "ssh://chromiumos-git/kernel-XXX.git" },

where the LHS is the location in your source tree relative to the config file, and the RHS is a valid git URL. After fixing up the config file, a gclient sync should fetch the missing bits.