-
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
Failed to change port (regression) #3179
Comments
Maximillian - I am investigating. In the mean time, you can bypass the CLI and [launch the server] (https://eclipse-che.readme.io/docs/usage-docker-server) with this Docker syntax. And you can override the ports more directly with that. |
Confirmed the issue with che-launcher. There is an adaptaptation regression that is causing some sort of variable passing error. |
@ne0h - found the issue and got a fix in. This will show up in our nightly's shortly. |
@ne0h - CI systems updated and this issue should no longer be active. |
@TylerJewell - Thanks a lot for your work! Are sure that the bug is fixed? I am getting the same error even with
But there is still nothing to access on |
Yes the issue is fixed. It is fixed in a utility so please set CHE_UTILITY_VERSION to nightly first. |
So it works for you? I am still getting the same error with |
Yes, it is working for me. Chances are your old images are cached. This happens a lot when using the "nightly" images. You should start by doing |
Ah your absolutely right - works like a charm now. |
Hello, I run this:
(The environment variables for port and host are correctly set.) And I get:
And yes, I removed first all docker images. So, what am I missing? Thanks. |
It looks like the files that you have in The You either need to run the nightly in a new folder, or to destroy the installation you have first before running again.
Note the CHE_VERSION and CHE_UTILITY_VERSION no longer apply with this new CLI. You can just run "docker run eclipse/che" to get help. We have greatly simplified the CLI. |
I still have this problem, looking through the cli log, the server isn't started directly but through docker-compose using a generated yml file. This yml still uses the wrong port (8080): https://github.com/eclipse/che/blob/master/dockerfiles/init/modules/compose/templates/docker-compose.yml.erb |
The YML is set to the CHE_HOST port. It maps the external port of the container to the internal port, 8080. We do not yet have logic that simplifies changing the intenral port of the Tomcat in the container, but why should that matter? The container's exposed port is changed. I just tested this with nightly on windows 10 and it was ok. |
Well tomcat seems to always listen on the part of
https://github.com/eclipse/che/blob/master/dockerfiles/che/entrypoint.sh#L155 |
Humm - can you share Che version you ran for this, too - was it nightly? Thx. |
It was nightly, yes. And |
Ok - thanks for the report - will do a proper investigation this weekend. |
Thanks TylerJewell |
Well, I have uncovered the root cause. When you run the CLI with However, when starting Che with the latest tagged release and inspecting the container, This is happening because we are actually passing in two separate So the solution is to either revert |
I also note that in So seems simplest fix will be to update the template to make the internal Che server respect the port parameter. |
To make this work temporarily until this makes it into the nightly stream:
This should generate a new |
Hi,
I do not manage to get che running with a non-default port (9080). I tried on Arch Linux and Ubuntu 14.04 LTS. 8080 works but changing the port via
export CHE_PORT=9080
does not work.Error message in the terminal where I start docker:
Docker log is attached here: https://gist.github.com/ne0h/7e07dd868bdb2a8fc42130471be261b0
Reproduction Steps:
export CHE_PORT=9080
che start
Expected behavior:
Everything is fine.
Observed behavior:
Che "does not come up".
Che version: 5.0.0-latest
**OS and version:**Ubuntu 14.04 LTS, Arch Linux
Docker version: 1.12.3, build 6b644ec
Che install: Docker container
Additional information:
Thanks in advance!
Max
The text was updated successfully, but these errors were encountered: