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

镜像仓库同步重试3次失败,期望跳过此仓库,继续同步。 #152

Open
leoyongwei opened this issue Jul 18, 2024 · 5 comments

Comments

@leoyongwei
Copy link

镜像仓库同步重试3次失败,期望跳过此仓库,继续同步。输出同步失败的仓库日志到文件。便运维人员排查。

@denverdino
Copy link
Contributor

现在所有同步任务会并行执行,如果发生错误会默认再重试两次(可在命令行修改 retries)。这个是否满足您的需求?

是否可以将需求描述的更加完整一些,便于我们看看如何更好支持。多谢!

@leoyongwei
Copy link
Author

leoyongwei commented Jul 19, 2024

是有重试的,我也增加了重试3次,但3次后就阻塞退出了。期望是重试失败,跳过继续运行。
下面是日志:
time="2024-07-12 06:30:15" level=error msg="Failed to executed analyzing image rule for acr.aliyun.com/prod/service-xxx -> prod-image-bak-registry.cn-shenzhen.cr.aliyuncs.com/prod/service-xxx: source url acr.aliyun.com/prod/service-xxx format error: failed to get external tags: fetching tags list: repository name not known to registry. Now 172/2999 tasks have been processed."
time="2024-07-12 06:33:36" level=error msg="Failed to executed analyzing image rule for acr.aliyun.com/prod/service-xxx -> prod-image-bak-registry.cn-shenzhen.cr.aliyuncs.com/prod/service-xxx: source url acr.aliyun.com/prod/service-xxx format error: failed to get external tags: fetching tags list: repository name not known to registry. Now 1/1 tasks have been processed."
time="2024-07-12 06:33:39" level=error msg="Failed to executed analyzing image rule for acr.aliyun.com/prod/service-xxx -> prod-image-bak-registry.cn-shenzhen.cr.aliyuncs.com/prod/service-xxx: source url acr.aliyun.com/prod/service-xxx format error: failed to get external tags: fetching tags list: repository name not known to registry. Now 1/1 tasks have been processed."
time="2024-07-12 06:33:41" level=error msg="Failed to executed analyzing image rule for acr.aliyun.com/prod/service-xxx -> prod-image-bak-registry.cn-shenzhen.cr.aliyuncs.com/prod/service-xxx: source url acr.aliyun.com/prod/service-xxx format error: failed to get external tags: fetching tags list: repository name not known to registry. Now 1/1 tasks have been processed."

@denverdino
Copy link
Contributor

我试着复现问题

  1. 请问这是完整的日志吗?
  2. 另外使用的是最新的release版本吗?还是自己编译的版本
  3. Golang 版本 go version

@leoyongwei
Copy link
Author

是完整的日志。官方下载的版本,版本是1.5.4

@denverdino
Copy link
Contributor

You can try v1.5.5

./image-syncer --auth=auth.json --images=images.yaml --proc=3 --retries=3

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