Error: "fatal: bad object..." during repo sync

3,244 views
Skip to first unread message

Simon Que

unread,
Jul 29, 2014, 6:58:15 PM7/29/14
to chromium-os-dev
I did a repo sync and got this at the end:

===================================
Fetching projects: 100% (241/241), done.  
Traceback (most recent call last):
  File "/mnt/host/source/.repo/repo/main.py", line 431, in <module>
    _Main(sys.argv[1:])
  File "/mnt/host/source/.repo/repo/main.py", line 407, in _Main
    result = repo._Run(argv) or 0
  File "/mnt/host/source/.repo/repo/main.py", line 143, in _Run
    result = cmd.Execute(copts, cargs)
  File "/mnt/host/source/.repo/repo/subcmds/sync.py", line 690, in Execute
    project.Sync_LocalHalf(syncbuf)
  File "/mnt/host/source/.repo/repo/project.py", line 1158, in Sync_LocalHalf
    lost = self._revlist(not_rev(revid), HEAD)
  File "/mnt/host/source/.repo/repo/project.py", line 2178, in _revlist
    return self.work_git.rev_list(*a, **kw)
  File "/mnt/host/source/.repo/repo/project.py", line 2335, in rev_list
    p.stderr))
error.GitError: chromium/deps/libmtp rev-list (u'^da683c668bbc54471d9aa037833d4840e2bf7879', 'HEAD', '--'): fatal: bad object da683c668bbc54471d9aa037833d4840e2bf7879
===================================

I also tried running "update_chroot" but it still does the same thing.

Simon

Don Garrett

unread,
Jul 29, 2014, 7:06:07 PM7/29/14
to Simon Que, Gabe Black, chromium-os-dev
Is this the same issue you've been looking at, Gabe?


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




--
Don

Simon Que

unread,
Jul 30, 2014, 4:36:11 PM7/30/14
to Don Garrett, Gabe Black, chromium-os-dev
Still getting this problem today.

Don Garrett

unread,
Jul 30, 2014, 4:49:55 PM7/30/14
to Simon Que, Gabe Black, chromium-os-dev
For some unknown reason, you appear to have a bad revision in your git repo. Assuming you aren't doing development in libmtp, then it should be safe to do:

rm -rf $SANDBOX/.repo/projects/chromium/src/third_party/libmtp.git

Then try the repo sync again.


--
Don

David James

unread,
Jul 30, 2014, 4:57:52 PM7/30/14
to Don Garrett, Simon Que, Gabe Black, chromium-os-dev
You'll need to also do:

rm -rf $SANDBOX/.repo/project-objects/chromium/deps/libmtp.git

Simon, what manifest are you using? Are you using the regular manifest or the sonic manifest? Are you using a shared repo checkout where objects from one checkout are inherited from another? (repo init --reference will set this up)



To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.

Simon Que

unread,
Jul 30, 2014, 5:00:32 PM7/30/14
to David James, Don Garrett, Gabe Black, chromium-os-dev
What's $SANDBOX? Mine is undefined. I'm guessing it's ~/trunk within the chroot.

I don't even know what the sonic manifest is. When I set up my current workspace 2 years ago, there were regular and mini layouts. I don't think I've manually updated anything since then.

Simon Que

unread,
Jul 30, 2014, 5:11:59 PM7/30/14
to David James, Don Garrett, Gabe Black, chromium-os-dev
I ran these in the chroot:

(cr) sque@sq ~/trunk $ rm -rf .repo/project-objects/chromium/deps/libmtp.git
(cr) sque@sq ~/trunk $ rm -rf .repo/projects/chromium/src/third_party/libmtp.git
(cr) sque@sq ~/trunk $ repo sync

But still getting the same thing. Also tried "gclient sync" in the chromium cros-sdk chroot.

What if I just manually deleted src/third_party/libmtp under my chromium directory?

Don Garrett

unread,
Jul 30, 2014, 5:22:49 PM7/30/14
to Simon Que, David James, Gabe Black, chromium-os-dev
It's whatever the root directory of your development sandbox is, outside the chroot.

If you are in src/scripts, it's ../..


--
Don

Simon Que

unread,
Jul 30, 2014, 5:24:29 PM7/30/14
to Don Garrett, David James, Gabe Black, chromium-os-dev
Finally got it to work, by moving chromium/src/third_party/libmtp...

David James

unread,
Jul 30, 2014, 5:31:31 PM7/30/14
to Simon Que, Don Garrett, Gabe Black, chromium-os-dev
Yup you need to delete all three :)

Don Garrett

unread,
Jul 30, 2014, 5:44:00 PM7/30/14
to David James, Simon Que, Gabe Black, chromium-os-dev
I thought the source dir would sort itself out. Okay.
--
Don
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages