-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Git cloning fails behind a proxy #19242
Comments
I've just tried to deploy Eclipse Che 7.27 on OpenShift 4.7 with cluster wide proxy configured.
I was able to start a workspace and project was successfully cloned. It leads me to question if it is possible to check proxy server logs? @azatsarynnyy |
Thanks for looking into this @tolusha ! Ok we're using Eclipse Che 7.27 on Openshift 4.5.31 with a cluster wide proxy configured. We used the default operator settings (so we didn't set the Unfortunately, we do not have access to the proxy server logs to see if the request even hit it.
The default operator settings we used to standup the cluster:
|
So seems like the OpenShift cluster wide proxy settings are automatically set in the theia container (including the
|
Your suggestions make sense... [1] https://github.com/eclipse/che-theia/blob/master/plugins/workspace-plugin/src/git.ts#L101 |
Taking into account #19242 (comment) looks like the problem is on |
/cc @svor |
@tolusha I agree |
che-theia is invoking the git command. So if the env variable is there it should work ... we'll investigate |
@yeungalan0 could you create a workspace from the devfile on your che deployment in a proxy environment and test how cloning works? There is a PR with workspace plugin improvements. |
See the PR to get more details how the fixup was tested. |
Describe the bug
When setting up a new eclipse che application using the standard operator with all default settings on an OpenShift cluster behind a proxy with a self signed certificate, everything seems to work except that after workspace creation the initial
git clone
times out, which seems to indicate it's not honoring/aware of the proxies.git clone
on the theia container in my project directory and that succeeds without issuegit clone
seems to ignore themChe version
Steps to reproduce
Expected behavior
Cloning should succeed and pickup the proxy variables set in the environment.
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
Installation method
chectl version
commandEnvironment
Eclipse Che Logs
Log output from theia container:
We also see the below in the theia container logs, but aren't sure if it's related...
Additional context
Related issue:
#17017 - This closed issue seems to match what we're seeing exactly
Release Notes
Cloning a git repository failed even if the proxy was configured at the container level. This has been resolved when the editor is Che-Theia.
The text was updated successfully, but these errors were encountered: