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

Frequent "SSH could not read data: Error waiting on socket" errors #851

Open
hiddeco opened this issue Nov 5, 2021 · 1 comment
Open

Comments

@hiddeco
Copy link

hiddeco commented Nov 5, 2021

We use libgit2 and git2go a bit different than most other projects I have seen putting it to use (in the public domain), in that we have a long running process which continuously spawns new (temporary) repository objects to perform cloning operations. For some time now, a group of users complains about seeing frequent (but not constant) SSH could not read data: Error waiting on socket errors during clone attempts.

To ensure it was not due to our (initially hasty) implementation of libgit2 and git2go, we spend time the past weeks to ensure we work with git2go in a way it likes to be handled. By e.g. ensuring that we properly Free objects, and by informing the transports they should close connections once they reach a defined timeout (in the hope this would maybe signal something in the C library to do something socket related).

The error however remains, and I am not sure in what direction we should look next to attempt to solve it. Given this, and due to Go native transport still not working properly in combination with authentication, it would be great if I could receive some guidance to at least explain why this error occurs, and if there is anything that could be done about it (and if it requires a PR, I would be happy to submit this).

Our git2go wrapping code (for more context) can be found in: https://github.com/fluxcd/source-controller/tree/main/pkg/git/libgit2

@cbanciu667
Copy link

Hi,

Any updates on this issue ? It is affecting fluxcd image automation controller since some time.

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