-
-
Notifications
You must be signed in to change notification settings - Fork 23
Connection refused errors sometimes #9
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
Comments
Hello! Thanks for the log file, it is very useful to understand what is happening. Perhaps we shouldn't panic when connections are having problems.. perhaps it makes more sense to just log and ignore it.. Do you want me to help you try out different builds? If you are able to compile it yourself, then I would try commenting out the terraform-provider-ssh/data_source_ssh_tunnel.go Lines 189 to 203 in a7fb598
If you want me to compile for you, please let me know what OS you are running. If that makes everything more stable, then I will make a new release where I just log warnings instead of panic. Similar to this: https://gist.github.com/codref/473351a24a3ef90162cf10857fac0ff3#file-go-ssh-reverse-tunnel-go-L48-L63 Thanks for the report! |
Oh, thanks! I'm able to compile binary for both Linux and Mac OS to check is proposed solution is helpful and stable. |
Seems that proposed solution helps. I've run 5 time locally and on CI server - and no errors occurred. Thanks a lot! |
Perfect! Glad to hear it seems promising. |
I added this commit: 9dfc266 It would be great if you could pull my code and make sure it works well. Thanks! |
I've built today new binary and use it on my CI server few times - it also works w/o any issues as for now. |
It fails one time at CI server with following - terraform-provider-ssh.log |
Interesting.. doesn't seem like the same problem though.. In any case, I just released v0.0.4. |
Hello!
I'm using your plugin and expect to see "connection refused" or "unexpected EOF" sometimes. It means that it can be 5 successful executions and then 1 or two failed, or it can fails for 5 times and than 1 have passed.
It also reproduced for both local and CI server.
How should I debug following behaviour to provide you with needed info?
I'm using terraform 0.11.14 & provider ssh 0.0.3(but it also related to 0.0.2)
I'm using ssh provider to get my EKS-cluster through bastion instance.
Log from CI - ci-log.txt
The text was updated successfully, but these errors were encountered: