-
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
Unable to mount volume to workspace - CHE-WORKSPACE-VOLUME #3738
Comments
If you want a local dir to be mounted to all workspaces that Che server starts, you need to add volume bindings to the below property in che.env file:
Although env variable should have worked as well. I can see that host path is /Users. Shouldn't it be your win path smth like Also, the syntax you have used is outdated. Can you try the following?
|
it does not work yet, unfortunately. I ran the following commands:
the che-cli initialises some files in the data folder on the host. I then edited the che.env and uncommented the change the line with the workspace volume to (I am on Linux): Afterwards I started Che using the following command: Could you walk me through it? I really appreciate your kind help. I was a little bit puzzled that the cli creates files that the launcher does not create by itself. I thought the launcher was the container the user can run so that everything gets bootstrapped and runs fine. |
@oldirtybasti - Eugene was implying a different CLI. Last wek we released Che 5 - and with that we have deprecated (removed) support for eclipse/che-launcher. It had a syntax that was very temperamental. There is a new - much simpler syntax now that you can see with
|
if I set everything up as you have written and run the last line |
What is at the end of the cli.log file? |
Wait, I could repair it myself. The name Che was still in use (container not removed). After I removed it, I could start eclipse che. I will report back, after testing the Volume workspace mount |
If I use the :latest image, then the volume will not get mounted. If I use :nightly the container will not start (keeps starting all the time but never ends). |
Again, please post the tail of the cli.log for engineers to help investigate. |
the cli.log and the che.env attached. There's a NullPointerException at the command line: |
I am sorry @oldirtybasti - I am not able to follow your requests here. You said that Che did not start "(keeps starting all the time but never ends). But the cli.log file that you posted shows a perfect startup. I am not sure what I am trying to help you debug here. The information provided is not letting me have insights to the problems you are having or try to reproduce it. We'll need you to be more explicit please. |
Sorry about the confusion. Che starts fine, a workspace can be create (and started), but when I switch to the Recent Workspaces and select the workspace, nothing will be shown. |
What are the workspace output logs and any browser console error messages? |
It seems to be a problem with the current nightly version of Che. The "Recent Workspaces" view just hangs, independent of whether I use CHE_WORKSPACE_VOLUME in che.env or not. I do not receive any error messages. I will wait for a newer nightly build and report back if the issue persists. Thank you for your very patient help! |
Oh, yes - you did say nightly. We are having issues with it. There was a major refactorig of internal networking issues that was done and merged right after 5.0.0 was merged. It has caused some problems. If you set your version to 5.0.0 and rerun do you have the same issues? ie, "eclipse/che:5.0.0" |
Version 5.0.0 unfortunately does not even start. Here is what I ran:
then
I did not even edit che.env. Find the docker log of Che attached (there is a NullPointerException). |
@oldirtybasti - I keep wanting to calling you ODB with that name. I think the issue you have with the NullPointerException is because we are mixing and matching versions all on a single system. We say in the docs that that nightly version is really not intended to mix and match with another version. So lets get a super clean start. Make sure you delete any of your :/data folders from your disk - wipe them and start clean. Also remove all of your existing docker images on that machine. And then restart Che from scratch. Thanks. |
Calling me ODB is absolutely ok, this great musician did inspire my nick name some 20 years ago. Good to know, that anybody knows him too so long ago ;). Anyway, I did the total cleaning, but the error is the same. NullPointerException in the o.e.c.c.s.e.LoggedRunnable. Btw the error does not occur, if I remove -e CHE_PORT=10083. Unfortunately I can not use port 8080 on a regular basis, because some other services use that on my server from time to time. So far, it seems to be a bug with the -e CHE_PORT implementation? |
Oh - shit, there was a port bug fixed over the weekend. So the fix is only in nightly right now for that. That explains it. So, please do your test with the eclipse/che:5.0.0 version of Che, and do not use CHE_PORT on that version. Let's test with that to see if any other errors remain. |
The volume mount works now on Port 8080! What a strange journey to arrive there, I think you can close the issue. Do I have to wait for 5.1 to change the port then? A little question more: What does ro,Z mean in |
Sorry about the round about nature of it all. We would have gotten there quicker if we had started with the modern installation approach for 5. Yes, it will be best for you to wait for 5.1 to get the CHE_PORT fixes. Or you can probably wait another 24 hours, clear out all of your docker images again, and use the nightly. The nightly has had a few bug fixes added into it, but there were some issues with Mac and Windows with the nightly. We consider nightly a dev channel, so it will be unstable from time to time. 5.1 should be released on Tuesday or Wednesday. The On most linux operating systems, you should not have to add these modifiers. |
Thank you very much for all the work you put into my sometimes really stupid questions! |
More a question than an issue. I tried different ways to mount a volume to my workspaces, but all failed (with 5.0 and the nightly builds).
I run the following command:
docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock -e CHE-WORKSPACE-VOLUME=/Users:/Users -e CHE_PORT=10083 -e CHE_DATA=/path/to/data eclipse/che-launcher:nightly start
But with all variations I used, the Users folder never gets mounted into the workspaces. What do I do wrong or is this a bug?
The text was updated successfully, but these errors were encountered: