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

could not clone from the remote: stream error: stream ID 407; CANCEL; received from peer #514

Open
kishaningithub opened this issue Dec 2, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@kishaningithub
Copy link

Describe the bug
Getting the following error when running multi-gitter in an github org with more than 1000 repos.

could not clone from the remote: stream error: stream ID 407; CANCEL; received from peer

To Reproduce
Steps to reproduce the behavior:

  1. Have an organization that has more than 1000 repos
  2. Run multi-gitter run "./change.sh" --concurrent "$(($(nproc) * 2))" --org "<< org name>>" -m "Update" -B "update" --pr-title 'Update' --conflict-strategy replace
  3. See error could not clone from the remote: stream error: stream ID 407; CANCEL; received from peer

Expected behavior
I would expect errors like these should be handled internally by multi-gitter using a resilient retry logic.

@kishaningithub kishaningithub added the bug Something isn't working label Dec 2, 2024
@lindell
Copy link
Owner

lindell commented Dec 2, 2024

Please provide more context:

  1. What platform are you using?
  2. Confirm this is not happening when running on only one repository or in a very small org
  3. When is this happening? Right at the start or after x number of repos?
  4. What does nproc return on your system? You seem to run this with very high concurrency, can you run it with no concurrency or a low one?

@kishaningithub
Copy link
Author

  1. What platform are you using?
$ multi-gitter version

multi-gitter version: 0.54.1
Release-Date: 2024-11-21
Go version: go1.23.2
OS: darwin
Arch: arm64
Commit: 5841986bcc7e4db734349878435e4ef33e70aa2c
  1. Confirm this is not happening when running on only one repository or in a very small org

This happens for like ~15 repos out of the ~1000+ repos. When i ran it with a filter expression (--repo-include) using selecting like 5 repos this issue did not occur.

  1. When is this happening? Right at the start or after x number of repos?

This started happening after ~60th repo

  1. What does nproc return on your system? You seem to run this with very high concurrency, can you run it with no concurrency or a low one?

The result of "$(($(nproc) * 2))" in my system is 20.

I ran it now without specifying the concurrency flag, i did not get the above issue.

@Allon-Guralnek
Copy link

This project uses go-git, and we're experiencing the same issues with go-git where we have intermittent errors as described. This may not be a multi-gitter issue.

@kishaningithub
Copy link
Author

@Allon-Guralnek Can you link the respective go-git issue(s) in this thread ?

@lindell
Copy link
Owner

lindell commented Dec 12, 2024

@Allon-Guralnek Thanks for pitching in. When are you experiencing this? Is it the same as for @kishaningithub, with something that the git server could block because of multiple requests, or in general?

@kishaningithub What is the result if you run with --git-type=cmd instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants