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

Error when running Che using CLI utility #2128

Closed
ghost opened this issue Aug 15, 2016 · 4 comments
Closed

Error when running Che using CLI utility #2128

ghost opened this issue Aug 15, 2016 · 4 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Milestone

Comments

@ghost
Copy link

ghost commented Aug 15, 2016

Cannot run Che using the CLI on Linux.

Reproduction Steps:

  1. Follow instruction here - https://eclipse-che.readme.io/docs/che-cli

Expected behavior:

Che starts

Observed behavior:

eugene@eugene:~/Stuff/che (master)$ ./che start
WARNING: No swap limit support
INFO: ECLIPSE CHE: FOUND IMAGE codenvy/che-launcher:latest
INFO: ECLIPSE CHE: LAUNCHING LAUNCHER
unknown flag: --e
See 'docker run --help'.
eugene@eugene:~/Stuff/che (master)$ 

The error occurs when CHE_LOCAL_CONF_DIR is exported in the system. Unsetting it fixes the problem.

@ghost ghost added the kind/bug Outline of a bug - must adhere to the bug report template. label Aug 15, 2016
@TylerJewell
Copy link

This may not be a bug. This looks like possibly a caching issue. The --e environment variable was removed from the che.sh script in a recent version. It should only be using --env now when making calls to the codenvy/che-launcher. And the launcher itself didn't seem to make it far enough to call the codenvy/che-server.

Can you wipe your che.sh and grab the latest from master for another test. Also, try ./che info.

@TylerJewell
Copy link

Ok - we diagnosed this to a bug with bash "echo" command. For some reason if --env-file is in a bash string, then echo interprets -e as a flag and ignores the n. The solution is to hard code --env-file into the docker run syntax.

@TylerJewell TylerJewell added this to the 4.7.0 milestone Aug 17, 2016
@TylerJewell
Copy link

Resolved as part of #2119

@TylerJewell TylerJewell self-assigned this Aug 17, 2016
@bmicklea bmicklea mentioned this issue Aug 18, 2016
89 tasks
@JamesDrummond
Copy link
Contributor

@TylerJewell Can you provide a status label on this?

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.
Projects
None yet
Development

No branches or pull requests

2 participants