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
eclipse/che-ip returns 2 IP addresses as CHE_HOST #3564
Comments
It looks like the eclipse/che-ip:nightly utility is returning more than one IP address on your Ubuntu node because there was multiple eth0* interfaces. Do you recall the type of configuration that you setup on Digital Ocean that would have triggered the second ethernet interface? |
Just a normal Ubuntu droplet. Yes, it is because of two eth0* interfaces. |
It's super interesting to me as I had tested this on ubuntu with digital ocean a couple weeks ago, and I didn't get multiple interfaces like this. What should we do in this situation:
|
Yes, we need to be ready for several |
In speaking with @benoitf about this, he suggests that these IP addresses are all just aliases, and that it may be better to just pick the first one from within |
@TylerJewell are you certain that 10.x IP will work for the client code when browser connects to a workspace? It may not be publicly accessible. I do not think this is a critical issue, by the way. |
I just did a test on ubuntu - and that 10.x IP address is not externally reachable. So it seems that it's a bug in che-ip that it should not treat that IP address as something that it returns. |
Ok - have a prototype that solves the problem on Ubuntu - tested with a clean installation. |
I started an Ubuntu instance on digital ocean and ran cli:
INFO: (che init): CHE_HOST=138.68.77.169 10.19.0.8
The text was updated successfully, but these errors were encountered: