-
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
Workspace container exposed to IP 0.0.0.0 instead of CHE_HOST #3831
Comments
We have some big changes happening in nightly. So you are technically running 5.2.0-SNAPSHOT. There are two major PRs that will be merged that will be changing some of hte way that workspace connections are working. Can you clear all docker images and run with 5.1.0 - "eclipse/che:5.1.0", please? |
I get the same result using 5.1.0. |
Ooops - sorry, I think you stumbled into a known issue that has a PR to fix it. It was a minor regression due to a refactoring for 5.0.0. Right now, if you are on an external system you have to add in CHE_DOCKER_EXTERNAL_IP=. This should be automatically set, but a refactoring got it removed. Let me dig up the PR that fixes this. |
I just tried adding that env var with 5.1.0 and it did not help. The workspace still starts with IP 0.0.0.0 on the exposed ports. |
Trying with nightly will probably not fix it - the fix for this was merged 9 minutes ago. But in the mean time there is an extra env variable that has to be set. I have to dig it up - I must have got it wrong. Maybe it is CHE_DOCKER_EXTERNAL_HOST. |
Neither of those env variables or CHE_DOCKER_MACHINE_HOST solved the problem. Also, I'm not on an external system. Everything is running on the same machine. I just have two IP addresses, for two different internal networks. I want to have che exposed to only one of those. So maybe I'm not using the proper environment variables? They worked for previous versions, like 5.0.1. |
Hmmm. Ok, thanks for explaining. @benoitf @garagatyi - ideas? |
@nsymms - my apologies, was doing too much at the same time today. I looked up the variable to configure, and of course, I typed it wrong both times. The variable is |
Wow. That env var did it. After playing with this for so long, I was skeptical, to be honest. :) |
I was too - super sorry about that. If I had been more patient when you first asked the question, I would have gotten the variable correct the first time. |
What are you looking at Che for? |
Mostly Node/angular development for now, 2-3 person team. Maybe other things later. |
You know that we give away Codenvy (same CLI syntax) free on a fair source license for up to 3 people? You can run it on as many servers as you want and it has team-management built in with authentication. "docker run codenvy/cli:5.1.1 start". The volume mappings are the same and Codenvy is an enterprise version of Che that inherits from the same CLI Docker images. |
I got an email about that today; will definitely give it a look. It's almost exactly what we need right now. |
Running che via nightly docker cli, the server starts up OK and asks to create its first workspace. The workspace is created OK, but you can see with "docker ps" that its ports are exposed to 0.0.0.0 instead of the IP specified in environment variable CHE_HOST. During the "Starting Workspace Agent" stage, the server cannot contact the workspace and complains with an error "Client has aborted connection" in the log window and "Workspace Connection Error" window on the page.
If I stop the workspace and start it again, it starts again but the server still cannot reach it.
Reproduction Steps:
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/me/che-data:/data -e CHE_HOST=10.2.4.1 -e CHE_PORT=8085 eclipse/che:nightly start
Che version:
latest nightly - is that 5.1.0 ??
OS and version:
Ubuntu 14.04 (also tested on 16.04)
Docker version:
1.12.5
Che cli.log output:
Attached
cli.zip
The text was updated successfully, but these errors were encountered: