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

同步镜像时,有的镜像可以正常同步,有的镜像同步失败 #136

Open
hiddletian opened this issue Aug 17, 2023 · 5 comments

Comments

@hiddletian
Copy link

hiddletian commented Aug 17, 2023

Bug Report

Type: bug report

What happened

when use image-syncer synchronous images,some can succeed,some cannot

What you expected to happen

synchronous images succeed

Anything else we need to know?

The log
read: connection reset by peer

Environment

  • image-syncer version:
  • OS (e.g. cat /etc/os-release): Redhat 8.4
  • Registry version (e.g. habor): habor v2.7.1
  • Others:
@hhyasdf
Copy link
Collaborator

hhyasdf commented Aug 17, 2023

这个是网络问题,跟 image-syncer 无关,具体看应该是对端镜像仓库把 tcp 连接重置了,可以增加重试次数或者检查对端镜像仓库配置

@hiddletian
Copy link
Author

意思是同步的时候加上--retries参数,是不是镜像大的可能失败?

@hhyasdf
Copy link
Collaborator

hhyasdf commented Aug 17, 2023

意思是同步的时候加上--retries参数,是不是镜像大的可能失败?

默认就会重试,--retries参数可以增加重试次数;镜像是按层同步的,如果比较大的层没法同步的话,应该也得检查下对端镜像仓库的配置

@hiddletian
Copy link
Author

如果是按层同步的话,我理解调整--retries参数就没什么用了吧

@hhyasdf
Copy link
Collaborator

hhyasdf commented Aug 17, 2023

如果是按层同步的话,我理解调整--retries参数就没什么用了吧

--retries参数会重试同步所有同步失败的 blob/manifest,重试指定次数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants