下载android源码 运行repo sync时出现错误

在尝试使用repo工具进行Android项目同步时,遇到了多次GatewayTimeout错误,导致fetch操作失败。具体错误信息为HTTP504 GatewayTimeout,表明目标服务器没有在合理时间内响应。该问题可能由于网络不稳定、服务器负载过大或者防火墙限制等原因引起。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

$ repo sync
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
    clone_bundle=not opt.no_clone_bundle)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 978, in Sync_NetworkHalf
    and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1581, in _FetchBundle
    raise DownloadError('HTTP %s%s' % (e.code, msg))
DownloadError: HTTP 504 (Gateway Timeout: The gateway server did not receive a timely response)


Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
    clone_bundle=not opt.no_clone_bundle)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 978, in Sync_NetworkHalf
    and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1581, in _FetchBundle
    raise DownloadError('HTTP %s%s' % (e.code, msg))
DownloadError: HTTP 504 (Gateway Timeout: The gateway server did not receive a timely response)


Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
    clone_bundle=not opt.no_clone_bundle)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 978, in Sync_NetworkHalf
    and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1581, in _FetchBundle
    raise DownloadError('HTTP %s%s' % (e.code, msg))
DownloadError: HTTP 504 (Gateway Timeout: The gateway server did not receive a timely response)


Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
    clone_bundle=not opt.no_clone_bundle)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 978, in Sync_NetworkHalf
    and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1581, in _FetchBundle
    raise DownloadError('HTTP %s%s' % (e.code, msg))
DownloadError: HTTP 504 (Gateway Timeout: The gateway server did not receive a timely response)


Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
    clone_bundle=not opt.no_clone_bundle)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 978, in Sync_NetworkHalf
    and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/home/zhaozhichao/android2.3.7/.repo/repo/project.py", line 1581, in _FetchBundle
    raise DownloadError('HTTP %s%s' % (e.code, msg))
DownloadError: HTTP 504 (Gateway Timeout: The gateway server did not receive a timely response)




error: Exited sync due to fetch errors
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值