Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo同步lineageos失败 #362

Closed
dksslq opened this Issue Mar 28, 2018 · 9 comments

Comments

Projects
None yet
4 participants
@dksslq
Copy link

dksslq commented Mar 28, 2018

按照https://mirrors.tuna.tsinghua.edu.cn/help/lineageOS/页面下的知道进行repo sync,结果出现好多503错误,例如fatal : unable to access 'https://aosp.tuna.tsinghua.edu.cn/platform/external/libopus/' : The requested URL returned error: 503

请问这是什么原因造成的?,线程默认j4,网络也正常,我可以配合你们,但是希望快速解决

我同步的lineageos版本是15.1

@huiyiqun

This comment has been minimized.

Copy link
Member

huiyiqun commented Mar 28, 2018

无法复现

ancient :: ~ » git clone https://aosp.tuna.tsinghua.edu.cn/platform/external/libopus/
Cloning into 'libopus'...
remote: Counting objects: 1485, done.
remote: Compressing objects: 100% (1290/1290), done.
remote: Total 1485 (delta 645), reused 713 (delta 188)
Receiving objects: 100% (1485/1485), 1.98 MiB | 8.31 MiB/s, done.
Resolving deltas: 100% (645/645), done.
@dksslq

This comment has been minimized.

Copy link
Author

dksslq commented Mar 28, 2018

难道是昨晚服务器同步导致的?

@huiyiqun

This comment has been minimized.

Copy link
Member

huiyiqun commented Mar 28, 2018

你试试我那个命令,如果出问题了贴一下日志,如果成功了那就再跑一下 repo sync 试试。

@dksslq

This comment has been minimized.

Copy link
Author

dksslq commented Mar 28, 2018

嗯嗯,非常感谢!

@dksslq

This comment has been minimized.

Copy link
Author

dksslq commented Mar 28, 2018

我像你那样单独用git clong可以成功,但是用repo sync始终报错 503
Fetching project LineageOS/android_hardware_qcom_media MiB/s
Fetching project platform/external/rmi4utils
remote: Total 17383 (delta 12716), reused 17117 (delta 12467)
Receiving objects: 100% (17383/17383), 9.40 MiB | 1.20 MiB/s, done.
Resolving deltas: 100% (12716/12716), done.00 KiB | 183.00 KiB/s s
From https://mirrors.tuna.tsinghua.edu.cn/git/lineageOS/LineageOS/android_external_selinux

  • [new branch] lineage-15.1 -> github/lineage-15.1
    Fetching project platform/external/hamcrest71 MiB | 229.00 KiB/s
    fatal: unable to access 'https://aosp.tuna.tsinghua.edu.cn/platform/external/hamcrest/': The requested URL returned error: 503
    remote: Counting objects: 11765, done. 208.00 KiB/s /s
    remote: Compressing objects: 100% (3034/3034), done.
    error: Cannot fetch platform/external/webpB | 403.00 KiB/s 0 KiB/s
    Fetching project LineageOS/android_packages_apps_Updater
    remote: Counting objects: 1831, done. KiB | 137.00 KiB/s /s
    remote: Compressing objects: 100% (530/530), done.
    remote: Total 1831 (delta 939), reused 1416 (delta 736) s
    Receiving objects: 100% (1831/1831), 293.93 KiB | 173.00 KiB/s, done.
    Resolving deltas: 100% (939/939), done.24.81 MiB | 214.00 KiB/s
    From https://mirrors.tuna.tsinghua.edu.cn/git/lineageOS/LineageOS/android_packages_apps_Updater
  • [new branch] lineage-15.1 -> github/lineage-15.1
    fatal: unable to access 'https://aosp.tuna.tsinghua.edu.cn/platform/external/pdfium/': The requested URL returned error: 503
    error: Cannot fetch platform/frameworks/rs39 MiB | 274.00 KiB/s s
    remote: Total 11765 (delta 8846), reused 11519 (delta 8669) s
    Receiving objects: 100% (11765/11765), 4.15 MiB | 455.00 KiB/s, done.
    Resolving deltas: 100% (8846/8846), done.MiB | 395.00 KiB/s s s
    可能是repo脚本本身的问题吧
@Liberations

This comment has been minimized.

Copy link

Liberations commented Mar 28, 2018

repo sync -c -f -j1 --force-sync --no-clone-bundle 注意这个j1

@huiyiqun

This comment has been minimized.

Copy link
Member

huiyiqun commented Mar 28, 2018

嗯 加个 -j1 试试 多线程日志乱七八糟的。。没法看

@shankerwangmiao

This comment has been minimized.

Copy link
Member

shankerwangmiao commented Mar 28, 2018

hi,可以确认是连接数限制导致的。针对于 AOSP 我们目前单个 IP 限制 8 个连接。虽然您的连接数可能没有超过该限制,但是不排除您是在 NAT 网关之后,且您的出口 IP 地址对我们站的连接数超过了此限制。建议您调小 -j 的值,或者错峰同步。

@dksslq

This comment has been minimized.

Copy link
Author

dksslq commented Mar 28, 2018

感谢各位大佬指导,问题已解决

@dksslq dksslq closed this Mar 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.