Error with repo sync

1,017 views
Skip to first unread message

Michael Casebolt

unread,
Mar 3, 2015, 11:07:28 PM3/3/15
to chromium-...@chromium.org
I am trying to download the source tree for chromium OS and I am running into errors. When I run 'repo sync' it fails with the error:
Fetching projects: 99% (131/132) error: Cannot fetch chromiumos/chromite

error: Exited sync due to fetch errors
For what it's worth, 'repo sync -l' reports

error: in `sync -l`: revision refs/head/master in chromiumos/chromite not found
 
What can I do to troubleshoot this problem and get all the sources properly downloaded? Thanks for any help.








Prathmesh Prabhu Chromium

unread,
Mar 4, 2015, 12:57:24 PM3/4/15
to mike...@gmail.com, Chromium OS discuss
Can you post your `repo init` and `repo sync` commands.

--
--
Chromium OS discuss mailing list: chromium-...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-discuss?hl=en


Michael Casebolt

unread,
Mar 4, 2015, 1:37:34 PM3/4/15
to chromium-...@chromium.org, mike...@gmail.com
I copied the repo init command straight from the quick start guide:
repo init -u https://chromium.googlesource.com/chromiumos/manifest.git
The repo sync command was just
repo sync
If you want, I can provide the full log of the repo sync command. 

Mike Frysinger

unread,
Mar 4, 2015, 11:46:33 PM3/4/15
to mike...@gmail.com, Chromium OS discuss
yes, please attach the full log
-mike

Michael Casebolt

unread,
Mar 5, 2015, 7:08:39 PM3/5/15
to chromium-...@chromium.org, mike...@gmail.com
So I ran repo sync again and surprisingly it ran without errors. I tried to move on to the next step and ran the cros_sdk command. This gave the following error:
ERROR: Couldn't find the chromite tool chromite.bin.cros_sdk.

Please change to a directory inside your Chromium OS source tree
and retry.  If you need to setup a Chromium OS source tree, see
  http://www.chromium.org/chromium-os/developer-guide
I was inside the source tree. The only non-hidden folder inside the source tree was a chromite folder with a .git folder inside of it. Just for fun I tried a 'git pull' inside of this chromite folder and it reported that the .git folder was not a valid git repository. Then I deleted the entire chromite folder, hoping that this would cause it to download again. Now when I run 'repo sync' I get errors similar to the ones I was getting before. I attached a log of both stdout and stderr. It looks like the main problem is that .repo/projects/chromite.git is not a valid git repository.
Then I tried deleting the whole .repo/projects/chromite.git folder and running 'repo sync' again. This time it worked. I guess the git repo got corrupted during one of the downloads and it couldn't think to redownload it unless it couldn't find it.
I tried the cros_sdk command again and got this error:
Usage: cros_sdk [options] [VAR1=val1 .. VARn=valn -- args]

This script is used for manipulating local chroot environments; creating,
deleting, downloading, etc.  If given --enter (or no args), it defaults
to an interactive bash shell within the chroot.

If given args those are passed to the chroot environment, and executed.

cros_sdk: error: cros_sdk is currently only supported on x86_64; you're running i686.  Please find a x86_64 machine.
So now that I got everything downloaded I have to find a different machine and download it there.
 
repo_sync_log_4.txt

Mike Frysinger

unread,
Mar 5, 2015, 7:19:35 PM3/5/15
to mike...@gmail.com, Chromium OS discuss
On Thu, Mar 5, 2015 at 7:08 PM, Michael Casebolt <mike...@gmail.com> wrote:
cros_sdk: error: cros_sdk is currently only supported on x86_64; you're running i686.  Please find a x86_64 machine.
So now that I got everything downloaded I have to find a different machine and download it there.

if the machines are on the same network, just transfer your local content with like `rsync` over ssh
-mike
Reply all
Reply to author
Forward
0 new messages