-
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
Wokspaces are not loaded when che starts as a container #2122
Comments
We have resolved all of the issues with #1410 - and we have tested this pretty vigorously. So perhaps is a way that you are setting up your host. Can you tell us the OS, the OS version, the values of any CHE_ variables and then the exact syntax you used to start Che? |
@Alexpud - can you also provide the syntax used to launch Che on the command line? So, the syntax for starting / stopping che has changed with 4.6.2 in the Che Launcher. Notice that some of the variables are different between the Che launcher and the Che server. The Che launcher is an OS-agnostic way to simplify launching the Che Server, which is a container that runs as a daemon. The environment variables for the launcher and the server are a bit different, and the launcher passes along a simpler set of variables onto the server, if appropriate. New syntax: In particular: However: So maybe this is the issue? |
@TylerJewell I ran the command bellow, it created the folder configuration and within it created the storage and workspace folders.
Then i created a workspace and a project, started and stopped it, after it i stopped the che-server container. I checked the storage folder, and it only contained the preferences.json and the folder of the workspace i created was empty. |
I think your Humor me, please, and replace |
Ok i executed the following command:
And the problem persisted, storage folder created but only with preferences.json file inside it. |
Something is looking fishy - this was exhaustively tested. And we have #2123 - which is starting to look like a similar issue, but that is on Windows system. |
Humor me for one last try - I have a suspicion of what is happening. If you set |
I executed several times the command And it created 3 folders: lib, storage and workspaces. lib was filled automatically after the container creation with content similar to the lib folder on che binary; the storage and workspaces folders were empty. After creating a workspace and executing it, the workspace folder contained the workspace and the projects files in it. But the storage folder contained only the preferences.json |
@Alexpud can you please give it a try this way:
The container will be stopped since this is the main process there.
Action items for us: @TylerJewell we should think how to properly stop Che server when NOT using CLI but a pure docker syntax. |
@eivantsov @TylerJewell It worked! Thank you very for your time and patience. |
@eivantsov - surprised that this worked. If you look at the che-launcher stop method, it is doing exactly what you wrote. @Alexpud - could you share how you were stopping Che before you tried @eivantsov suggestion? https://github.com/eclipse/che/blob/master/dockerfiles/che-launcher/launcher_cmds.sh#L64-L81
|
@TylerJewell
Sorry, i didn't even imagine i needed to go inside the container to stop it, i knew i could, but i didn't think it would be necessary/work. |
That is the issue :) You should have done I was pulling my hair out - and terrified that we had a serious bug. I do not know how Eugene figured out that it was a stop issue without seeing you demo it live. |
@TylerJewell - It was my fault for not doing executing the command you just posted. |
I don't think that is a viable path. A single che instance can be managing dozens of other containers, for example - so start / stop has to be through our system. |
…ta' obtained from 'api/user/services' endpoint payload Signed-off-by: Ilya Buziuk <[email protected]>
The problem is very similar to the one reported in #1410, i experienced the same problem today and was able to solve it.
But when i launched the che-server, the new way to launch che as a docker container, the same problem appeared. I tried to export the CHE_CONF_DIR=/home/user/che and it made no change. I can execute workspaces and all, but they are not shown in the dashboard. I have several workspaces folders in the container but no workspace is shown in the dashboard. Also, theres only preference.json inside the storage folder on CHE_HOME.
As a test, i tried to see if i was mounting directories the wrong way, i mounted the same directories on the codenvy/che images, and it worked. But on che-launcher didn't.Don't know if theres any relation.
So my questions is:
At the current stage of the che-laucher, is there a way for me to see the workspaces created?
Thank you.
The text was updated successfully, but these errors were encountered: