repo sync stalling

621 views
Skip to first unread message

Dean Horak

unread,
Jan 12, 2011, 8:56:28 PM1/12/11
to Android Building
I've been trying to perform a repo sync for three days now, and it
keeps stalling a various points along the way.

dhora90@ubuntu-virtualbox:~/mydroid$ repo sync
Fetching projects: 59% (99/167)

I'm running Ubuntu on a VirtualBox server sitting on a Windows XP
host.

Any ideas?

Jean-Baptiste Queru

unread,
Jan 13, 2011, 10:41:34 AM1/13/11
to android-...@googlegroups.com
You can try to sync the projects one at a time with the following command:

repo forall -c 'echo $REPO_PATH starting ; repo sync . ; echo $REPO_PATH done'

This'll give a better hint about which specific project is having a hard time.

JBQ

> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Dean Horak

unread,
Jan 13, 2011, 1:03:59 PM1/13/11
to Android Building
Thanks for the tip.

The problem appears to be an issue with the connection stalling. Using
the command you provided I was able to determine it is currently
failing on the platform/prebuilt project. However, when I attempt to
sync that project alone, it again stalls at various points. I tried
several times (after running for a while each time) but the highest I
was able to get was 87% before it stalled again.

dhora90@ubuntu-virtualbox:~/mydroid$ repo sync platform/prebuilt
remote: Counting objects: 8543, done.
remote: Compressing objects: 100% (4064/4064), done.
Receiving objects: 72% (6157/8543), 547.25 MiB | 137 KiB/s

I'm guessing the problem is that the connection is periodically timing
out, but instead of retrying it just stalls. Is there a patch
available to remedy this, and if not, can you point me to where a
patch for this might be implemented? I have a project I'd love to get
started on but I can't seem to get out of the starting gate.

Thanks,
Dean

Jean-Baptiste Queru

unread,
Jan 13, 2011, 1:24:09 PM1/13/11
to android-...@googlegroups.com
Unfortunately the git protocol doesn't allow resuming broken
connections, and the larger projects (frameworks/base and prebuilt)
can indeed cause problems.

JBQ

langit biru

unread,
Jan 14, 2011, 10:02:03 AM1/14/11
to android-...@googlegroups.com
On 01/14/2011 01:24 AM, Jean-Baptiste Queru wrote:
> Unfortunately the git protocol doesn't allow resuming broken
> connections, and the larger projects (frameworks/base and prebuilt)
> can indeed cause problems.

Yes, this was also my problem.
I did 'repo sync' from my remote server with fast connection.
Then, i copy the repo using rsync to my laptop.


--
http://www.sejukhijau.com
Celoteh Programmer : Linux, VPS, Programming, Nginx,Kehidupan, Hukum
facebook : sejuk.hijau.id (di) gmail (dot) com
twitter : @sejukhijau

santi lert

unread,
Jan 14, 2011, 6:42:14 PM1/14/11
to android-...@googlegroups.com
Try this project, it will restart repo if any error or timeout.
http://code.google.com/p/ww-command-line-wrapper/

Santi L.

Reply all
Reply to author
Forward
0 new messages