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

Che does not start after toggling dev mode on / off from CLI #3351

Closed
vparfonov opened this issue Dec 12, 2016 · 5 comments
Closed

Che does not start after toggling dev mode on / off from CLI #3351

vparfonov opened this issue Dec 12, 2016 · 5 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach
Milestone

Comments

@vparfonov
Copy link
Contributor

Could not use own Che build

docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/vetal/che:/data -v /home/vetal/codenvy/projects/che:/repo eclipse/che-cli:nightly start

WARNING: No swap limit support
INFO: (che cli): Loading cli...
WARN: Your local eclipse/che-cli:nightly image is older than the version on DockerHub.
WARN: Run 'docker pull eclipse/che-cli:nightly' to update your CLI.
INFO: (che cli): Checking registry for version 'nightly' images
INFO: (che config): Generating che configuration...
Notice: Compiled catalog for f30f78d9e0ce.ua.codenvy-dev.com in environment production in 0.11 seconds
Notice: Applied catalog in 0.04 seconds
INFO: (che config): Customizing docker-compose for running in a container
INFO: (che start): Preflight checks
        port 8080 (http):       [AVAILABLE] 
        port 8000 (debug):       [AVAILABLE]

INFO: (che start): Starting containers...
Couldn't find env file: /che/instance/config/che.env

**Reproduction Steps:**

1. docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/vetal/che:/data  eclipse/che-cli:nightly start`
2. build Che with own changes 
3. docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/vetal/che:/data -v /home/vetal/codenvy/projects/che:/repo eclipse/che-cli:nightly start

**Expected behavior:**
Che server should start

**Observed behavior:**
Got error: Couldn't find env file: /che/instance/config/che.env
[Describe observed behavior here]

**Che version:**    5.0.0-M9-SNAPSHOT   
**OS and version:** Ubuntu 16.04
**Docker version:**  1.12.3


@vparfonov vparfonov added the severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. label Dec 12, 2016
@vparfonov vparfonov added this to the 5.0.0-M9 milestone Dec 12, 2016
@riuvshin riuvshin added the kind/bug Outline of a bug - must adhere to the bug report template. label Dec 12, 2016
@TylerJewell
Copy link

Paste cli log output

@vparfonov
Copy link
Contributor Author

cli.log.txt

@TylerJewell TylerJewell changed the title Problem with starting own Che build Problem with starting own Che build -- after starting Che from different configuration Dec 12, 2016
@TylerJewell
Copy link

@vparfonov @skabashnyuk @riuvshin @benoitf - ok, I see the issue here. So, the scenario is:

  1. Start Che from CLI without dev mode
  2. Restart Che with dev mode

Then there is an error. The issue is that when using dev mode, all of the configuration files are sourced from the repository, not just the custom assembly. So if you did an init() using the Che CLI image and then turn on dev mode, we use a different set of configuration files.

First question - do we wnat to allow this workflow?

@TylerJewell TylerJewell changed the title Problem with starting own Che build -- after starting Che from different configuration Che does start after toggling dev mode on / off from CLI Dec 12, 2016
@bmicklea bmicklea added the status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach label Dec 12, 2016
@vparfonov
Copy link
Contributor Author

I think yes. But it least it should say something for understand problem, like "your Che dir not empty try new one"

@TylerJewell
Copy link

@vparfonov - I believe that this issue was resolved in the latest fixup. It has to do with the renaming of the volume mount from :/che to :/data.

The docker-compose-container.yml file that is generated by the old refactor was generating the old location of the env file. I just did a new test, and it's now generating the right location. So I believe that this issue was only temporary due to the switchover and would not occur again if you start everything from scratch.

@JamesDrummond JamesDrummond changed the title Che does start after toggling dev mode on / off from CLI Che does not start after toggling dev mode on / off from CLI Dec 13, 2016
@bmicklea bmicklea mentioned this issue Jan 13, 2017
70 tasks
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/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach
Projects
None yet
Development

No branches or pull requests

5 participants