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

mgit2 bootstrap should try for the second time if the repo fail #87

Closed
pjasiun opened this issue Nov 2, 2018 · 9 comments
Closed

mgit2 bootstrap should try for the second time if the repo fail #87

pjasiun opened this issue Nov 2, 2018 · 9 comments

Comments

@pjasiun
Copy link

pjasiun commented Nov 2, 2018

I still get this error randomly when execute mgit bootstrap and if it is part of the bigger task, like yarn reset or docs building it breaks the whole flow badly, force me to fix the structure manually.

screen shot 2018-11-02 at 12 13 21

Since we have no idea how to fix this error, I think we should make mgit try again in such cases, probably with some timeout. I believe this is because we reach the number of simultaneous connections to github.

@Reinmar
Copy link
Member

Reinmar commented Nov 2, 2018

Good idea!

@pomek
Copy link
Member

pomek commented Nov 15, 2018

Does a 5 seconds delay between the first and the second try sound good?

@pjasiun
Copy link
Author

pjasiun commented Nov 15, 2018

I hope so :)

@Reinmar
Copy link
Member

Reinmar commented Nov 15, 2018

I think that the question is – does it help?

@ma2ciek
Copy link
Contributor

ma2ciek commented Nov 15, 2018

The problem is that it's only reproducible on @pjasiun's macs 😄

@Reinmar
Copy link
Member

Reinmar commented Nov 15, 2018

And @scofalik's :> But perhaps it can be generalised to our hq's network. If you won't be able to reproduce it with 40+ repositories, ping guys there to try to check it, @pomek.

@pomek
Copy link
Member

pomek commented Nov 15, 2018

I am not able to reproduce it but I am still trying.

@ma2ciek
Copy link
Contributor

ma2ciek commented Nov 15, 2018

And @scofalik's :> But perhaps it can be generalised to our hq's network. If you won't be able to reproduce it with 40+ repositories, ping guys there to try to check it, @pomek.

Yep. You're right. I've just hit this error twice right now in the office. And it doesn't happen when I'm working from home.

@pomek
Copy link
Member

pomek commented Nov 22, 2018

Does the solution described here – https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning – help? Could you test it?

ma2ciek added a commit that referenced this issue Nov 22, 2018
Feature: Introduced a mechanism which allows executing the `bootstrap` command once again if it ends with an error. Closes #87.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants