Skip to content
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

Cannot start eclipse/che:5.10.0 due to wrong version check #5140

Closed
MarcelRosenberger opened this issue May 19, 2017 · 4 comments
Closed

Cannot start eclipse/che:5.10.0 due to wrong version check #5140

MarcelRosenberger opened this issue May 19, 2017 · 4 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@MarcelRosenberger
Copy link

MarcelRosenberger commented May 19, 2017

When executing docker run with eclipse/che:5.10.0 or eclipse/che:latest the start process aborts with WARN: Newer version '5.9.1' available

Reproduction Steps:
# docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /eclipse-che:/data eclipse/che:5.10.0 start

Output:

WARNING: No swap limit support
INFO: (che cli): 5.10.0 - using docker 17.05.0-ce / native
WARN: Newer version '5.9.1' available

My assumption is that there is an error in startup_04_pre_cli_init.sh (line 291)
The function less_than() only works if the strings are the same length. Why is version_lt() not used instead?

Before:
line 291: if less_than $BASE_VERSION $TAG; then

After:
line 291: if version_lt $BASE_VERSION $TAG; then

@TylerJewell
Copy link

TylerJewell commented May 19, 2017 via email

@benoitf
Copy link
Contributor

benoitf commented May 19, 2017

@MarcelRosenberger it shouldn't abort the process. It's only a trace.
You may disable the check with --skip:network , --fastor --offline

version_lt was introduced later but yes it's a good replacement candidate.

@benoitf benoitf self-assigned this May 19, 2017
@benoitf benoitf added kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels May 19, 2017
@benoitf benoitf added this to the 5.11.0 milestone May 19, 2017
@MarcelRosenberger
Copy link
Author

There was another issue - gladly dedicated to my setup only. Port 8080 was already in use by another service which prevented che from starting.

The warning concerning the version-check was the last output I got, so I thought it was related to the failing start.

@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label May 19, 2017
@benoitf
Copy link
Contributor

benoitf commented May 19, 2017

The issue is now fixed in current nightly with PR #5141

@benoitf benoitf closed this as completed May 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants