VIM3同步源码报错,烦请指导

从百度网盘下载VIM3基础.repo文件,并把default.xml地址改为清华服务器,同步代码.repo/repo/repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie过程中报错一下信息 贴吧中也出现过程类似错误 但是没看到有效的解决方案 麻烦看一下?
rror: RPC failed; curl 18 transfer closed with outstanding read data remainingts: 6% (33968/533160), 9.92 MiB | 8.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
remote: Enumerating objects: 3851, done. 00 KiB/s /s
remote: Counting objects: 100% (3851/3851), done. iB/s
remote: Compressing objects: 100% (82/82), done. B/s s
error: Cannot fetch android_frameworks_av from https://github.com/khadas/android_frameworks_av
Skipped fetching project android_art (already have persistent ref)
Skipped fetching project android_packages_apps_Car_Dialer (already have persistent ref)
Skipped fetching project android_external_zxing (already have persistent ref)
Skipped fetching project android_external_walt (already have persistent ref)
Skipped fetching project android_external_python_cachetools (already have persistent ref)
Skipped fetching project android_external_jsmn (already have persistent ref)
Fetching projects: 98% (683/696) android_external_jsmnSkipped fetching project android_system_nfc (already have persistent ref)
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch android_vendor_amlogic_external_DTVKit_releaseDTVKit from https://github.com/khadas/android_vendor_amlogic_external_DTVKit_releaseDTVKit
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: unable to access ‘https://gerrit.googlesource.com/git-repo/’: Failed to connect to gerrit.googlesource.com port 443: Connection timed out
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

@seekdream1990 @goenjoy @Terry Please helpy about this question.

你这个错误不影响的,继续同步下载,你可以看下这个帖子,和你说的是一样的现象

还是有部分工程目录没有 报错
Checking out files: 100% (4112/4112), done.id_external_puffinChecking out files: 48% (1986/4112)
Checking out files: 100% (5661/5661), done.id_external_skiaChecking out files: 39% (2211/5661)
Checking out files: 100% (2842/2842), done.id_external_v8Checking out files: 36% (1036/2842)
Checking out projects: 50% (348/695) android_external_zxingfatal: failed to unpack tree object HEAD
error: Cannot checkout android_frameworks_av: GitError: Cannot initialize work tree for android_frameworks_av
Traceback (most recent call last):
File “/home/share/liubing/khadas/.repo/repo/main.py”, line 530, in
_Main(sys.argv[1:])
File “/home/share/liubing/khadas/.repo/repo/main.py”, line 505, in _Main
result = run()
File “/home/share/liubing/khadas/.repo/repo/main.py”, line 498, in
run = lambda: repo._Run(name, gopts, argv) or 0
File “/home/share/liubing/khadas/.repo/repo/main.py”, line 201, in _Run
result = cmd.Execute(copts, cargs)
File “/home/share/liubing/khadas/.repo/repo/subcmds/sync.py”, line 994, in Execute
self._Checkout(all_projects, opt)
File “/home/share/liubing/khadas/.repo/repo/subcmds/sync.py”, line 553, in _Checkout
self._CheckoutWorker(**kwargs)
File “/home/share/liubing/khadas/.repo/repo/subcmds/sync.py”, line 435, in _CheckoutWorker
return self._CheckoutOne(opt, project, *args, **kwargs)
File “/home/share/liubing/khadas/.repo/repo/subcmds/sync.py”, line 469, in _CheckoutOne
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File “/home/share/liubing/khadas/.repo/repo/project.py”, line 1532, in Sync_LocalHalf
self._InitWorkTree(force_sync=force_sync, submodules=submodules)
File “/home/share/liubing/khadas/.repo/repo/project.py”, line 2776, in _InitWorkTree
raise GitError('Cannot initialize work tree for ’ + self.name)
error.GitError: Cannot initialize work tree for android_frameworks_av
liubing@vhd241:~/khadas$

用如下命令试试只同步这个出错目录看看:

repo sync --force-sync frameworks/av

另外你可以参考下这个链接:

忽略rror: RPC failed; curl 18 transfer closed with outstanding这种报错 拉完代码 但是好像工程不全 需要反复拉代码 是这样 现在还没完

@seekdream1990 你可以用下面脚本操作:

现在是写个这样的脚本拉 但是sync返回是0 成功的 但是确实工程是不完整的 好难

@seekdream1990 怎么工程不完整了?

有些目录文件不全,确认少了的文件能单独拉 但是不可能所有都清楚 代码服务器不在中国?

再执行下repo sync -j4命令,把输出结果完整发出来。

链接:https://pan.baidu.com/s/1keuW_x6rrwzKyB2WeNGcnQ
提取码:6nek
log放在百度网盘 请查看

刚看了下,你这LOG明显报错,压根都没有同步完成,少文件很正常。


报错的地方都有给你提示该怎么做了。即同步不能有地方报错,有报错的话,同步代码都会有问题。请看下图红色箭头,这才是正确的同步。

现在脚本sync 没有报明显的错误 不知道是否成功了

@seekdream1990


这里报错了,用这命令执行看看:
image
成功后,再同步看看还报什么错。